Skip to content

Instantly share code, notes, and snippets.

@sharbel93
Created October 25, 2018 11:06
Show Gist options
  • Save sharbel93/a626cdc90f03226fa5de80b34ef83069 to your computer and use it in GitHub Desktop.
Save sharbel93/a626cdc90f03226fa5de80b34ef83069 to your computer and use it in GitHub Desktop.
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden // in here specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
# in here specify full file name sperator '|'
<Files ~ "(artisan)$">
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