Skip to content

Instantly share code, notes, and snippets.

@zeropointdevelopment
Created December 27, 2013 05:43
Show Gist options
  • Save zeropointdevelopment/8143026 to your computer and use it in GitHub Desktop.
Save zeropointdevelopment/8143026 to your computer and use it in GitHub Desktop.
[WordPress] Code from our blog page Stop Image Hotlinking - http://www.limecanvas.com/stop-image-hotlinking/
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/hotlinking-thief.jpg [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment