Search Optimization
  Home arrow Search Optimization arrow Page 4 - I, Robots.txt
IBM Rational Software Development Conference
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SEARCH OPTIMIZATION

I, Robots.txt
By: Jamesp
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2008-03-26

    Table of Contents:
  • I, Robots.txt
  • A Few Pointers
  • Creating Your First Robots.txt
  • Limiting Bots
  • Commenting and Loosely Supported Extensions

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    I, Robots.txt - Limiting Bots
    (Page 4 of 5 )

    So far we have focused primarily on how to limit files. Now we will work with limiting specific bots from accessing our files.

    If we want to tell one specific bot to stay out of all of our directories, we input the following code into our robots.txt file:


    User-agent: Google-Bot

    Disallow: /

    Now Google should stay away from all of our directories.

    We can also tell a specific bot to ignore one or more directories or files, like so:


    User-agent: NerdBot

    Disallow: /images/

    Disallow: /secrets/globaldomination.html

    And finally, if we want to specify that several bots are not allowed to access a directory or file, we can do so in this manner:


    User-agent: NerdBot

    Disallow: /images/

    Disallow: /secrets/globaldomination.html


     

    User-agent: FatBot

    Disallow: /images/

    Disallow: /secrets/globaldomination.html

    Disallow: /tmp/


     

    User-agent: HedonismBot

    Disallow: /images/

    Disallow: /secrets/globaldomination.html


     

    User-agent: Bender

    Disallow: /images/

    Disallow: /secrets/globaldomination.html

    Disallow: /cgi-bin/

    Whenever you add a bot, you must include a space between your line, which tells the interpreter that this is a new record.

    More Search Optimization Articles
    More By Jamesp


       · Thanks for stopping by to read my article on the robots.txt protocol. In it, I...
       · Thanks for providing such an informative post. It is always great to see issues...
       · Thanks, glad you enjoyed it!
     

    SEARCH OPTIMIZATION ARTICLES

    - Navigating Your Way into Your Visitors` Hear...
    - Creating SEO-Friendly Content
    - Network Solutions: Unethical SEO
    - Basic SEO: What Search Engines Hate
    - Basic SEO: What Search Engines Love
    - I, Robots.txt
    - Same Game, Different Name
    - Use SEO to Get Your New Site Off to a Good S...
    - Basic SEO Troubleshooting
    - Getting an SEO Education
    - Site Target Marketing
    - Costly SEO Mistakes You Must Avoid
    - Defending Against Black Hat and Negative SEO...
    - Scoring SEO Efforts Realistically
    - Don`t Make These Common SEO Mistakes!


     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway