Recently I found out the public IPv4 Public DNS domain from my Worpress in AWS Lightsail instance is public and indexed by Google.
This is becoming a huge problem because is around 4,000 urls already indexed and my main domain is around 20,000 and will start to lose relevancy.
Any ideas how to hide this from public? Redirect from https://ec2-1-234-56-789.compute-1.amazonaws.com/ to main domain ou something that's solve this problem?
From DNS attributes for your VPC - Amazon Virtual Private Cloud:
You can disable DNS hostnames by going to the VPC and choosing Actions / Edit VPC settings, then disable the "Enable DNS hostnames" option:
[