Web Site-Reference.com
The robots.txt file

by Cyrus Taraporvala
Posted on May 18, 2008


When a web robot visits a site, it goes to the "/robots.txt" page on a site, which is protocol, from where it receives instructions on which areas of the domain it can or cannot visit.

If there is no "/robots/txt" file within a domain, the robot gathers that it can traverse all areas within the domain. The file for robots should always be placed immediately after your domain name, and not in another folder, ie. "www.yoursite.com/robots.txt"

To exclude a robot from visiting certain areas within your domain, like the /cgi-bin/ for example, simply include those details in your file. To disallow all robots to traverse your site, the robots.txt page should look like this

User-agent *
Disallow: /

To allow robots to traverse your site

User-agent *
Disallow:

or just create an empty robots.txt file.

To tell the robots to exclude certain areas within your domain, simply add a file as follows :

User-agent: *
Disallow: /cgi-bin/
Disallow: /Admin/

In the process, you can also variate for your own reasons whether you want to exclude a particular robot and allow others.

User-agent: LousyBot
Disallow: /








Print This Article| Send To A Friend| RSS Feeds|Read More Related Articles

COMMENT ON THIS ARTICLE...


First name: Website: (Please include http://)





No comments yet. Be the first one to comment.

Print    E-mail     Comments (0)

Share     Text       RSS Feed



Post them now in our forums for quick, helpful advice from thousands of members!



Get all the latest webmaster tips and tricks from some of the brightest minds in the online world delivered right to your inbox with the Site-Reference Newsletter

Last name:
First name:


e-mail:


Your privacy is 100% Guaranteed. Easily unsubscribe at any time



Drive traffic to your business and get recognized as an industry leader by sharing your knowledge on Site-Reference. Authors are given a wide range of exclusive benefits here at SR; so checkout what we can offer to those that…



We’re always on the lookout for new writting talent so even if haven’t written for the web yet, feel free to contact us anytime