possible to use an IP derived from Dynamic DNS in htaccess IP allow/deny commands?

Posted by user115745 on Pro Webmasters See other posts from Pro Webmasters or by user115745
Published on 2012-05-26T17:37:12Z Indexed on 2012/05/31 22:51 UTC
Read the original article Hit count: 195

Filed under:

On a website I manage, I want to use an .htaccess file to allow access to a certain administrative directory only from my home IP address, which is dynamically assigned by my ISP and therefore changes -- not regularly, but it does happen.

I also have an account from DynDNS and have one of the auto-update clients making sure it always points to my actual home IP address. I don't actually host anything at home; I just have set up the Dynamic DNS account.

Is there any way to combine these features: that is, is it possible write the .htaccess allow/deny commands at my outside webhost in a way that my home IP address is not hard coded into the command, but instead is somehow derived from the Domain Name that the DynDNS has assigned me, by doing a real-time lookup every time the directory's .htaccess file is hit?

Thank you.

© Pro Webmasters or respective owner

Related posts about htaccess