Hi there!
I have a little problem with my .htaccess file...
Here's my .htaccess file:
RewriteEngine on
RewriteRule ^/images/allowed/(.+) - [PT,L]
RewriteCond %{HTTP_REFERER} !^[url]http://www\.mysite\.com.*[/url]$ [NC]
RewriteCond %{HTTP_REFERER} !^[url]http://mysite\.com.*[/url]$ [NC]
RewriteCond %{HTTP_REFERER} !^[url]http://forum\.mysite\.com.*[/url][/url]$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3|pdf)$ [url]http://www.mysite.com/images/hotlink.jpg[/url] [R,NC]
So, I want to block hotlinking from every host exept: www.mysite.com, mysite.com and forum.mysite.com.
This works like a charm... However, I want other sites to be able to hotlink the images in /images/allowed and this doesn't work...
Also, I want the image 'hotlink.jpg' to appear when someone tries to hotlink an image, this doesn't work either...
Thanks in advance / jek