Hello,
I block image hotlinking on a site because it has been the target of a spammer for some time. Today something new started happening and I need to shut it down.
First the image hotlink protection in .htaccess
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?example.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
It may not be the best, I'm open to suggestions on it too, but, what I now need to accomplish is this.
I need to stop image pages from being loaded into an iframe.
To get around my image hotlink protection the person is now just using the url of the images (ie:www.example.com/images/image.jpg) and adding it to their site(s) using iframes. I'm not sure how given the rules above but it's working.
This is somewhat urgent, a script is being used to show the majority of my sites images this way on several automated free blogs (a new one every hour it seems x 90% of my images = ouchie)
Thanks in advance for any suggestions.
edit: I did search for this but found posts that block images via htaccess but don't seem to block them being loaded in iframes. I found this thread [
webmasterworld.com...] but some links to other WW posts are 404 on it.