Post

Noindex Nofollow

Htaccess file

1
2
3
<IfModule mod_headers.c>
  Header set X-Robots-Tag "noindex, nofollow"
</IfModule>

Check its working in Firefox

  • Open the website you want to test.
  • Inspect Element or Cmd+Option+I (Mac).
  • Go to the Network tab.
  • Reload the page to capture network activity.
  • Click on the main request (usually the first one) in the list.
  • Look under the Headers section to find the HTTP response headers, including the X-Robots-Tag.

if no X-Robots-Tag exists then nothing is set.

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.