How to block this?

Discussion in 'robots.txt' started by shailendra, Oct 28, 2009.

  1. #1
    Hello,

    I want to block some content from being indexed for example the send to a friend page which has no content except of mail form

    /tell_a_friend-24215.html

    The "24215" is the page ID. is there anyway to block tell_a_friend-ID.html
    which means that all pages starting with tell_a_friend* can be blocked?

    Regards,
    Shailendra
     
    shailendra, Oct 28, 2009 IP
  2. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #2
    What I believe is that you can simply block these urls using an asterisk like:

    User-agent: *
    Disallow: /tell_a_friend-*.html
     
    manish.chauhan, Oct 29, 2009 IP
  3. ohannaweb

    ohannaweb Peon

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    Just type in notepad

    User-agent: *
    Disallow: /tell_a_friend-*.html

    And save as Robots.txt name

    You will be able to block this url

    Thanks
     
    ohannaweb, Nov 4, 2009 IP
  4. yesrams

    yesrams Greenhorn

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    Yes That is good answer.
    It works
    clickgetinfo.com
     
    yesrams, Nov 8, 2009 IP