forked from YandolsZX/IcarusImeji
parent
e814a4f5f1
commit
8bee5cc9a8
@ -1,34 +0,0 @@
|
|||||||
# Standard Declaration Procedures for Imeji System
|
|
||||||
ErrorDocument 403 /public/403.php
|
|
||||||
ErrorDocument 404 /public/404.php
|
|
||||||
IndexOptions +FancyIndexing
|
|
||||||
IndexIgnore *
|
|
||||||
|
|
||||||
# HTTPS Redirection
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteCond %{HTTPS} off
|
|
||||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
|
||||||
|
|
||||||
# Hackerbots Prevention
|
|
||||||
RewriteEngine on
|
|
||||||
RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]
|
|
||||||
RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*)
|
|
||||||
RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L]
|
|
||||||
|
|
||||||
# Prevent public access to the logs, requires login through HTTPS
|
|
||||||
<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
|
|
||||||
AuthName "Restricted Area"
|
|
||||||
AuthUserFile /var/www/passes/imeji/.htpasswd
|
|
||||||
Require valid-user
|
|
||||||
</FilesMatch>
|
|
||||||
|
|
||||||
# Allow linking asset elemets across subdomains
|
|
||||||
<IfModule mod_headers.c>
|
|
||||||
Header set Access-Control-Allow-Origin "*"
|
|
||||||
</IfModule>
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
|||||||
# Standard Declaration Procedures for Imeji System
|
|
||||||
ErrorDocument 403 /403.php
|
|
||||||
ErrorDocument 404 /404.php
|
|
||||||
Options -Indexes
|
|
||||||
|
|
||||||
# HTTPS Redirection
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteCond %{HTTPS} off
|
|
||||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
|
||||||
|
|
||||||
# Hackerbots Prevention
|
|
||||||
RewriteEngine on
|
|
||||||
RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]
|
|
||||||
RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*)
|
|
||||||
RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L]
|
|
||||||
|
|
||||||
#Allow linking asset elemets across subdomains
|
|
||||||
<IfModule mod_headers.c>
|
|
||||||
Header set Access-Control-Allow-Origin "*"
|
|
||||||
</IfModule>
|
|
||||||
|
|
Loading…
Reference in new issue