-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
41 lines (35 loc) · 1.11 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
RewriteEngine on
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
#<ifModule mod_php4.c>
# php_value register_globals 1
#</ifModule>
<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
#The next line modified by DenyIP
#deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
#AuthName www.the-spot.net
#AuthUserFile /home/neo/public_html/_vti_pvt/service.pwd
#AuthGroupFile /home/neo/public_html/_vti_pvt/service.grp
#<ifModule mod_php4.c>
# php_value auto_prepend_file /home/neo/public_html/global_prepend.php
# php_value auto_append_file /localfilepath/global_append.php
#</ifModule>
<Files 403.shtml>
order allow,deny
allow from all
</Files>
# Use PHP5 as default
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule ^.*\.(yml|lock|phar|md)$ - [R=404,NC,L] # Prevent access to config and executables
RewriteRule ^\..*$ - [R=404,NC,L] # Prevent access to anything starting with a .
RewriteRule ^[\w\d\-.]*\.php$ - [R=404,NC,L] # Prevent top-level php requests
#AddHandler application/x-httpd-php55 .php55 .php