Welcome to the Treehouse Community
Looking to learn something new?
How to Hide a Site during Development
How to I hide my website from being discoverable while I develop it? Thanks.
put this in a .htaccess file:
order deny,allow deny from all allow from 127.0.0.1
If your website is not on your localhost change 127.0.0.1 to your real IP. This will allow only you to access it.
If you are only concerned about search engines discovering your website, you can suffice with putting the following code in robots.txt:
User-agent: * Disallow: /
Thanks Stoyan, I don't think i have a .thaccess file. it's just a simple site; how do I do add that? thanks.
No. I don't think so. I'm just using a basic Web Hosting for Students account recommended by treehouse.
oh I see just like saving the with html or css extension. any particular place, folder or hierarchy i should be placing it, or just upload it anywhere?
Thanks I will give it a shot. should be fairly simple. I appreciate your help