-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.htaccess
353 lines (298 loc) · 16.4 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
#neme2
#php versions
#<FilesMatch \.php$>
#SetHandler php55-fcgi
#SetHandler php56-fcgi
#SetHandler php70-cgi
#SetHandler php72-cgi
#SetHandler php74-cgi
#SetHandler php80-cgi
#</FilesMatch>
#php versions
#AddHandler fcgid-script .php
#FCGIWrapper "/dh/cgi-system/php74.cgi" .php
#FCGIWrapper "/dh/cgi-system/php80.cgi" .php
<IfModule mod_headers.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
Header set X-XSS-Protection "1; mode=block"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-Content-Type-Options "nosniff"
Header set Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), browsing-topics=(), camera=(self), display-capture=(), fullscreen=(self '*.vimeo.com' '*.youtube.com'), geolocation=(), gyroscope=(), idle-detection=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), screen-wake-lock=(), speaker-selection=(), sync-xhr=(self), usb=(), xr-spatial-tracking=()"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header set Content-Security-Policy: "default-src 'self' data: 'unsafe-inline' 'unsafe-eval' https://a.sa.a-sea-change.net/latest.js; font-src 'self'; manifest-src 'self'; object-src 'none'; img-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.vimeo.com *.youtube.com *.ytimg.com *.youtube-nocookie.com *.vimeocdn.com https://a.sa.a-sea-change.net/simple.gif; frame-src 'self' data: *.vimeo.com *.youtube.com *.ytimg.com *.youtube-nocookie.com *.vimeocdn.com;"
# Header set Expect-CT: max-age=86400,enforce
# Header set Referrer-Policy "same-origin"
# SecFilterEngine Off
# SecFilterScanPOST Off
</IfModule>
# RewriteMap mapname "dbm:/home/colak/webapps/neme2/map.map"
# compression and cache control
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 hour"
ExpiresByType text/html "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
# ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/svg+xml "access 1 month"
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresDefault "access plus 1 month"
</IfModule>
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^neme.org [NC]
#RewriteRule ^(.*)$ https://www.neme.org/$1 [L,R=301]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RedirectMatch 301 ^/main/?(.+)?$ https://www.neme.org/$1
RedirectMatch 301 /forum/?(.+)?$ http://forum.neme.org/$1
Redirect 301 /reblog/out/ https://www.neme.org/
Redirect 301 /arts_info/ /blog/
Redirect 301 /archives/ /blog/
Redirect 301 /archives2005/ /blog/
Redirect 301 /archives2006/ /blog/
Redirect 301 /archives2007/ /blog/
Redirect 301 /archives2008/ /blog/
Redirect 301 /archives2009/ /blog/
Redirect 301 /archives2010/ /blog/
Redirect 301 /archives2011/ /blog/
Redirect 301 /archives2012/ /blog/
Redirect 301 /archives2013/ /blog/
Redirect 301 /archives2014/ /blog/
Redirect 301 /archives2015/ /blog/
Redirect 301 /archives2016/ /blog/
Redirect 301 /?f=linktree.htm /?f=linktree
Redirect 301 /496/27-bienal-de-sao-paulo https://www.neme.org/blog/27-bienal-de-sao-paulo?_NeMe__NeMe_redirected=1
Redirect 301 /blog/newport-beach-film-festival-2009 /blog/nbff-2009?_NeMe_redirected=1
Redirect 301 /250/ https://www.neme.org/texts/from-zombie-to-cyborg?_NeMe_redirected=1
Redirect 301 /calls/ https://www.neme.org/blog/
Redirect 301 /1721/pq-2015 /blog/pq-2015?_NeMe_redirected=1
Redirect 301 /category/calls /blog/
Redirect 301 /article/ /texts/
Redirect 301 /call/ /blog/
Redirect 301 /category/intransition /projects/in-transition-cyprus-2006?_NeMe_redirected=1
Redirect 301 /blog/newport-beach-film-festival-2009 /blog/nbff-2009?_NeMe_redirected=1
Redirect 301 /category/ideodrome2006 /projects/ideodrome-2006?_NeMe_redirected=1
Redirect 301 /about/about-neme /about/
Redirect 301 /nac/neme-arts-centre /about/neme-arts-centre?_NeMe_redirected=1
Redirect 301 /events/my-name-is-janez-jansa /projects/improper-names
Redirect 301 /blog/jonas-lund-and-elisa-lasowski /blog/jonas-lund-and-elisa-lasowski-press?_NeMe_redirected=1
Redirect 301 /nac/ /about/neme-arts-centre?_NeMe_redirected=1
Redirect 301 /workshops/ /about/workshops?_NeMe_redirected=1
Redirect 301 /events/cpt-2019 /projects/hosted/cpt-2019
Redirect 301 /events/see-you-hear /projects/hosted/see-you-hear?_NeMe_redirected=1
Redirect 301 /events/sublime-internal-subliminal /projects/hosted/sublime-internal-subliminal?_NeMe_redirected=1
Redirect 301 /events/self-as-actor /projects/state-machines/self-as-actor?_NeMe_redirected=1
Redirect 301 /events/stateless /projects/state-machines/stateless?_NeMe_redirected=1
Redirect 301 /events/diwo-from-the-web-to-the-blockchain /projects/state-machines/diwo-from-the-web-to-the-blockchain?_NeMe_redirected=1
Redirect 301 /events/new-imaginaries-for-crypto-design /projects/state-machines/new-imaginaries-for-crypto-design?_NeMe_redirected=1
Redirect 301 /events/monitorial-citizen /projects/state-machines/monitorial-citizen?_NeMe_redirected=1
Redirect 301 /events/unbuilding-citizenship /projects/state-machines/unbuilding-citizenship?_NeMe_redirected=1
Redirect 301 /events/improper-names /projects/state-machines/improper-names?_NeMe_redirected=1
Redirect 301 /events/ttr2-right-brain-problems /projects/ttr/ttr2-right-brain-problems?_NeMe_redirected=1
Redirect 301 /events/stateless /projects/state-machines/stateless?_NeMe_redirected=1
Redirect 301 /events/through-the-roadblocks /projects/ttr/through-the-roadblocks?_NeMe_redirected=1
Redirect 301 /projects/emap/emap /projects/emap/
Redirect 301 /events/ttr2-all-the-other-lovers /projects/ttr/ttr2-all-the-other-lovers?_NeMe_redirected=1
Redirect 301 /events/ttr2-hand-to-hand /projects/ttr/ttr2-hand-to-hand?_NeMe_redirected=1
Redirect 301 /events/ttr2-lemesos-documentary-film-festival /projects/ttr/ttr2-lemesos-documentary-film-festival?_NeMe_redirected=1
Redirect 301 /events/ttr2-ties-of-the-transitory-seminar /projects/ttr/ttr2-ties-of-the-transitory-seminar?_NeMe_redirected=1
Redirect 301 /events/ttr2-bound /projects/ttr/ttr2-bound?_NeMe_redirected=1
Redirect 301 /events/ttr2-inter-alios /projects/ttr/ttr2-inter-alios?_NeMe_redirected=1
Redirect 301 /events/ttr2-nomadism-and-trans-cities /projects/ttr/ttr2-nomadism-and-trans-cities?_NeMe_redirected=1
Redirect 301 /events/ttr2-everybody-knows-this-is-nowhere /projects/ttr/ttr2-everybody-knows-this-is-nowhere?_NeMe_redirected=1
Redirect 301 /events/ttr2-art-culture-memory-and-trauma /projects/ttr/ttr2-art-culture-memory-and-trauma?_NeMe_redirected=1
Redirect 301 /events/ttr2-re-collecting-city-re-collecting-time /projects/ttr/ttr2-re-collecting-city-re-collecting-time?_NeMe_redirected=1
Redirect 301 /events/through-the-roadblocks-stage-1 /projects/ttr/through-the-roadblocks-stage-1?_NeMe_redirected=1
Redirect 301 /1800/differentiating-between-access-interaction-and-participationhttp://www.neme.org/1800/differentiating-between-access-interaction-and-participationhttp://www6.univali.br/seer/index.php/vd/article/view/5294/3257Vol /texts/differentiating-between-access-interaction-and-participation?_NeMe_redirected=1
RedirectMatch 301 ^/participations/?(.+)?$ /projects/participations/$1
RedirectMatch 301 ^/events/?(.+)?$ /projects/$1
Redirect 301 /events/the-state /projects/hosted/the-state?_NeMe_redirected=1
Redirect 301 /projects/participations/see-you-hear /projects/hosted/see-you-hear?_NeMe_redirected=1
Redirect 301 /671/flashflood-2007 /blog/flashflood-2007?_NeMe_redirected=1
#Redirect 301 /42/open-city-stepping-in-from-the-edge /texts/open-city
RedirectMatch 301 /(\d+)/([\w\-]+)$ /texts/$2?_NeMe_redirected=1
Redirect 301 /texts/open-city-stepping-in-from-the-edge /texts/open-city?_NeMe_redirected=1
Redirect 301 /texts/istanbul-biennial-10-nightcomers /blog/istanbul-biennial-10-nightcomers?_NeMe_redirected=1
Redirect 301 /texts/roc-14 /blog/roc-14?_NeMe_redirected=1
Redirect 301 /571/preserving-new-media.html /texts/preserving-new-media?_NeMe_redirected=1
Redirect 301 /texts/qed-saturday-12-october-2013 /blog/qed-saturday-12-october-2013?_NeMe_redirected=1
Redirect 301 /1615/ /blog/qed-saturday-12-october-2013?_NeMe_redirected=1
Redirect 301 /texts/tive-2008 /blog/tive-2008?_NeMe_redirected=1
Redirect 301 /texts/dok-leipzig-2010 /blog/dok-leipzig-2010?_NeMe_redirected=1
Redirect 301 /texts/performa-11 /blog/performa-11?_NeMe_redirected=1
Redirect 301 /texts/lisbon-architecture-triennale /blog/lisbon-architecture-triennale?_NeMe_redirected=1
Redirect 301 /respublika /projects/respublika/
Redirect 301 /texts/female-shorts /blog/female-shorts?_NeMe_redirected=1
Redirect 301 /texts/idensitat-07 /blog/idensitat-07?_NeMe_redirected=1
Redirect 301 /texts/biacs2 /blog/biacs2?_NeMe_redirected=1
Redirect 301 /texts/24th-ube-biennale /blog/24th-ube-biennale?_NeMe_redirected=1
Redirect 301 /texts/correlations-of-violence /blog/correlations-of-violence
Redirect 301 /texts/untitled12th-istanbul-biennial-2011 /blog/untitled12th-istanbul-biennial-2011?_NeMe_redirected=1
Redirect 301 /texts/tampere-xxxviii /blog/tampere-xxxviii?_NeMe_redirected=1
Redirect 301 /texts/facade-window-project /blog/facade-window-project?_NeMe_redirected=1
Redirect 301 /texts/electric-renaissance-2005call /blog/electric-renaissance-2005call?_NeMe_redirected=1
Redirect 301 /texts/the-united-nations-plaza /blog/the-united-nations-plaza?_NeMe_redirected=1
Redirect 301 /category/srecko-horvat/ /texts/
Redirect 301 /category/jeremy-hight/ /texts/
Redirect 301 /texts/1st-athens-video-art-festival-call-for-entries /blog/1st-athens-video-art-festival-call-for-entries?_NeMe_redirected=1
Redirect 301 /projects/workshops/ /about/workshops
RewriteEngine on
RewriteRule /linktree.htm [QSA,L]
#RewriteCond %{HTTP_REFERER} ^http\://.* bit\.ly/2hDdcMe [NC,OR]
#RewriteCond %{HTTP_REFERER} ^http\://.* bit\.ly/2hsQ0zD [NC,OR]
#RewriteCond %{HTTP_REFERER} ^http\://.* bit\.ly/2gK7XFW [NC,OR]
#RewriteCond %{HTTP_REFERER} ^https?://[^/]+\.ru/? [NC,OR]
#RewriteCond %{HTTP_REFERER} ^https\://.* youtu\.be/3WXr139x1Jw [NC,OR]
#RewriteCond %{HTTP_REFERER} ^https\://.* kok7\.ru/ [NC,OR]
#RewriteCond %{HTTP_REFERER} ^https\://.* info-sovety\.ru/ [NC,OR]
#RewriteCond %{HTTP_REFERER} ^https\://.* man-das\.ru/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://[^/]+\.best/? [NC]
RewriteRule .* - [F]
#RewriteEngine On
#RewriteCond %{HTTP_REFERER} .*zzz.com.*$ [NC, OR]
#RewriteCond %{HTTP_REFERER} .*kwangjubiennale.org.*$ [NC]
#RewriteRule ^(.*)$ https://www.neme.org/kwangjubiennale.html
RewriteCond %{REQUEST_URI} (bitrix|ckeditor|ckfinder|connector|connectors|wordpress|kcfinder|register|elfinder|trackback|fallback|gastenboek|guestbook|gaestebuch|bigdump|dump|noscript|editor|FileZilla|fckeditor|Tester|uploadTester|wp|wp-admin|rob-chiu|wp-content|webmanage|convert|manage|eshop|jomestate|joomla|templates|tinymce|magmi|login|cms|console|udd|ycportal|cgi|dedecms|phpcms|oecms|CHANGELOG|lazycms|drupal|mail|webmail|dede|utility|wp-login|bbs|utility|convert|xmlrpc|plus) [NC]
RewriteRule .* http://127.0.0.1/ [R=301,L]
#RewriteCond %{REMOTE_ADDR} 23\.108\.34\.202
#RewriteRule .* https://www.neme.org/indexthief.htm [R,L]
#Options +FollowSymlinks
#RewriteEngine on
#RewriteCond %{REMOTE_HOST} !^23\.108\.34\.202
#RewriteRule \.html$ /indexthief.htm [R=302,L]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} 1\.215\.226\.190
RewriteRule .* https://www.neme.org/indexthief.htm [R,L]
#Options +FollowSymlinks
#RewriteEngine on
#RewriteCond %{REMOTE_HOST} 84\.109\.137\.242
#RewriteRule .* https://www.neme.org/indexwhy.htm [R,L]
RewriteEngine on
RewriteCond %{REMOTE_ADDR} 104\.227\.54\.177
RewriteRule $ /jenny.htm [R=301,L]
Order Deny,Allow
Deny from 84.109.137.242
Deny from 82.80.230.228
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} all-stick\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} altemamarket\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} anti-crisis-seo\.com [NC,OR]
RewriteCond %{HTTP_REFERER} bez-trusikov\.com [NC,OR]
RewriteCond %{HTTP_REFERER} bigbangonline\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} buxtome\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} cdamkv\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} cutt\.us [NC,OR]
RewriteCond %{HTTP_REFERER} danilastroitel\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} ^http?://([^.]+\.)*exaccess\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*exaccess\.com [NC,OR]
RewriteCond %{HTTP_REFERER} freefotogirls\.com [NC,OR]
RewriteCond %{HTTP_REFERER} greenshop\.su [NC,OR]
RewriteCond %{HTTP_REFERER} kino-rf\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} link-building-economy\.com [NC,OR]
RewriteCond %{HTTP_REFERER} livetaiga\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} megagrabber\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} mini-modus\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} mojastopa\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} nashi-devki\.com [NC,OR]
RewriteCond %{HTTP_REFERER} odinon\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} own-ahrefs\.com [NC,OR]
RewriteCond %{HTTP_REFERER} pc-lessons\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} pornofoto4ki\.com [NC,OR]
RewriteCond %{HTTP_REFERER} shopmaybay\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} twitch\.tv [NC,OR]
RewriteCond %{HTTP_REFERER} xn--d1abj0abs9d\.in\.ua [NC,OR]
RewriteCond %{HTTP_REFERER} z-audi\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} zvideos\.ru [NC]
RewriteRule .* - [F]
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
#RewriteCond %{QUERY_STRING} m=any&q=1
#RewriteRule - [F]
RewriteCond %{QUERY_STRING} ^m\=any$- [NC]
RewriteCond %{QUERY_STRING} ^m\=any\&q=1$- [NC]
RewriteRule ^ - [F]
# turn off ipv6
#Listen 0.0.0.0:80
AddDefaultCharset utf-8
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteBase /relative/web/path/
RewriteRule ^sitemap.xml$ index.php?s=sitemap [L]
# json
# RewriteRule ^feed.json$ ./index.php?kuo_json_feed
# RewriteRule ^([\-a-zA-Z0-9]+)-feed.json$ ./index.php?kuo_json_feed=$1
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
# SVG
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
# RewriteCond %{QUERY_STRING} ^m\=any$- [F]
#†RewriteRule ^ - [F]
# This prevents web browsers or spiders from seeing your .htaccess directives:
ServerSignature Off
Options All -Indexes
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)\." - [F]
<Files .htaccess>
deny from all
</Files>
<Files config.php>
deny from all
</Files>