How to add nofollow site-wide

I’d like to change the meta robot tag on my site to be noindex and nofollow. When I set the WP settings in “Search Engine Visibility” to “Discourage…”, it only generates: <meta name=”robots” content=”noindex,follow” /> How can I change it to noindex and nofollow? 1 Answer 1 One part of removing your site from Google … Read more

Why does the header set X-Robots-Tag apply to all pages?

The directives below are intended to apply the header X-Robots-Tag noindex and nofollow to a single page. The directives below are applied before the WordPress code block however it appears to result in all pages being set with noindex and nofollow RewriteCond %{REQUEST_URI} ^(.*)?faq?(/)$ [NC] RewriteRule ^faq – [E=NOINDEXNOFOLLOW] Header set X-Robots-Tag “noindex, nofollow” E=NOINDEXNOFOLLOW … Read more

How to restrict access to wp-content, wp-includes and all sub-folders

after searching I didn’t find an answer still confused of how do I hide the -> wp-content –> uploads –> themes –> plugins -> wp-includes in browser. What I want is when viewer browse some like this: http://www.mysite.ext/wp-content they will see an error: You don’t have permission to access this page. Other said that just … Read more

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 … Read more

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”‘, … Read more