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?

link|improve this question

feedback

2 Answers

up vote 3 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 
link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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