Results 1 to 3 of 3

Thread: need help with script

  1. #1
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    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
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    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
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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

Bookmarks

Posting Permissions

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