When setting up an Apache server, it's obviously possible to allow connections from a specific IP address [/range].
I have a dynamic IP and I'm wondering, if I use a DDNS service, whether it's possible to allow connections if the incoming IP matches the current DDNS IP? I'm aware you could make a task to run every few minutes, ping and update the config file with the current IP address, but that would require a service restart which I'd like to avoid if possible.