Skip to content

Instantly share code, notes, and snippets.

@amilabandara
Created October 5, 2015 13:22
Show Gist options
  • Save amilabandara/5b98bafff4caf8c36558 to your computer and use it in GitHub Desktop.
Save amilabandara/5b98bafff4caf8c36558 to your computer and use it in GitHub Desktop.
stop bandwidth steel
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/angryman.gif [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment