Omnis Network, LLC Hosting over 200,000 Accounts since 1999 Live Support 877.393.Host

Home Web Hosting Domains Design Services Affiliates Contact Us
Search Results
Title:
The Proper Way To Use The robot.txt File
Article:
When optimizing your web site most webmasters don’t consider using the robot.txt file. This is a very important file for your site. It let the spiders and crawlers know what they can and can not index. This is helpful in keeping them out of folders that you do not want index like the admin or stats folder or content that they can not index.

Here is a list of variables that you can include in a robot.txt file and there meaning:

1) User-agent: In this field you can specify a specific robot to describe access policy for or a “*” for all robots more explained in example.
2) Disallow: In the field you specify the files and folders not to include in the crawl.
3) # the number sign represents comments

Here are some examples of a robot.txt file for redball.com

User-agent: *
Disallow:

The above would let all spiders index all content.

Here another

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

The above would block all spiders from indexing the cgi-bin directory.

User-agent: googlebot
Disallow:

User-agent: *
Disallow: /admin.php
Disallow: /cgi-bin/
Disallow: /admin/
Disallow: /stats/

In the above example googlebot can index everything while all other spiders can not index admin.php, cgi-bin, admin, and stats directory. Notice that you can block single files like admin.php.


About the Author:
Jimmy Whisenhunt is the owner of VIP Enterprises

Keywords:

robot optimizing

Contact Omnis Network Manage Your Account
    https://manage.omnis.com

Technical Support
    Tech Support Contact Form
    support@omnis.com

Call Us Toll-Free
    1-877-393-HOST (4678)

Reach Us By Mail
    3655 Torrance Blvd Suite 230
    Torrance CA, 90503
Browse Knowledge Base
Search Knowledge Base Select the search type:
All Articles
How To
Problem
Bug
FAQ
Keywords:

Any word may be in article
All words must be in article

  HACKER SAFE certified sites prevent over 99.9% of hacker crime.       We accept Visa, Mastercard, Discover, AMEX, Check and Paypal