fix(htaccess): Block direct access to vendor and src folders
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Bloquear acceso a las carpetas vendor/ y src/
|
||||||
|
RewriteRule ^(vendor|src)/.*$ - [F,L]
|
||||||
|
|
||||||
# Handle Front Controller...
|
# Handle Front Controller...
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
|||||||
Reference in New Issue
Block a user