I have been trying to work through this issue for months now, without any success.
I want to block a 3rd party site where my images are displayed at. (thirdpartysite.com)*
However everything I have tried has never worked...
I believe the forum is NOT using a referrer in its image requests... so using its domain name has never worked.
I have edited my .htaccess file to block non-referrers... but not my own site/content is ALSO being redirected to the alt image.
How can I stop this 3rd party non-referrer forum from displaying my hosted images, BUT still allow my OWN domain (mydomain.com)* to display the images correctly/properly? (not not the re-direct image)
RewriteEngine On
RewriteCond %{HTTP_REFERER} =""
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ https://some-other-domain/some-image.jpg [R,NC]
-works to block the 3rd party site (which I guess is not sending a referrer, because add that specific domain to block has never worked)
-but also seems to block/redirect all images on MY SITE as well?
RewriteEngine On
RewriteCond %{HTTP_REFERER} =""
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com(/)?.*$
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ https://some-other-domain/some-image.jpg [R,NC]
- doesnt seem to change anything? MY domain still shows the redirected image.. (but so does the 3rd party forum site now..finally)
I have tried a slew of other entries.. but nothing has effected the 3rd party site except this:
RewriteCond %{HTTP_REFERER} =""
I'd also like to add a list of exception site that CAN hot link, such Arduino.cc,...etc (but who knows if they too send referrer info or not? - havent looked into that far yet)
How can I block this 3rd party forum, that sends no referrer info... but NOT effect my own site?