aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-12-05 19:08:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-12-05 19:08:38 -0300
commitebcc4c568315e311995273bdfb74380834656401 (patch)
treefd278903c7550aa95d2d70f6913b6fad81be8dc9
parent56c2cc72b9e4f65d94edab5f4c58633322dc43f8 (diff)
downloadsemanticscuttle-ebcc4c568315e311995273bdfb74380834656401.tar.gz
semanticscuttle-ebcc4c568315e311995273bdfb74380834656401.tar.bz2
Fix: restrict access using HTTP Auth
-rw-r--r--www/.htaccess8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/.htaccess b/www/.htaccess
index 381c0fe..e79169b 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -38,3 +38,11 @@ ExpiresByType text/css "access plus 15 days"
SetOutputFilter DEFLATE
#</FilesMatch>
</IfModule>
+
+# Workaround to decrease resource consumption
+<If "-f %{DOCUMENT_ROOT} . '/.htpasswd'">
+AuthType Basic
+AuthName "links - semanticscuttle"
+AuthUserFile /var/sites/links/site/.htpasswd
+Require valid-user
+</If>