Robots.txt file questions

Discussion in 'HTML & Website Design' started by nschultz, Oct 26, 2007.

  1. #1
    I know some basic HTML and can get my sites to generally do what I want, but one thing I'm curious on is how to set up a robots.txt file. I am setting up some course sites behind a squeeze page and I don't want them to get crawled. I've looked a little bit and just can't seem to find a decent tutorial on this (maybe I'm just looking in the wrong places). Does anyone know how to do this or where a decent tutorial on this may be?
     
    nschultz, Oct 26, 2007 IP
  2. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #2
    MeetHere, Oct 26, 2007 IP
  3. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #3
    put this in a text document:

    User-agent: *
    Disallow: *

    save as robots.txt

    upload to root
     
    twistedspikes, Oct 26, 2007 IP
  4. PHPGator

    PHPGator Banned

    Messages:
    4,437
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    260
    #4
    PHPGator, Oct 26, 2007 IP
  5. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #5
    bogs, Oct 26, 2007 IP
  6. nschultz

    nschultz Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for all the help and the great links!
     
    nschultz, Oct 26, 2007 IP
  7. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #7
    twistedspikes, Oct 26, 2007 IP
  8. xino

    xino Active Member

    Messages:
    298
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #8
    xino, Oct 27, 2007 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Also, if your directory will be password protected, then the search engine spiders (bots) will not be able to access the content anyway, since all they'll see is the login prompt. :)

    Just another thing to consider (and yes, the robots.txt board here on the forums is the appropriate place to ask about such matters - but here works as well).
     
    Dan Schulz, Oct 29, 2007 IP