-
Notifications
You must be signed in to change notification settings - Fork 0
/
s.htaccess
46 lines (41 loc) · 2.14 KB
/
s.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
RewriteEngine on
<FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "https://api.blnd.ga"
</IfModule>
</FilesMatch>
# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule .*\.()$ - [F,NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://api.blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://api.blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^http://blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^http://blnd.x10host.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://blnd.x10host.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.api.blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.api.blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blnd.x10host.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blnd.x10host.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://api.blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://api.blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^https://blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^https://blnd.x10host.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://blnd.x10host.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.api.blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.api.blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.blnd.ga/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.blnd.ga$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.blnd.x10host.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.blnd.x10host.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
# Strip Facebook spyware tokens
RewriteCond %{REQUEST_METHOD} =GET [NC,OR]
RewriteCond %{REQUEST_METHOD} =HEAD [NC]
RewriteCond %{QUERY_STRING} ^(.*)&?fbclid=[^&]+$ [NC]
RewriteRule ^/?(.*)$ /$1?%1 [NE,L,R=301,E=limitcache:1]