Mobile app version of vmapp.org
Login or Join
Annie201

: 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

@Annie201

Posted in: #Filtering #Google #Http #Images #Index

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.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Annie201

3 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

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

10% popularity Vote Up Vote Down


 

@Jennifer507

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.

10% popularity Vote Up Vote Down


 

@Looi9037786

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme