Laravel .env access restriction using .htaccess
Open your .htaccess file Add the following script: <Files .env> Order allow,deny Deny from all </Files>
Read moreIP Restriction using .htaccess
order deny,allow deny from all allow from xxx.xxx.xxx.xxx allow from xxx.xxx.xxx.xxx File Restriction order deny,allow deny from all allow from xxx.xxx.xxx.xxx allow from xxx.xxx.xxx.xxx allow from xxx.xxx.xxx.xxx
Read more