Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

What to watch to learn to make a password protected preview area

I like the idea of hosting a client's website on my own while it is being written so the client can watch progress. I'd like to password protect it so the general public could not see it.

I have no idea what to learn to do this. Which Treehouse track should I watch to learn this skill? If this is a bad idea for some reason, why?

3 Answers

James Barnett
James Barnett
39,199 Points

It's not covered on Treehouse but it's not that hard to do.

Here's a tutorial on how to password protect a directory using htaccess

Kevin Korte
Kevin Korte
28,149 Points

Yep, James posted a good link. I did this just as that article says so that I could develop a website for the company and others could view it without it being "live".

Thanks!