How to avoid google indexing my site under development is completed


I have a new site and a new domain, will take about 2 months to complete development and then will go live. Only then I want google starts crawling and indexing my site. So the question is how to "shut off" google indexing for these 2 months before going live? Right now I plan to use this index.html:

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

I will start development in index.php, when done I will remove index.html, then googlebot will start indexing starting from index.php.

Don't know if this sounds like a good plan.

Show source
| seo   | googlebot   | robots.txt   | meta-tags   | google-index   2016-09-14 18:09 1 Answers

Answers ( 1 )

  1. 2016-09-14 18:09

    You can create robots.txt in your project directory and add following to it:

    User-agent: *
    Disallow: /

    So when a bot reaches your page it first checks robots.txt file and if disallow is there it would crawl your pages. Read more about it here

◀ Go back