mirror of
https://github.com/insomniafi/extra
synced 2025-10-13 16:03:22 +00:00
Deny access to directories
This commit is contained in:
10
.htaccess
10
.htaccess
@@ -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