-
Notifications
You must be signed in to change notification settings - Fork 0
/
_.htaccess
46 lines (40 loc) · 996 Bytes
/
_.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
SetEnv TZ Europe/Stockholm
Options +ExecCGI -Indexes +FollowSymLinks
# ACCESS SET
SetEnvIf Request_URI "^/admin.*$" do_auth=true
SetEnvIf Request_URI "^/office.*$" do_auth=true
SetEnvIf Request_URI "^/_resources.*$" do_auth=true
# ACCESS CORE
Order Deny,Allow
Satisfy Any
# BEGIN BanIP
Deny from 31.41.
Deny from 31.144.
Deny from 178.137.
Deny from 31.33.
Deny from 31.133.
Deny from 177.71.
# END BanIP
# FOR do_auth = true
Deny from env=do_auth
Deny from env=REDIRECT_do_auth
AuthName "Restricted Access"
AuthType Basic
AuthBasicProvider file
AuthUserFile /home/lifelink/.htpasswd
AuthGroupFile /dev/null
Require valid-user
# DON'T ALLOW ANYTHING BUT JS/CSS/IMG/KML
#<FilesMatch ".*">
#Order Deny,Allow
#Deny from All
#</FilesMatch>
#<FilesMatch "\.(js|css|png|gif|jpe?g|ico|xml|kml)$">
#Order Deny,Allow
#Allow from All
#</FilesMatch>
# NICEDOG REWRITE
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]