Wednesday, May 25, 2005

Corralling Robots and Spiders

Basically:

User-agent: *
Disallow: /


In a file named robots.txt within a particular directory. In the root directory, that keeps all robots out. Or, to specify particular directories:

User-agent: *
Disallow: /scripts/
Disallow: /images/


In the root directory, that would keep robots out of the "images" and "scripts" directories.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home