mirror of
https://github.com/insomniafi/extra
synced 2026-10-28 10:15:00 +00:00
Deny access to directories
This commit is contained in:
1 parent
06ce9273d4
commit
e2ea113e05
1 file changed
+10
@@ -11,3 +11,13 @@ RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php [NC,L,QSA]
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_autoindex.c>
|
||||
IndexIgnore */*
|
||||
Options -Indexes
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_alias.c>
|
||||
RedirectMatch 403 ^/.git(/.*)?$
|
||||
RedirectMatch 403 ^/datastore(/.*)?$
|
||||
</IfModule>
|
||||
Reference in new issue
Block a user