mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
More .htaccess options added. Requires testing
This commit is contained in:
@@ -7,6 +7,30 @@
|
|||||||
ErrorDocument 500 /error.php?500
|
ErrorDocument 500 /error.php?500
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
# secure htaccess file
|
||||||
|
<Files .htaccess>
|
||||||
|
 order allow,deny
|
||||||
|
 deny from all
|
||||||
|
</Files>
|
||||||
|
|
||||||
|
# protect e107_config.php
|
||||||
|
<Files e107_config.php>
|
||||||
|
order allow,deny
|
||||||
|
deny from all
|
||||||
|
</Files>
|
||||||
|
|
||||||
|
# Block Bad Bots
|
||||||
|
# SetEnvIfNoCase ^User-Agent$ .*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures) HTTP_SAFE_BADBOT
|
||||||
|
# SetEnvIfNoCase ^User-Agent$ .*(libwww-perl|aesop_com_spiderman) HTTP_SAFE_BADBOT
|
||||||
|
# Deny from env=HTTP_SAFE_BADBOT
|
||||||
|
|
||||||
|
|
||||||
|
# Disable directory browsing
|
||||||
|
Options All -Indexes
|
||||||
|
|
||||||
|
# limit file uploads to 10mb
|
||||||
|
# LimitRequestBody 10240000
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
### enable rewrites
|
### enable rewrites
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
|
Reference in New Issue
Block a user