We have a situation where we have a website, www.mamapedia.com which is accessible both by the ALB address and the Elastic IP's assigned to the ALB at any given time.
This is problematic and is causing problems. We have identified a site such that has our current Elastic IP's named and our ALB address named in their DNS records. We have also confirmed Google is indexing their site and ours together, impacting our results. For example we can see our pages in Google results with the title of the rogue site that has hardcoded our current Elastic IP address.
It seems to us there are two ways of dealing with this:
ALB + Dynamic IP's (our current setup) - Only allow access to our webservers via the domain name.
ALB + Static IP's - Redirect the static IP's to our domain
We have currently configured on 1. above and are struggling with how to either:
- Only allow our domain name to resolve to our site
- Block IP's and ALB addresses (which can change) from resolving to our site
Can someone provide assistance with this?
Again to summarize because both our ALB address and IP"s can change dynamically we would like to only allow access to our site by Fully Qualified Domain.
Thanks in Advance,
Jake