Results 1 to 3 of 3

Thread: need help with script

  1. #1
    Join Date
    Jan 2007
    Thanked 0 Times in 0 Posts

    Default need help with script

    looking for a script that will override browser instruction "do not follow" that we can embed in our html pages

    HELP !!!!

  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    That instruction is not for and does not affect browsers, it's for bots and cannot be overridden. It can be ignored, but then the bot isn't being polite.
    - John

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    Google "robots.txt" for more information.
    [Friendly bots like search engine spiders usually respect this. Spambots and other unfriendly bots would, of course, ignore it. Technically a human could also check robots.txt before browsing a webpage, but that's obviously not something that actually happens.]

    If you want people to not follow a link (and want to make them unable to do so) then do not include that link in your page. Simple answer and maybe not what you were looking for, but absolutely true and without an alternative.

    Note that one option would be to include something that looks like a link (=blue underlined text?) but has no link associated with it. Maybe you're making a joke website where users would be tricked into trying to click a fake link. (I don't know how effective that would be, but whatever.) Then you could create a fake link. But you can't create a real link and somehow disable it. You can also use "#" as the HREF (URL), which will keep them on the same page. Not very interesting, but perhaps what you're looking for.

    Actually, you can disable a link using Javascript (assuming the user has Javascript enabled):
    <a href="mypage.html" onClick="return false;">fake link</a>
    But they could very easy get around this by copying the URL of the link and going to the page manually.
    Javascript is not secure, so that will never prevent anyone from accessing the information, but it could slow them down and confuse users who don't know much about it.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts