1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

robots.txt - How to ban everyone except Google

Discussion in 'robots.txt' started by lim (x² - 5x³) = -∞, Mar 27, 2008.

  1. #1
    Hello, I want to make robots.txt that will allow only Google to index web site. So it will be like:
    
    User-agent: Google
    Allow: /
    
    User-agent: *
    Disallow: /
    
    Code (markup):
    But I am not sure if it will allow access to ALL google bots.

    Do I need to add separate rule for each type of bot? Like:

    User-agent: Mediapartners-Google
    Allow: /

    User-agent: Googlebot-Image
    Allow: /

    etc.

    And if yes, can you give me the list of all google bots, by User-agent?

    PS yes, I understand that many bots ignore robots.txt
     
    lim (x² - 5x³) = -∞, Mar 27, 2008 IP
  2. lim (x² - 5x³) = -∞

    lim (x² - 5x³) = -∞ Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    digital bump
     
  3. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #3
    You must make a different entry for each of Google's web robots, so yes you must make the entry for the other two. The real question is why would you want to block Yahoo!, Live! Search & msn. :confused:
     
    astup1didiot, Apr 1, 2008 IP
  4. lim (x² - 5x³) = -∞

    lim (x² - 5x³) = -∞ Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is one of experiments, I don't need other traffic sources. Anyone can help to make a list of bots?
     
  5. The Stealthy One

    The Stealthy One Well-Known Member Affiliate Manager

    Messages:
    3,043
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    105
    #5
    But will that work with the *, too? Wouldn't that over-ride the first Allow?
     
    The Stealthy One, Apr 2, 2008 IP
  6. enriquerojas

    enriquerojas Active Member

    Messages:
    312
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    It should work. By logic the agents gets matched when it hits Google if it doesn't match it will continue over the list.
     
    enriquerojas, Apr 2, 2008 IP
  7. vitalous

    vitalous Guest

    Messages:
    237
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Google spiders sites good in Live & Yahoo...
    Aren't you shooting self in foot?
     
    vitalous, Apr 2, 2008 IP
  8. windtalker

    windtalker Well-Known Member

    Messages:
    926
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    145
    #8
    That will not work, you need to address each individual agent, as example:

    User-agent: Google
    Allow: /

    User-agent: Slurp
    Disallow: /

    User-agent: Msn
    Disallow: /
     
    windtalker, Apr 2, 2008 IP
  9. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #9
    http://www.user-agents.org/
     
    astup1didiot, Apr 2, 2008 IP
  10. guidyy

    guidyy Active Member

    Messages:
    574
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #10
    I dont know what kind of experiment are you doing, but some bad robots will not follow directives from your robots.txt.
    If you want to block all bots except google u will need a bad bot trap also.
     
    guidyy, Apr 2, 2008 IP
  11. ashisharora_83

    ashisharora_83 Peon

    Messages:
    835
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #11
    This looks ok to me... thanks windtalker for sharing...

    --Ashish
     
    ashisharora_83, Apr 7, 2008 IP
  12. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #12
    No you do not need to allow separate Google bots, just allow only Google, all its bots will be allowed automatically...
    Here is the list of Google Bots and also you can find spammy bots here, what you should block to reduce your bandwidth usage and cut down your cost.
     
    manish.chauhan, Apr 7, 2008 IP
  13. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #13
    In that case you can block them through their IP adress by using .htaccess..
    I hope..this will help you :)
     
    manish.chauhan, Apr 7, 2008 IP
  14. tekz999

    tekz999 Guest

    Messages:
    928
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    145
    #14
    you have a very 31337 us3rn3m3, ph34r j00.
     
    tekz999, Apr 7, 2008 IP
  15. lim (x² - 5x³) = -∞

    lim (x² - 5x³) = -∞ Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Thats nice, thanks for information, but dont you remember where you read about it?
     
  16. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
  17. lim (x² - 5x³) = -∞

    lim (x² - 5x³) = -∞ Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #17
  18. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #18
    ????:confused:
     
    manish.chauhan, Apr 9, 2008 IP
  19. jasoncdu

    jasoncdu Active Member

    Messages:
    569
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #19
    He means You have a very elite username ... fear you? Kinda iffy on that last part. The reason he types in 1337 language is because the creator of this post's username is all in numbers, characters etc.

    Jason
     
    jasoncdu, Apr 9, 2008 IP
  20. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #20
    Thanks to make it clear..
     
    manish.chauhan, Apr 10, 2008 IP