mirror of
https://github.com/insomniafi/extra
synced 2026-11-17 14:42:39 +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
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ index.php [NC,L,QSA]
|
RewriteRule ^(.*)$ index.php [NC,L,QSA]
|
||||||
</IfModule>
|
</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