|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Robot.txt file
Today i was going thru an article where it has been said that use robot.txt file is important...I would like to know how can we effectively use robot.txt file and for what purpose? For indexing?
|
|
#2
|
||||
|
||||
|
Hi sp,
It's robots.txt and it goes in your domain root. It's only useful function is to deny access to files or folders on your domain but it will only work for spiders that obey robots.txt (no use for stopping spambots or site stealers etc - they mostly ignore it). Google and all major SE's obey it though, so it can be handy if you wish to keep them out of any section(s) of your site. If that's your plan you can deny as follows: User-agent: *Line 1 will keep them out of any url's called "fred.html" and you can even specify specific useragents if you want to. If you have no wish to deny any areas then the only use for a robots.txt file would be to stop your server stat's showing denied requests for robots.txt - in which case you could upload a robots.txt file with only these lines: User-agent: *
__________________
ClickyB "The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
New to SEO / SeoChat? Start : HereForum Rules & Posting Guidelines Canonicalisation Solutions |
|
#3
|
||||
|
||||
|
Quote:
Just to clarify one thing from you ClickyB. Is this the way it is supposed to work ...? user-agent: * disallow: fred.html Is this supposed to block all URL's having fred.html in it, like abcfred.html ; xyzfred.html ; 123fred.html ? And whereas putting: user-agent: * disallow: /fred.html Will block only the fred.html file and allow others such as abcfred.html ; xyzfred.html ; 123fred.html ? Thanks for your explanation in advance
__________________
SEO FAQs - You might find your answer here. SEOchat Forum Rules - Read Before You Post **Do what you feel in your heart to be right- for you'll be criticized anyway. You'll be damned if you do, and damned if you don't.** |
|
#4
|
|||
|
|||
|
Hi,
Code:
Disallow: fred.html Code:
User-agent: * Disallow: /fred.php Jean-Luc
__________________
AWStats Support : add-on's, extra sections, forum, installation assistance Professional AWStats Services Checking redirects is now as easy as 1 2 3, even if you are not a HTTP-header guru ! |
|
#5
|
||||
|
||||
|
Quote:
Thanks for setting the record straight ...I'm going back to bed now ![]() |
![]() |
| Viewing: SEO Chat Forums > Google > Google Optimization > Robot.txt file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|