title: Can I prevent search engines from indexing an entire directory on my website?
body: <p>I have a staging site which I use to draft new features, changes and content to my actual website.</p>
  
  <p>I don't want this to get indexed, but I'm hoping for a solution a little easier than having to add the below to every page on my site:</p>
  
  <pre><code>&lt;meta name="robots" content="noindex, nofollow"&gt;
  </code></pre>
  
  <p>Can I do this in a way similar to how I added a password to the domain using a .htaccess file?</p>