- Joined
- Sep 15, 2014
- Messages
- 4,337
- Likes
- 8,850
- Degree
- 8
They are showing the image on their site - so copy and paste - and then below it saying : Source and the source links to - mysite.com/wp-content/images/theimage.jpg
I just want to confirm the htaccess code above does indeed stop YOUR images from showing up on the offending site if they are using you are the source. I hotlinked an image from Mako on MOE, and then within the Mako htaccess implemented the code:
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?moneyoverethics.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|webp|bmp|zip|rar|mp3|mp4|avi)$ - [F]
Before:
and After:
So all your images on their site should suddenly appear broken. If you have multiples sites you'll have to expand the htaccess to:
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?buildersociety.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?moneyoverethics.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|webp|bmp|zip|rar|mp3|mp4|avi)$ - [F]
Here is the NGINX version:
Code:
server {
...
location ~* \.(jpg|jpeg|png|gif|webp|bmp|zip|rar|mp3|mp4|avi)$ {
if ($http_referer ~* (buildersociety.com|moneyoverethics.com)) {
return 403;
}
}
...
}
Edited: Added webp from @Politico code
Last edited: