Web Hosting Talk







View Full Version : Need help with google bot.


aingaran
02-19-2004, 07:10 PM
Hi fellas,

I'm looking at this page,

http://www.robotstxt.org/wc/exclusion.html#robotstxt

I have no idea how to implement it.

www.mydomain.com/index.php

I want google to only look at index.php file...Nothing else..
Or just stuff in the www.mydomain.com directory (/home/username/www/) directory.

Thanks.

RDX1
02-19-2004, 07:13 PM
I don't think META tags work any more. You'll need to use robots.txt instead.

Joseph_M
02-19-2004, 09:10 PM
Italic Indicates Code!

Make a file called "robots.txt", in it put the following code:
User-agent: *
Disallow: /cgi-bin/
Disallow: /forum/

Upload it to your website's main directory

If you want to stop the robot from looking at different folders, just add them in the same format I used :)

If you just want to block a specific robot (e.g. googlebot) then have:

User-agent: googlebot
instead of
User-agent: *

Hope this helps you!

Joe

dservers
02-19-2004, 09:20 PM
Joe said it all!

<<Signature to be set up in your profile>>

aingaran
02-19-2004, 09:47 PM
Thankyou very much!

Joseph_M
02-19-2004, 10:48 PM
No problem whatsoever!