Articles of nofollow

A plugin for having rel=“nofollow” in posts?

I’d like to make all the links in posts on one of my sites to be with rel=”nofollow” on links inside posts. I wasn’t able to find a plugin that did the job except for WP-NoExternalLinks. It also didn’t work, unless I used it’s dooms day option: “Mask ALL links in document (can slow down […]

How to use wp_rel_nofollow to add nofollow to external links only?

I want to add nofollow attribute to only external links in the content of the post. Internal links should stay follow. So, can I use wp_rel_nofollow() to make only external links nofollow? Or do I need to use another method?

Editing the Comment Reply Link

Just found this site via the WP-Hackers List, been using WordPress for years (make a living partially thanks to it) and never stumbled on this site! Posted this on the WP-Hackers list, but didn’t find a solution. I know WordPress 3.1 has removed the nofollow attribute from the comment Reply link (WordPress 3.1 beta looks […]

Change to nofollow tag in wp-login.php

In wp-login.php default is: <meta name=”robots” content=”noindex,follow”> I want to change it to: <meta name=”robots” content=”noindex,nofollow”> Is there an easy way or script to change this?

Nofollow external links

Hello guys i am using following code to make all external links nofollow. add_filter(‘the_content’, ‘my_nofollow’); add_filter(‘the_excerpt’, ‘my_nofollow’); function my_nofollow($content) { return preg_replace_callback(‘/<a[^>]+/’, ‘my_nofollow_callback’, $content); } function my_nofollow_callback($matches) { $link = $matches[0]; $site_link = get_bloginfo(‘url’); if (strpos($link, ‘rel’) === false) { $link = preg_replace(“%(href=\S(?!$site_link))%i”, ‘rel=”nofollow” $1’, $link); } elseif (preg_match(“%href=\S(?!$site_link)%i”, $link)) { $link = preg_replace(‘/rel=\S(?!nofollow)\S*/i’, ‘rel=”nofollow”‘, […]

How to add a filter to all widget output

Is there one last filter that is ran over the widgets before they are sent out to the browser? I would like to add a filter that adds rel=”nofollow” to all links in all widgets. For instance, I can add a filter to the text widget: add_filter(‘widget_text’, ‘xrvel_nfp_modify_nofollow’); But I don’t want to hunt down […]

NoFollow Entire Website

By default whenever you disable indexing via Admin Settings [ x ] Discourage search engines from indexing this site It adds a meta tag in the header like so: <meta name=’robots’ content=’noindex,follow’ /> How do I change that to be nofollow instead of follow? I find it odd it enables “follow” and overall want it […]