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: /
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: /
COMMENT ON THIS ARTICLE...
No comments yet. Be the first one to comment.
How To Protect Your Files From Robots
How to Prevent Duplicate Content with Robots.txt and Meta Tags
Why Robots.txt?
How to Prevent Duplicate Content with Robots.txt and Meta Tags
Why Robots.txt?
SEO Articles
Internet Marketing Articles
Development Articles
General Articles
And also in our Archives
Internet Marketing Articles
Development Articles
General Articles
And also in our Archives
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
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




