Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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
You can’t perform that action at this time.