2grosiek7 Posted October 25, 2020 Share Posted October 25, 2020 Hello, I've noticed a big problem, because I found in my new backlinks, links under gather and copied from my webshops images (PS 1.6, but seems to problem is also in higher versions). How to prevent these types of, in my opinion, malicious, unwanted activity? How looks like your anti-bot rules in robots.txt? Link to comment Share on other sites More sharing options...
Guest Posted October 25, 2020 Share Posted October 25, 2020 (edited) https://support.google.com/webmasters/answer/35308?hl=en User-agent: Googlebot-Image Disallow: /*.gif$ User-agent: Googlebot-Image Disallow: /*.jpg$ User-agent: Googlebot-Image Disallow: /*.png$ User-agent: Googlebot-Image Disallow: /*.webp$ Edited October 25, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
2grosiek7 Posted October 25, 2020 Author Share Posted October 25, 2020 I don't want to prevent gathering images against legitimate search engines. Just malicious. Link to comment Share on other sites More sharing options...
Guest Posted October 25, 2020 Share Posted October 25, 2020 * place a watermark on a visible surface, such as a pedestal, cabinet, etc.) * .htaccess - the third and fourth lines allow domains that can display the image RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L] There is also a more advanced variant that will cause another image to appear instead of any image. For example, warning you that you don't want anyone to abuse your pictures. You must place a link to this image on the fifth line with a warning: RewriteRule \.(jpg|jpeg|png|gif)$ https://otherdomain.com/image.jpg [NC,R,L] To avoid a serious error, this image must be outside of your domain listed on line 3. Therefore, it is not subject to the hotlinking restriction. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now