Require authentication on new log viewer (#6) and increased security of new directories.

migrationdev
YandolsZX 7 years ago
parent 195c089024
commit 63d0e0e62f
  1. 8
      .htaccess
  2. 4
      robots.txt

@ -22,9 +22,15 @@ 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]
#Preventing Public Access to Logs file #Preventing Public Access to Logs file
<FilesMatch "uploads.log"> <FilesMatch "(logs.php|uploads.log)$">
AuthType Basic AuthType Basic
AuthName "Restricted Area" AuthName "Restricted Area"
AuthUserFile /var/www/passes/imeji/.htpasswd AuthUserFile /var/www/passes/imeji/.htpasswd
Require valid-user Require valid-user
</FilesMatch> </FilesMatch>
#Allow linking asset elemets across subdomains
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>

@ -1,4 +1,8 @@
User-agent: * User-agent: *
Disallow: /addonstyle
Disallow: /addonstyle/
Disallow: /assets
Disallow: /assets/
Disallow: /deprecated Disallow: /deprecated
Disallow: /deprecated/ Disallow: /deprecated/
Disallow: /private Disallow: /private

Loading…
Cancel
Save