0131 478 2702

How to Block A Single Page from Being Indexed by Google?

Noindex metatag
In wordpress its a bit difficult to to add the noindex meta tag to one particular page:

<meta name="robots" content="noindex,nofollow"/>

Robot Text file
So, you can add a robots.txt ( a blank text file, nothing  special)  file to the top level folder of the website (alongside wp-config.php file etc..):

User-agent: *
Disallow: /your-page-slug/

User agent line blocks all search engines.

Block the Entire web site!
In WordPress Dashboard > Settings > Reading > Search Engine Visibility > tick the box ‘Discourage search engines from indexing this site’
Though the line: It is up to search engines to honour this request. is interesting. It probably applies to all these methods.

Yoast SEO plugin
Yoast ( agreat SEO plugin) offer a page by page ability to block the page. So, on the individual page, go to Yoast block, click on the cog icon (advanced) and tick and save: Allow search engines to show this Page in search results?

Google Analytics
I think you can do it fro in her with a filter, but not worked it out yet. Though that will filter the inforamtion out as opposed to block the search engines. Not, i suspect any of these methods actually work. ‘Hoover up all the information’ we can seems to be the motto…