title: Is it necessary to have a robots.txt if header x-robots is set to noindex, no follow?
body: <p>I'm attempting to prevent my website from being indexed/listed:</p>
  
  <p>I've set in .htaccess:</p>
  
  <pre><code>Header set X-Robots-Tag "noindex, nofollow"
  </code></pre>
  
  <p>Is it also necessary to set robots.txt?</p>
  
  <pre><code>User-agent: *
  Disallow: /
  </code></pre>
  
  <p>Is there any harm in adding the robots.txt?</p>