add the exit() to the env file in a better way, add some more htaccess rules to block the env file
This commit is contained in:
@@ -25,6 +25,8 @@ RedirectMatch 403 ^/composer.json
|
||||
RedirectMatch 403 ^/composer.lock
|
||||
RedirectMatch 403 ^/composer.phar
|
||||
RedirectMatch 403 ^/env.php.*?$
|
||||
RedirectMatch 403 ^/env.php
|
||||
RedirectMatch 403 ^/env.php$
|
||||
RedirectMatch 403 ^/Makefile
|
||||
RedirectMatch 403 ^/package.json
|
||||
RedirectMatch 403 ^/package-lock.json
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<?php exit(); ?>
|
||||
|
||||
#
|
||||
# Before you go live, remember to change the APP_ENV to production
|
||||
# and APP_DEBUG to false. Adjust logging to taste
|
||||
|
||||
@@ -127,6 +127,9 @@ class EnvironmentService
|
||||
$env_contents = view('installer::stubs/env', $opts);
|
||||
Log::info($env_contents);
|
||||
|
||||
$env_contents = "<?php exit(); ?>\n\n"
|
||||
.$env_contents;
|
||||
|
||||
fwrite($fp, $env_contents);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user