Skip to content

NOW MANAGED ON CODEBERG

Prevented potential apache image dir listing

Dan Brown4de719b3254a
diff --git a/public/.htaccess b/public/.htaccess
index 8eb2dd0dd..0d55354ec 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,6 +1,6 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
- Options -MultiViews
+ Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
diff --git a/public/uploads/.gitignore b/public/uploads/.gitignore
index c96a04f00..cb7328e19 100755
--- a/public/uploads/.gitignore
+++ b/public/uploads/.gitignore
@@ -1,2 +1,3 @@
*
-!.gitignore
\ No newline at end of file
+!.gitignore
+!.htaccess
\ No newline at end of file
diff --git a/public/uploads/.htaccess b/public/uploads/.htaccess
new file mode 100755
index 000000000..45552cb63
--- /dev/null
+++ b/public/uploads/.htaccess
@@ -0,0 +1 @@
+Options -Indexes
\ No newline at end of file