Let's say I have a site at www.example.com and I decide I want to have a French version of the same site at the URL www.example.com/fr
But at first, I only want myself to be able to see www.example.com/fr and anything within it (i'd like to block both "regular" visitors and any bots.
Can I block everyone except my IP from just that folder/section? If so is it done via htaccess, robots.txt, a combo of both, some other way?
I know for visitors, I can add this to my htaccess:
order deny,allow
deny from all
allow from (my ip address)
But can I tweak that to say everyone can go to everything EXCEPT the "fr" folder?
And I know for bots (i.e. google) this robots.txt file would be used at the root of my main site, if I wanted to keep bots from visiting:
User-agent: *
Disallow: /
So do I create another robots.txt in the "fr" folder with that in it? Or would it have to be done via the original robots.txt file in the main site root?