Created
April 27, 2018 17:40
-
-
Save underhilllabs/0ba719aee1c6172c7835adc3b1c75d75 to your computer and use it in GitHub Desktop.
Set up basic http auth to block bots from dev server
This file contains hidden or 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
<VirtualHost *> | |
<Directory /var/www/devsite/> | |
AuthType Basic | |
AuthName "Restricted Content" | |
AuthUserFile /etc/apache2/.htpasswd | |
Require valid-user | |
</Directory> | |
</Virtualost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment