Top Nav

Set X-Robots-Tag in Apache

The X-Robots-Tag HTTP header can be used to send directives to Google and other search engines. See this page for a discussion from Google:

In Apache you can implement the X-Robots-Tag using the Header directive. For example the following code will mark PDF documents as “noindex, nofollow”: