2 Answers
- Newest
- Most votes
- Most comments
1
Afraid this is not possible. Anyone with a DNS Servers can point to any IP Address on the internet.
What you should do is make sure you have
- Host Headers Setup
- Implement a CORS policy
- Implement WAF which restricts host headers to your website
0
The quickest and easiest solution is to allow-list the 'Host' request headers in Apache httpd.conf and block requests that do not match. You can do this is a number of ways:
- using mod_authz_host e.g. "Require host mywebsite.com'
- using mod_rewrite to check %{HTTP_HOST} variable
- define Apache vHosts and use a default vHost to block access
Relevant content
asked a year ago
- AWS OFFICIALUpdated 2 years ago
