Skip to content

Instantly share code, notes, and snippets.

@interactiveRob
Created April 18, 2018 14:26
Show Gist options
  • Save interactiveRob/c464e62cf4a6a2f35207a7371365ccc7 to your computer and use it in GitHub Desktop.
Save interactiveRob/c464e62cf4a6a2f35207a7371365ccc7 to your computer and use it in GitHub Desktop.
.htaccess forbid all
Order deny,allow
Deny from all
@interactiveRob
Copy link
Author

These two lines in the .htaccess file of your desired directory will cause a 403 Forbidden error when anyone tries to visit the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment