Forum Moderators: goodroi

Message Too Old, No Replies

robots.txt format for different SE

need help to findout correct format

         

token128

10:26 am on Jun 9, 2006 (gmt 0)

10+ Year Member



can someOne help me regarding to that code

Actually i want to stop googlebot on all of my robots.txt pages but other SE can access only /my-data/ form but not others.

User-agent: googlebot
Disallow: /my-data/
User-agent: *
Disallow: /catalog/login.php
Disallow: /catalog/buy_it_now.php
Disallow: /catalog/add_product.php
Disallow: /login.php
Disallow: /buy_it_now.php
Disallow: /add_product.php

that will work or not?
thanks

Dijkgraaf

12:38 am on Jun 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your question is a bit unclear.

One point to note is that you need a blank line just before the
User-agent: *

What you have there is telling Googlebot not to request anything starting with /my-data/

And you are telling all other bots not to request those others.

I think possible what you want is

User-agent: Googlebot
Disallow: /my-data/
Disallow: /catalog/login.php
Disallow: /catalog/buy_it_now.php
Disallow: /catalog/add_product.php
Disallow: /login.php
Disallow: /buy_it_now.php
Disallow: /add_product.php

User-agent: *
Disallow: /catalog/login.php
Disallow: /catalog/buy_it_now.php
Disallow: /catalog/add_product.php
Disallow: /login.php
Disallow: /buy_it_now.php
Disallow: /add_product.php