You can try FQDN based ACL, however it is not full proof method to achieve your requirement.
https://supportforums.cisco.com/document/66011/using-hostnames-dns-access-lists-configuration-steps-caveats-and-troubleshooting
Thanks,
Ishan
Please remember to select a correct answer and rate helpful posts