FEATURE: add all directories and files into .htaccess to be prevented from viewing from website
This commit is contained in:
@@ -13,5 +13,24 @@ RewriteCond %{REQUEST_FILENAME} !-f
|
|||||||
RewriteCond %{REQUEST_URI} !^/public/
|
RewriteCond %{REQUEST_URI} !^/public/
|
||||||
RewriteRule ^(assets)/(.*)$ public/$1/$2 [L,NC]
|
RewriteRule ^(assets)/(.*)$ public/$1/$2 [L,NC]
|
||||||
|
|
||||||
#disable viewing all hiden files
|
# disable viewing all hiden files
|
||||||
RedirectMatch 403 /\..*$
|
RedirectMatch 403 /\..*$
|
||||||
|
|
||||||
|
# disable browsing other files in root
|
||||||
|
RedirectMatch 403 /composer.*
|
||||||
|
RedirectMatch 403 /artisan
|
||||||
|
RedirectMatch 403 /phpunit.xml
|
||||||
|
|
||||||
|
# disable browsing directories
|
||||||
|
# this should be solved also with Option -Indexes, however...
|
||||||
|
RedirectMatch 403 /app
|
||||||
|
RedirectMatch 403 /artisan
|
||||||
|
RedirectMatch 403 /bootstrap
|
||||||
|
RedirectMatch 403 /config
|
||||||
|
RedirectMatch 403 /database
|
||||||
|
RedirectMatch 403 /modules
|
||||||
|
RedirectMatch 403 /resources
|
||||||
|
RedirectMatch 403 /scripts
|
||||||
|
RedirectMatch 403 /storage
|
||||||
|
RedirectMatch 403 /tests
|
||||||
|
RedirectMatch 403 /vendor
|
||||||
|
|||||||
Reference in New Issue
Block a user