Jump to content

Robots.txt


GermanPrince

Recommended Posts

ROBOTS.txt files are used to stop search engines from refrencing certain files or directories. Say you don't want search engines to index "/scripts" or "/data" or "/images". You would write the following code:

User-Agent: *Disallow: /scripts/Disallow: /data/Disallow: /images/

What if you don't want anyone BUT Google to index your images. You would use the following code:

User-Agent: *Disallow: /images/User-Agent: Googlebot-ImageAllow: /images/

"#" is used for comments. Take a peak at the following code for a better idea.

User-Agent: Googlebot-Image #Disallows Google Images from indexing certain imagesDisallow: /images/

Each search engine has its own bot name. It would be great if you guys listed some for people to use. That is how you use robots.txt files.This is subject to change.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...