Skip to content

Instantly share code, notes, and snippets.

@tml
Created March 12, 2018 06:25
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 tml/7180aae8d55884ddbf7ce4218c029f36 to your computer and use it in GitHub Desktop.
Save tml/7180aae8d55884ddbf7ce4218c029f36 to your computer and use it in GitHub Desktop.
Trivial solution
SetEnvIf User-Agent secret_sauce let_me_in
<Directory /srv/www/vhosts/SOMEDOMAIN.TLD>
Deny from all
Allow from env=let_me_in
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment