What should my robot.txt say?

Discussion in 'robots.txt' started by mnymkr, Oct 4, 2006.

  1. #1
    I have just recently learned about this and I am interested in what at the most basic level I should have in my robot.

    Or maybe you might share what you have in yours?
     
    mnymkr, Oct 4, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What are you trying to achieve? Want to block content? Block certain spiders?

    At the very minimum, you just don't have such a file and everything will be indexed.

    Study other people's robot file to see what they've done.

    DP:

    User-agent: *
    Disallow: /tools/suggestion/?
    Disallow: /search.php
    Disallow: /go.php
    Disallow: /ads/
    Code (markup):
    First line tells it applies to all user agents (spiders).
    Second line blocks all dynamic pages but not the main page (before a KW is submitted)
    Last one blocks an entire folder.
     
    T0PS3O, Oct 4, 2006 IP
  3. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Or if you want everything indexed without error messages appearing in your logs, use:

    user-agent: *
    Disallow:
     
    explorer, Oct 4, 2006 IP
  4. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I was wondering the same thing. I got some errors in my google “Adsense spider” account and in the instructions they advised me to create a robot.txt file but I don’t know how.
     
    Emperor, Oct 6, 2006 IP
  5. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #5
    From google help page

    What must I do? Is this a good idea or what. I have a WP blog with godaddy hosting.
     
    Emperor, Oct 6, 2006 IP
  6. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #6
    If you already have a robots.txt file, cut and paste the following into it.

    User-agent: Mediapartners-Google*
    Disallow:

    If you don't, create a text file called robots.txt. Cut and paste

    User-agent: Mediapartners-Google*
    Disallow:

    into it and upload it to your public_html folder.
     
    explorer, Oct 6, 2006 IP
  7. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #7
    your public_html folder, home, www, wwwroot, or htdocs directory.

    Depending on your hosting services the home directory may have different names.
     
    Pat Gael, Oct 6, 2006 IP
  8. blabla11

    blabla11 Peon

    Messages:
    164
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    if your domain is pointing to public_html/name/

    then you put robots.txt in 'name' right?
     
    blabla11, Nov 5, 2006 IP