|
|
@ -9,20 +9,18 @@ RewriteEngine On
|
|
|
|
RewriteCond %{HTTPS} off
|
|
|
|
RewriteCond %{HTTPS} off
|
|
|
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
|
|
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
|
|
|
|
|
|
|
|
|
|
|
# HTTPS for authentication pages
|
|
|
|
|
|
|
|
SSLOptions +StrictRequire
|
|
|
|
|
|
|
|
SSLRequireSSL
|
|
|
|
|
|
|
|
SSLRequire %{HTTP_HOST} eq "%{HTTP_HOST}%{REQUEST_URI}"
|
|
|
|
|
|
|
|
ErrorDocument 403 https://%{HTTP_HOST}%{REQUEST_URI}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Hackerbots Prevention
|
|
|
|
# Hackerbots Prevention
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*)
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*)
|
|
|
|
RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L]
|
|
|
|
RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L]
|
|
|
|
|
|
|
|
|
|
|
|
# Prevent public access to the logs
|
|
|
|
# Prevent public access to the logs, requires login through HTTPS
|
|
|
|
<FilesMatch "(logs.php|uploads.log)$">
|
|
|
|
<FilesMatch "(logs.php|uploads.log)$">
|
|
|
|
|
|
|
|
SSLOptions +StrictRequire
|
|
|
|
|
|
|
|
SSLRequireSSL
|
|
|
|
|
|
|
|
SSLRequire %{HTTP_HOST} eq "%{HTTP_HOST}%{REQUEST_URI}"
|
|
|
|
|
|
|
|
ErrorDocument 403 https://%{HTTP_HOST}%{REQUEST_URI}
|
|
|
|
AuthType Basic
|
|
|
|
AuthType Basic
|
|
|
|
AuthName "Restricted Area"
|
|
|
|
AuthName "Restricted Area"
|
|
|
|
AuthUserFile /var/www/passes/imeji/.htpasswd
|
|
|
|
AuthUserFile /var/www/passes/imeji/.htpasswd
|
|
|
|