0

I want Disallow google images to index my images in these path please let me know that am i right for this code in robots.txt.

/images/otherimages/dir1/here are several images
/images/otherimages/dir2/here are several images

User-agent: googlebot
Disallow: /otherimages/

4

1 回答 1

0

有一个用于图像的特殊 googlebot。这将排除两者:

User-Agent: Googlebot-Image
Disallow:  /images/otherimages/dir1/
Disallow:  /images/otherimages/dir2/

User-Agent: Googlebot
Disallow:  /images/otherimages/dir1/
Disallow:  /images/otherimages/dir2/
于 2013-06-04T15:32:49.697 回答