Hiding an entire site from robots

I don’t think i’ve ever had to hide an entire site from search engines before, so today I learnt something new that saves a lot of time.

Rather than writing a complex robots.txt file you simply add the following line of code to your page <head>

<meta name="robots" content="noindex">

Simples.

Leave a Reply

Your email address will not be published. Required fields are marked *