Skip to content

Instantly share code, notes, and snippets.

@bxt
Created November 26, 2014 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bxt/2289757e22a729935947 to your computer and use it in GitHub Desktop.
Save bxt/2289757e22a729935947 to your computer and use it in GitHub Desktop.
Simple .htaccess file
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
AuthUserFile /etc/apache2/.htpasswd
AuthGroupFile /dev/null
AuthName "Temporarily blocked! Please contact your webmaster"
AuthType Basic
require valid-user
order deny,allow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment