Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created April 8, 2018 05:23
Show Gist options
  • Save Sharifur/095183cb4a86802751967147fca4ec5d to your computer and use it in GitHub Desktop.
Save Sharifur/095183cb4a86802751967147fca4ec5d to your computer and use it in GitHub Desktop.
hide laravel .env file . to direct access
# Disable index view
Options -Indexes
# Hide a specific file
<Files .env>
Order allow,deny
Deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment