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"
AuthUserFile /home/askapache.com/.htpasswd
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from w3.org googlebot.com google.com google-analytics.com
Satisfy Any
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 needs to by my IP)

So any help for someone who would like to learn would be great.

Thanks in advance!