Pergunta

enter image description here

Is there any way to disallow slider images on google search results ? I heard that making robots.txt will fix this problem.

User-agent: Googlebot-Image
Disallow: /images/abc.jpg 

: this is for a perticular image. and I want to disallow a whole image directory

User-agent: Googlebot-Image
Disallow: /images/ 

: is it possible to make something like this ? will it affect the existing search result ?

Foi útil?

Solução

Yes, it's possible. Use your 2nd variant. After some time, these restricted images will dissapear from image search, since Google will remove it from the index due to robots.txt restriction. Don't forget to add/test new robots.txt to your Google Webmaster Tools account.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top