Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to do some maintenance work to my blog, which is under http://blog.ricardoamaral.net 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

2 Answers 2

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

 
discard

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.