Last active
May 19, 2016 00:06
-
-
Save jennimckinnon/6ce71d9cb036e7904b6402a5e2ea1506 to your computer and use it in GitHub Desktop.
Prevent hot linking in WordPress.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} | |
| !^http://(www\.)?your-site.com/.*$ [NC] RewriteRule \.(gif|jpg)$ | |
| http://www.your-site.com/hotlink.gif [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment