aws-samples / aws-refarch-wordpress

This reference architecture provides best practices and a set of YAML CloudFormation templates for deploying WordPress on AWS.
MIT No Attribution
1.08k stars 609 forks source link

Prevent blog access from its public IP address #40

Open laurent-le-graverend opened 6 years ago

laurent-le-graverend commented 6 years ago

The configuration seems to allow access to the website with both the public IP address and the domain name (both has been indexed by Google in my case).

Eg: https://107.XX.XX.XX/ and https://www.example.com will both work.

What should be the correct way to prevent (or redirect) access from the public IP address? It would believe that it's an ELB configuration but I couldn't find it.