robots.txt help

Discussion in 'Google' started by alexei_aus, Jun 5, 2007.

  1. #1
    Hi

    I am trying to set up a robots.txt file so that the blog within my site doesnt get listed. So far I have:

    Disallow: /directory/

    When I run the Google robots.txt check tool it tells me that the directory is still accessible?
     
    alexei_aus, Jun 5, 2007 IP
  2. db_man

    db_man Peon

    Messages:
    86
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thats most likely just an error on google's end. but make sure you format it like this:

    User-agent: *
    Disallow: /directory/
     
    db_man, Jun 5, 2007 IP
  3. db_man

    db_man Peon

    Messages:
    86
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    db_man, Jun 5, 2007 IP
  4. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #4
    Hello,
    Here you are going to disable only the directory Disallow: /directory/

    To disable a file with all the parameters is file.php?

    To disable only the file file.php

    My 2 cents
    Jakomo
     
    jakomo, Jun 5, 2007 IP
  5. alexei_aus

    alexei_aus Active Member

    Messages:
    626
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    thanks guys

    looks like its just the google webmaster tools that are playing up.

    setting robots.txt to disallow a specific directory will obviously only work for google, how do i disallow other bots? (msn, yahoo)
     
    alexei_aus, Jun 5, 2007 IP
  6. db_man

    db_man Peon

    Messages:
    86
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Read about it in that link I gave you

    good luck!
     
    db_man, Jun 5, 2007 IP
  7. ttgapers

    ttgapers Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    this is indeed the correct format.

    ttgapers
     
    ttgapers, Jun 6, 2007 IP