Hello Sairam,
a possible approximate solution is that you need to resolve the URL with a DNS and to update the ACL accordingly.
the ip address can change over time but not every few minutes.
However, if some forms of DNS load balancing are used using multiple DNS queries may be a way to find out if you need to consider multiple IP addresses at the same time.
Another approach is that of finding out current DNS resolution and then using looking glass you can find what AS number owns the ip address.
Then you look for IP subnets of that ASN.
The reasoning is that the site can be hosted in multiple servers but all ip addresses may belong to the same provider/ organization.
Hope to help
Giuseppe