HoBu4eK/easypcfix/master/.htaccess - Htaccess File

HoBu4eK/easypcfix/master/.htaccess

# Force utf-8 charset
AddDefaultCharset utf-8

# Security
ServerSignature Off

# Secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# Protect config.php
<Files config.php>
order allow,deny
deny from all
</Files>

# Block Nasty Bots
<IfModule mod_setenvifno.c>
  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
</IfModule>

# Disable directory listing
Options -Indexes

ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 500 /error.php?code=500

On Github License

Files

Download PDF of Htaccess file

Comments

Apache