I'd like to restrict access to a certain set of pages by IP address (there are only 2 or 3 people allowed to access this area). Unfortunately, at least one of those is a dynamically allocated IP address from an ISP. One very long-winded option I've considered is a kind of custom dyndns-type setup where the client would register their IP change, which would then rewrite the apache config file and reload it. Given that we have a dyndns account set up, we can always get their current IP address from there and periodically update / reload the apache config file. But is there a more elegant way?
Here's the current line (with dummy ip):
RewriteCond %{REMOTE_ADDR} !^12\.23\.34\.45
and I've also tried:
RewriteCond %{REMOTE_HOST} !^name\.dtdns\.net
which was a long shot anyway - their IP address would never resolve back to that name, obviously. I don't have access to mod_perl on this server, so can't do anything there. Is there another way?