SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Add a link to a page that search engine bots will not see

  1. #1
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    london
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Add a link to a page that search engine bots will not see

    Hi,

    I want to add a link to another website to a page of mine that Google (or any other bot) will not notice and not follow therefore. However, I want that all other links are still followed and recognized by a bot as usual.

    Can someone help me with a bit of code? Would be fab.

    Many thanks!

  2. #2
    SitePoint Wizard cmuench's Avatar
    Join Date
    Jul 2005
    Location
    At my computer
    Posts
    2,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <a href="http://example.com/" rel="nofollow">Click Here</a>

  3. #3
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aye, nofollow will work to an extent. However, be aware that not all bots will adhere to that.

    You can also add a robots.txt to your site http://www.robotstxt.org/wc/robots.html with specific entries for pages you want to hide from bots, but again, not all bots follow the rules.

    Ultimately, the only way to stop all bots is to hide the page behind a password.
    Olly Hodgson
    thinkdrastic.net

  4. #4
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    london
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is nothing like a JavaScrip that sort of does not include the real URL right into the <a> tag, or something like that?

    I'm also thinking of some encoding as it is done to hide email addresses from spammers,
    like this: http://www.proles.net/emailencoder/
    or this: http://w2.syronex.com/jmr/safemailto/

    If it was javascript or something I'd preferably whant to do it without having to declare a javascript function on top of the page.


    Thanks for any more ideas.

  5. #5
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    london
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *** bump

  6. #6
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spirelli
    There is nothing like a JavaScrip that sort of does not include the real URL right into the <a> tag, or something like that?
    GAAAAH RUN AWAY, RUN AWAY!!!

    By doing that, you'll be blocking out a lot of legitimate visitors aswell as search-engine bots (i.e. anybody with javascript switched off / unavailable). In the age of malware / spyware / browser hijacking that's not at all uncommon. What's more, some bots have developed some very basic javascript abilities, so it probably wouldn't work out very well anyway.

    As I said, start out with http://www.robotstxt.org/wc/robots.html and if that doesn't work, hide the page behind a password.
    Olly Hodgson
    thinkdrastic.net

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
  •