Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/bjvgkuvc/mncguru.com/c.c.php on line 30

Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/bjvgkuvc/mncguru.com/c.c.php on line 625
Topic : The Proper Way To Use The robot.txt File by: Jimmy Whisenhunt 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 - mncguru.com Mobile app version of mncguru.com
Login or Join
JimmyWhisenhunt

: The Proper Way To Use The robot.txt File by: Jimmy Whisenhunt 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

@JimmyWhisenhunt

Posted in: #Web-Design-And-Development #Disallow #File #User-Agent #Index #Robottxt-File #Robottxt #Spiders #User-Ag

The Proper Way To Use The robot.txt File

by: Jimmy Whisenhunt


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.
Here is a list of variables that you can include in a robot.txt file and there meaning:

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.
Disallow: In the field you specify the files and folders not to include in the crawl.
The # is to represent comments

Here are some examples of a robot.txt file

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.


best stocks under 100 TBR jar read books Money systematic investment planning cheers

10% popularity Vote Up Vote Down

0 Reactions   React


Replies (0) Report

Login to follow topic

0 Comments

Sorted by best first Latest Oldest Best

Back to top | Use Dark Theme