robots.txt

ashee1

Newbie
Joined
Jun 11, 2012
Messages
8
Reaction score
0
What is meant by Optimization robots.txt .Can any one explain it in simple words.
Thanks

 
roborts.txt is to inform search engine spiders not to crawl certain pages. If search engine spiders crawl a web page it will be displayed in search engines for general public. People use roborts.txt option to block some personalized/private content.
 
below an example optimized robots.txt for my wordpress site (just my own perspective :D)

# Google Bot
User-agent: *
Disallow: /cgi-bin/
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-content/
Disallow: /search/
Disallow: /trackback/
Disallow: *?*
Disallow: */trackback/
Disallow: */date/*
Disallow: */page/*

# Google Image
User-agent: Googlebot-Image
Allow: /

# Google Mobile
User-agent: Googlebot-Mobile
Allow: /

# Google AdSense
User-agent: Mediapartners-Google*
Allow: /
Disallow: *?*
User-agent: Adsbot-Google
Allow: /

Sitemap: url/to/sitemap.xml

any suggestion or better advice, let me know
 
I never use robots.txt. On new sites i create a blank one just to avoid all those 404 error being logged in my apache logs
 
You can do some nifty things with robots.txt.
One of my sites has a lot of dynamic pages that are updated frequently.
This all goes automatically. It's a mock-up of different api's.
1000's of urls, fresh content, the spiders go crawling like crazy.
Result? Api rate limits exceded.
(Yes, even with cached results. These damn spiders sometimes!)
So I added this to robots.txt:
Code:
User-agent: *
Request-rate: 1/3 # Maximum request rate: 1 page every 3 seconds (20/minute)
Crawl-delay: 3 # Used by several bots (20/minute)
Problem solved.
I also disallow a few bots.
But be carefull with robots.txt.
Especially if you don't know what you are doing.
Before you know it, you disallow every spider.
And you probably don't want that :)
 
Back
Top