Skip to content

Instantly share code, notes, and snippets.

@martijngastkemper
Last active December 25, 2015 18:29
Show Gist options
  • Save martijngastkemper/7021193 to your computer and use it in GitHub Desktop.
Save martijngastkemper/7021193 to your computer and use it in GitHub Desktop.
Solution to block an user-agent with htaccess. In this example 80legs crawler is blocked.
BrowserMatchNoCase 80legs bad_bot
Order Deny,Allow
Deny from env=bad_bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment