Prevent search engine indexing with a simple HTML meta tag

Preventing a page from being indexed by search engines has never been easier, all it takes is a meta tag in the head section of the page.

Prevent all search engine bots that follow the noindex rule by placing the following in your <head> section:

<meta name="robots" content="noindex">

or to prevent only the Google bot:

<meta name="googlebot" content="noindex">

You can also add other rules like nofollow:

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