Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've seen tutorials on how to show a little box on the main page that you have to know the password to, but I want it where that textbox pops up and asks for a username and password, like the style used when you're trying to get into a router's settings. I am just using the built in Apache that came with the Mac, I have a website set up, but can't figure out how to get the password protection. Any links to information about this type of password protection would be good. Thanks.

share|improve this question

migrated from Aug 5 '10 at 20:55

This question came from our site for professional and enthusiast programmers.

Your question really belongs on, but the answer is to use .htaccess auth files. Here's a tutorial on Apache authentication.

share|improve this answer
ah. cool. didnt know about that site. thanks. – marty Aug 5 '10 at 20:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.