Hello, i found 3 ways to disallow some robots from indexing a file, please help me to point out which are incorrect and which you think is best?
#1
#2
#3
I like a third one, but im not sure if its valid.
Thank you
#1
Code:
User-Agent: * Disallow: User-Agent: Googlebot Disallow: /index-ads.html User-Agent: Googlebot-Mobile Disallow: /index-ads.html User-Agent: Googlebot-Image Disallow: /index-ads.html User-Agent: Mediapartners-Google Disallow: /index-ads.html User-Agent: Adsbot-Google Disallow: /index-ads.html User-Agent: Slurp Disallow: /index-ads.html User-Agent: msnbot Disallow: /index-ads.html User-Agent: msnbot-media Disallow: /index-ads.html Sitemap: http://mysite.com/sitemap.php
#2
Code:
User-Agent: Googlebot User-Agent: Yahoobot User-Agent: Microsoftbot Disallow: /index-ads.html User-agent: * Disallow: /downloads/ Allow: /
#3
Code:
User-Agent: Googlebot Googlebot-Mobile Googlebot-Image Mediapartners-Google Disallow: /index-ads.html Disallow: /downloads/ Allow: /
I like a third one, but im not sure if its valid.
Thank you