I am building a website which is almost finished, so most of my files are online already. While my index page has no links to go further (it's an 'under construction' page) google is still indexing everything. This enables people to get into my site prior to its launch.
I want an htaccess that allows me, w3.org, and google bots to access the site, but everyone else to be bumped back to my construction page. I tried this code:
AuthName "Under Development"
Deny from all
Allow from 220.127.116.11 w3.org googlebot.com google.com google-analytics.com
but I am such a beginner at htaccess, I'm not sure how to really tweak it for my needs so I couldn't get it to work. (I do understand at least that the 18.104.22.168 needs to by my IP)
So any help for someone who would like to learn would be great.
Thanks in advance!