I have been looking around for this but haven't found a solution.
This is what I want to do. I want to setup a directory so that it will check if it matches my IP, if it does match my IP (the one inside .htaccess), then it will let me see the directory contents. However, if it doesn't match my IP, then (and only then) I want it to display the HTTP Authentication popup box.
The purpose of this is for me to be able to skip the login step if it someone is visiting from an authorized IP, otherwise, they will need to login to see the directory.
I know this can probably be done with PHP and such fairly easily, but I was really hoping to do this all through .htaccess. I plan on having wordpress, media wiki, a bug tracker, etc. in this directory (or sub directories of), so doing this with anything other than server configuration files would be painful.
Do you have any suggestions on how to go about doing this?
Thank you much in advance.
Brad