: How to properly tell Google they have no right to access the download. What status do I use? I'm looking for the SEO way to tell Google not to download pictures. I have a script that generates
I'm looking for the SEO way to tell Google not to download pictures.
I have a script that generates one of two things based on who accesses the site:
If an unauthorized robot accesses the site, they will receive a message that they should visit the website first.
Users on the other hand who have seen the site first will cause the script to generate the picture for them.
I already have this header:
X-Robots-Tag: noindex, noimageindex
But I'm not too sure what status code I should hand to robots (who receive the message instead of the picture). Right now, I set it to 200 to denote a valid page. I was thinking of setting it to 401, but I don't know if that's correct in this case.
More posts by @Annie201
3 Comments
Sorted by latest first Latest Oldest Best
I think you should not show two different things to bots and users. Instead, just don't allow google image bot to index your site.
You should place this in your robots.txt
User-agent: Googlebot-Image
Disallow: /
Source: support.google.com/webmasters/answer/35308?hl=en
Blocking the directories with images using robots.txt is one way, but google crawls as a human ne so blocking images etc impacts how google sees your site.
to tell google not to download pictures
If i understand you correctly, you don't want, that images appear in the image search? If yes, then publish such images like data uri and they will be not indexed.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.