Created
November 26, 2014 17:35
-
-
Save bxt/2289757e22a729935947 to your computer and use it in GitHub Desktop.
Simple .htaccess file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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