Hiding Pages from Search Engine Results Pages

How to use a simple code snippet to hide pages from search engines.

Whether it's a login page, thank you page, or some other page you want to keep a bit more private — sometimes you just don't want certain pages on your site showing up on Search Engine Results Pages. This tutorial walks you through how to use the snippet below to keep search engines from indexing specific pages on your website.

Snippet

Word of Caution

This is not an iron-clad solution. While the major Search Engines will honor the Robots meta-tag, some search engines may disregard this code snippet and still serve up your pages in search results. Additionally, this method will not keep your "hidden" pages off of sitemaps. Therefore, if you have anything sensitive, password protecting pages or requiring account access (via Memberstack) would be a better alternative.