phpdotenv-for-codeigniter icon indicating copy to clipboard operation
phpdotenv-for-codeigniter copied to clipboard

Security Issue

Open neodite opened this issue 7 years ago • 2 comments
trafficstars

If running this from the "Manual Install" and keeping everything default as in github.

Navigating to http://siteurl.com/.env.production will offer the environment file to be downloaded by the user.

neodite avatar Apr 14 '18 09:04 neodite

You could set:

$dotenv = new Dotenv\Dotenv(APPPATH);

to add .env file to application folder

askotx avatar Jun 10 '19 00:06 askotx

you can use .htaccess

#except .env file
RewriteRule ^(.env) - [F,L,NC]

doelmi avatar Jul 16 '19 03:07 doelmi