From 63d0e0e62fb02b674314766df2372ee30168046c Mon Sep 17 00:00:00 2001 From: Yandols Date: Tue, 6 Feb 2018 13:43:30 +0800 Subject: [PATCH] Require authentication on new log viewer (#6) and increased security of new directories. --- .htaccess | 8 +++++++- robots.txt | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 9959c99..f2fc95d 100644 --- a/.htaccess +++ b/.htaccess @@ -22,9 +22,15 @@ RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*) RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L] #Preventing Public Access to Logs file - + AuthType Basic AuthName "Restricted Area" AuthUserFile /var/www/passes/imeji/.htpasswd Require valid-user + +#Allow linking asset elemets across subdomains + + Header set Access-Control-Allow-Origin "*" + + diff --git a/robots.txt b/robots.txt index 062f10b..e7fcd22 100644 --- a/robots.txt +++ b/robots.txt @@ -1,4 +1,8 @@ User-agent: * +Disallow: /addonstyle +Disallow: /addonstyle/ +Disallow: /assets +Disallow: /assets/ Disallow: /deprecated Disallow: /deprecated/ Disallow: /private