We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

This plugin won't improve SEO - it uses Javascript - External NoFollow | Forum

Bryan
Bryan Dec 30 '15
Adding nofollow via Javascript is redundant as just about all of the major search engine bots don't parse Javascript. For end users, nofollow doesn't mean anything on a link either.

It's best to rel="nofollow" links via PHP or manually.

If you want to use PHP, use preg_replace to add nofollow links. PHP is parsed server-side, so bots will see the nofollow.

At the moment, this plugin provides zero functionality.
Bryan
Bryan Dec 30 '15
Keep in mind that big search engines like Google can read the DOM, but only if the entirety of your a href is loaded with the DOM. If the JS is only adding nofollow, Google will capture the link and follow it before it ever sees it's a nofollow link.
Purusothaman Ramanujam

Quote from Bryan Adding nofollow via Javascript is redundant as just about all of the major search engine bots don't parse Javascript. For end users, nofollow doesn't mean anything on a link either.

It's best to rel="nofollow" links via PHP or manually.

If you want to use PHP, use preg_replace to add nofollow links. PHP is parsed server-side, so bots will see the nofollow.

At the moment, this plugin provides zero functionality.
Yes, Agreed. But since it's not possible to add it manually to all links, thus the plugin.
Chris_W
Chris_W Dec 29 '17
Modified the plugin to rel="noopener noreferrer" which is more relevant, as nofollow links are treated just like any other link by Google and have been for some time now. As to if google sees the rel="noopener noreferrer" before it processes the link, I'll have to see.

Also rel="noopener noreferrer" will have no effect on seo, the only reason for adding it is it should stop a potential exploit that allows the new webpage (opened via target="_blank" or window.open()) to control the original parent page – which could result in phishing attacks and similar.

Update:
After some testing I discovered that if you do "view page source" the links don't show the "rel=" on any outbound links, however if you right click a link and do "inspect element" the links do contain the "rel="...

<a href="https://twitter.com/RedSkyJuly" target="_blank" rel="noopener noreferrer" class="wp_init"><img src="/ow_images/twitter.png" style="max-width: 100%;">&nbsp;R S J @ Twitter</a>

<a href="https://twitter.com/RedSkyJuly" target="_blank"><img src="/ow_images/twitter.png" /> R S J @ Twitter</a>

I assume this is due to the "view page source" not knowing about the javascript that adds rel="noopener noreferrer" so likely Google won't see it either.  Any knowledge on this welcomed.
The Forum post is edited by Chris_W Dec 29 '17
You do not have permission to reply this topic