How to use .htaccess so Google can't index pages ?

Discussion in 'Apache' started by crazygirl, Oct 24, 2007.

  1. #1
    Morning All - I have some links to "questionable" pages - they are not paid they are affiliate links - and I would like to disallow google etc from seeing those pages can that be done in .htaccess ?? I don;t want a penalty for linking to a bad neighbourhood thanks
     
    crazygirl, Oct 24, 2007 IP
  2. albemarle24

    albemarle24 Well-Known Member

    Messages:
    244
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    138
    #2
    albemarle24, Oct 24, 2007 IP
  3. crazygirl

    crazygirl Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks but I want to use .htaccess not the robots.txt
     
    crazygirl, Oct 24, 2007 IP
  4. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #4
    st1905, Oct 24, 2007 IP
  5. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #5
    You really should just use the robots.txt file, its what most search engines use.
     
    astup1didiot, Oct 24, 2007 IP
  6. crazygirl

    crazygirl Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    CAn everyone read the robots txt file ?
     
    crazygirl, Oct 24, 2007 IP
  7. Eric Mann

    Eric Mann Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah, that's the idea. It's just a publicly accessible text file, that has some instructions for robots. A lot of bots will read, and follow it. Of course, you can't force them to. (Although, that doesn't stop people trying. Some websites contain links which are banned in robots.txt, and hidden from the user. Which means, the only people that should be "clicking" it, are from "bad" bots. So they automatically ban the IP address of anything that requests that page)
     
    Eric Mann, Oct 25, 2007 IP