I wanted to set up my .htaccess file so that people who hotlink my images would not be able to display may images and instead a "STEALING IS BAD" image would show up instead.
I tried to put the follwowing code into my root's .htaccess file, but it doesn't do anything. Any ideas how I'd have to modify the code any further to make it work?
[....]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?zoomingjapan.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?feeds.feedburner.com/ZoomingJapan [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ ? [NC,F,L]
#RewriteRule \.(jpg|jpeg|png|gif)$ http://zoomingjapan.com/../hotlinking.png [R,L]
</IfModule>
# END WordPress
Thanks a lot in advance.