WordPress in AWS Lightsail - restrict public IP
I have WordPress instance in AWS Lightsail with static public IP. I also created DNS record with domain to redirect to that IP.
How can I hide/restrict public IP? Meaning I can now go to just that IP but I don't want public to be able do it, only to domain. I have cert installed for domain but not for IP.
user goes to - https://www.hello.com/ (1.1.1.1) - ALLOW
user goes to - http://1.1.1.1/ - restrict