A own a dedicated CentOS box that uses lighttpd to serve www.newdomain.com
. However, the same IP used to host an old domain www.olddomain.com
.
The box still gets requests for www.olddomain.com
.
What's the most effective way to block those requests?
- Through an iptables rule
- By a rule in lighttpd
- Adding a hosts.deny
- Another option that haven't thought of
Note: I do not have access to the name servers or the domain records of www.olddomain.com