Skip to content

Instantly share code, notes, and snippets.

@underhilllabs
Created April 27, 2018 17:40
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 underhilllabs/0ba719aee1c6172c7835adc3b1c75d75 to your computer and use it in GitHub Desktop.
Save underhilllabs/0ba719aee1c6172c7835adc3b1c75d75 to your computer and use it in GitHub Desktop.
Set up basic http auth to block bots from dev server
<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