forked from drlippman/IMathAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
44 lines (39 loc) · 1.87 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
AddType image/svg+xml .svg
AddType image/svg+xml .svgz
AddType image/x-icon .ico
AddType application/vnd.ms-word.document.macroEnabled.12 .docm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm
AddType application/vnd.openxmlformats-officedocument.presentationml.template potx
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType application/vnd.ms-excel.template.macroEnabled.12 xltm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
Options -Indexes
php_value upload_max_filesize 10M
php_value max_input_vars 5000
<Files "composer.json">
deny from all
</Files>
<Files "composer.lock">
deny from all
</Files>
<Files "phpunit.xml">
deny from all
</Files>
# Annoying vulnerability scans
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*admin.*) http://localhost/$1 [R=301,L,NC]
RewriteRule (.*mysql.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^sql(.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^db(.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^php(.*) http://localhost/$1 [R=301,L,NC]
RewriteRule ^pma(.*) http://localhost/$1 [R=301,L,NC]