Is this a valid robots.txt file?

Discussion in 'robots.txt' started by HomeRun, Mar 17, 2008.

  1. #1
    HomeRun, Mar 17, 2008 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    here you find all you need about robots.txt
    http://www.robotstxt.org/
    read carefully !!

    your "Disallow:" has no path - hence it would be WRONG code anyway most likely
    and if interpreted wrongly by some bots it may do just the opposite of what you want
    disallow ALL
     
    hans, Mar 17, 2008 IP
  3. HomeRun

    HomeRun Peon

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    So can I remove the disallow line and also the user agent line if I don't want to block any bots for now?

    or maybe just the disallow line


    Edit:
    here they said no path will allow all bots to my site http://www.robotstxt.org/robotstxt.html

    To allow all robots complete access
    User-agent: *
    Disallow:

    then


    To exclude all robots from the entire server
    User-agent: *
    Disallow: /
     
    HomeRun, Mar 17, 2008 IP
  4. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #4
    yes you may have an empty robots.txt
    but keep in mind that there might be folder you never want bots to be in - like entire
    /cgi-bin
    and
    any administrative folders
     
    hans, Mar 18, 2008 IP
  5. anilwebmaster

    anilwebmaster Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thks for you answers.....

    I had question .... whr to insert this file... and whr to show in the source code..?
     
    anilwebmaster, Apr 1, 2008 IP
  6. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #6
    robots.txt
    always is in domain root /
    there is no need to link to it
    search engines always search for robots.txt at
    yourdomain.com/robots.txt
    by default
     
    hans, Apr 1, 2008 IP
  7. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #7
    If you want to allow all bots to crawl your all website, then there is no need to add robots.txt file..
     
    manish.chauhan, Apr 4, 2008 IP