Forum Moderators: phranque

Message Too Old, No Replies

nofollow attribute to all external links

         

free3yourmind

5:33 pm on Jan 26, 2009 (gmt 0)

10+ Year Member



Hello,

I am looking a way add the nofollow atribute in all the external links of a webpage. I would like to know if is there any code that i can add in my website and automatically make all extrernal links "rel=nofollow"

Quadrille

1:15 am on Jan 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not about magic code, but using your cms / editor. Find and replace might do most.

Probably a suicidal gesture in SEO terms, however.

Shaddows

8:51 am on Jan 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I imagine you could find and replace any absolute URL that isn't your domain, and add nofollow. Or do it on the fly. But...

This Nofollow thing is getting out of hand. What would happen if every site NFed every outbound link. Its stupid, and I suspect Google will start frowning on excessive use, if they don't already.

free3yourmind

9:47 am on Jan 27, 2009 (gmt 0)

10+ Year Member



All the external links in my pages are affiliate links and this is the reason i want to add the "nofollow". My website is created with MSPublisher and i cannot add in each nofollow attribute, the only way to do it is to add a code fragment at the top of the page that will do it for all the external links. In another forum they sugest me this what y think?

<META NAME="ROBOTS" CONTENT="NOFOLLOW">

kaled

10:51 am on Jan 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using a nofollow robots meta tag is likely to stop search engine spiders following internal and external links - BAD IDEA.

Kaled.

Shaddows

12:23 pm on Jan 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Death of a website, nofollowing all internal links.

To emphasise; it WILL stop SEs spidering your internal links.

I think there is a technique which works something like this (I don't do this, someone please elaborate or correct as appropriate)
All links to outbounds look like this
href="http://www.yoursite.com/refer?URL=http://www.affiliatesite.com"

PHP to redirect from the URL

Then robot.txt to disallow /refer

Although thinking about it, that won't keep PR on your site, it will just get lost to the redirecting URL.