How Important Robots File Are in Website Optimization

As a practicing SEO consultant I heard one doubteven full of his website.
from the webmasters as why should they insert theWriting robots file is an easy task. Any one can write
robots.txt file on the root directory of their site. Theirhis own robots file for their website. To write robots
point is they don't need to restrict spiders from anyfile we need to know some basic formats. Here I am
part of their website and why should they insert a filegiving four formats or examples for writing robots.
which gives full permission to spiders. What they said isThey are:
true in developers point of view as we cannot tell or1. Block spiders from crawling your entire website
force Search Engine spiders to crawl my website andTo disallow a spider from crawling your website, the
index it fully. If you really want to do that you need toformat should be.
go for sitemap submission in Google webmaster tools ,User-agent: *
but that is a different story. Then why should theyDisallow: /
upload one text file which tells the spiders "you are2. Giving access to your website
allowed to access my website" where it is their normalTo make it reverse we should change it to either
duty?User-agent: *
The answer to the question is very simple. WhenDisallow:
spiders look for a particular page on your websiteOr
where that is not available the normal result is errorUser-agent: *allow: /
404. Unfortunately robots.txt file is a well known namePlease note that allowing a spider to your website
for Search Engine spiders and they will will look in todoesn't make any sense other than avoiding 404 error
the file to check if any barrier is set on the site forif spiders look for robots.txt file on your website.
them. If there is no robots.txt file created it will end to3. Block spiders from accessing certain files on your
an error 404 page. The error will appear to spiderssite
and they may report it as broken link. This broken linkTo block spiders from accessing certain files from
report may reduce the importance of your website inyour website create a robots.txt file like below.
Search Engine's view. So to avoid this situation SEOUser-agent: *
consultants advice their clients to upload this simpleDisallow: /cgi-bin/
text file on to their server.Disallow: /wusage/
So what is this robots file? The robots.txt is a text fileDisallow: /textures/
which would be uploaded to the root directory of your4. Block certain spiders from accessing your website
website where it contains a set of rules for theTo block certain spider from accessing your website
Search Engine spiders. Robots.txt is mainly used to tellwe need to write the robots.txt as:
the web spiders to don't crawl the following (given)User-agent: " spider name"
links. One thing we do mind that robots.txt files cannotDisallow: /
tell a spider to crawl and index the following page asEg:
indexing is the normal duty of a spider. I think you gotUser-agent: Googlebot-Image
the point. So no one can force the spiders to crawlDisallow: /
their website as it is purely depends upon spiders. ButI hope this article is enough for the readers to get a
one can block spiders from accessing certain part orbasic idea about robots.txt file.