Sometimes you want to exclude search engines like Google from indexing a page or subpage.
There are several options from noindex meta tag, to robotos.txt, to an HTTP header, the X-Robots tag.
This can be done via .htaccess and Apache web server with the following statement:
Header set X-Robots-Tag "noindex, nofollow"