Hack: Installing Rel=Nofollow in PHPAdsNew
If you use PHPAdsNew to serve ads on a relatively low FBPR (foolbarPR) website and your site is suffering from supplemental problems, installing rel=nofollow on your ad links is a tiny tweak that will help tighten your internal links and get some pages back into Google’s main index:
around line 366 in libraries/lib-view-main.inc.php, just before these lines:
// Return banner
return( array(’html’ => $outputbuffer,
Type this:
$outputbuffer = preg_replace(”/<a href/i”, “<a rel=’nofollow’ href”, $outputbuffer);
I’ve only tested this on HTML banners (a combination of image and text), so your mileage may vary.
Although some SEOs disregard the role of PageRank in combating supplemental pages, its something you do not want to rule out when looking for solutions.
Why don’t you just use their JavaScript code and not worry about it at all? I’m pretty sure that Google doesn’t recognize or follow HTML that generated by JS – please correct me if I’m wrong.
Jon Henshaw said this on December 28th, 2007 at 9:20 am
“Why don’t you just use their JavaScript code”
Yeah that’s also an option if you trust that 99.9% of your traffic has JS enabled. In certain niches (porn, for example), people tend to be more on the defensive when surfing to avoid spyware installs, pop-up hell, backbutton disables, etc.
Halfdeck said this on December 28th, 2007 at 1:28 pm
‘Google doesn’t recognize or follow HTML that generated by JS – please correct me if I’m wrong.’
I think this is incorrect.
‘99.9% of your traffic has JS enabled’
I am not sure what has clients disabling of JS have to do with Google’s indexing of the same page?
Lazar said this on September 5th, 2008 at 8:47 pm