Skip to content

Instantly share code, notes, and snippets.

@olalavui
Created April 19, 2012 08:24
Show Gist options
  • Select an option

  • Save olalavui/2419644 to your computer and use it in GitHub Desktop.

Select an option

Save olalavui/2419644 to your computer and use it in GitHub Desktop.
Block traffic from a single referrer. Read full: http://tutorial-share.com/blocking-users-sites-by-referrer
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} badsite\.com [NC]
RewriteRule .* - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment