Tag Info

New answers tagged

5

First, create an "example.com/robots.txt" file in that location. Second, write these directives in your "robots.txt" file: User-agent: * Disallow: /the-page/that-you-want-to-disallow.html Third, that's it! "/the-page/that-you-want-to-disallow.html" is now inaccessible to search engine spiders, except malware robots. For more info, visit The Web Robots ...


3

Yoast SEO is set up to do this for you on a per-page basis. If you aren't using Yoast already, I'd strongly recommend it - there are advanced controls for SEO, indexing, redirecting, etc.


2

A simple solution would be to add a tag or category, and name it 'nofollow'. You could then use a conditional tag in your theme's function.php and add <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> to the outputs of the wp_head action. For example: if(is_tag('nofollow')){ add_action('wp_head', 'wp_head_nofollow'); } function ...



Top 50 recent answers are included