Forum Moderators: goodroi
Just tried to validate the robots.txt file and got the message below:
warning Multiple wildcard User-agent values. These should be combined under one User-agent/Disallow pair.
User-agent: *
10 warning Duplicate User-agent value seen: *. It is unknown how spiders will react to duplicates.
User-agent: *
1
2 User-agent: *
3 Disallow:
4
5
6 User-agent: Googlebot-Image
7 Disallow: /
8
9
10 User-agent: *
11 Disallow: /images/
12
13
14 User-agent: Yahoo-MMCrawler
15 Disallow: /
Can anyone please give an idea on a better way to code the above, but still have the same result? But also to disallow others viewing logs?
Any help appreciated.
Sev.
then you was allowing all robots access but then banning two of them
this gives access to all robots to all of your site
User-agent: *
Disallow:
but then you disallow this robot
User-agent: Googlebot-Image
Disallow: /
and this
User-agent: Yahoo-MMCrawler
Disallow: /
and disallow all robots to your image directory
User-agent: *
Disallow: /images/
so by removing the incorrect line and the line giving access to all robots which is what you want to do anyway so you dont need it you are left with what validates
glad to be of help
Any help appreciated.
Sev.
User-agent: *
Disallow:
User-agent: Googlebot-Image
Disallow: /
User-agent: *
Disallow: /images/
User-agent: Yahoo-MMCrawler
Disallow: /
You don't have to have the file if you don't want to but you will see reference to 404 errors in your sites log file because the file was requested but was not available
having a blank file will stop the 404 errors
or in your case you want to disallow two robots and disallow access to your image directory
hence this....
User-agent: Googlebot-Image
Disallow: /
User-agent: Yahoo-MMCrawler
Disallow: /
User-agent: *
Disallow: /images/
click...I hear another light bulb go on ;)
To create a robots.txt file
Create a text file using a Word Processor or HTML editor using the required coding like the example above
Save the file as robots.txt
Upload the robots.txt file to the root directory using your FTP software in ACSII mode