Skip to content

Instantly share code, notes, and snippets.

@ahhh
Last active August 29, 2015 14:16
Show Gist options
  • Save ahhh/52bf1b50b51380a06bdd to your computer and use it in GitHub Desktop.
Save ahhh/52bf1b50b51380a06bdd to your computer and use it in GitHub Desktop.
.htaccess file for targeted payload delivery
# targeted payload htaccess
# no dir listing
IndexIgnore *
SetEnvIfNoCase User-Agent ".*Mozilla.*Mac.*" TARGET_UAS
# default deny everything, then allow exceptions
order Deny,Allow
deny from all
# allow targets
allow from env=TARGET_UAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment