Skip to content

Instantly share code, notes, and snippets.

@zeropointdevelopment
Created December 27, 2013 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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