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 need to do some maintenance work to my blog, which is under and I'm looking for the best way to protect all outside access, but my own, to that subdomain. So I can work peacefully without people seeing what I'm doing.

I thought uf using an .htaccess file and deny every one access but my own IP but this presents a problem. I'm on a dynamic IP ISP and I would be needing to keep changing my IP on the .htaccess file, which is a pain.

Does anyone have any other suggestions?

share|improve this question
up vote 4 down vote accepted

Would password protection work for you? Add this to the .htaccess file

AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "My Secret Folder"
Require valid-user

Then to add users to the password file:

htpasswd -c /full/path/to/.htpasswd fred 
share|improve this answer

Put a password on that part of the site. Use simple http authentication through Apache. Any application behind it, unless it also uses http authentication, will just do its own thing.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.