Apache conf set X-Robots-Tag for all vHosts

Create a file under /etc/apache2/conf-enabled with following content

Header Set X-Robots-Tag “noindex, nofollow, noarchive, nosnippet”

Check your config with wget –server-response –spider example.com

Leave a comment