The problem of malicious resolution is that my server is an independent ip address. other domain names were resolved to my server a few days ago. now I have made a 301 jump to the resolved domain name, however, this can only prevent the current domain name from being resolved. For more information, see how to set an ip address to prohibit access to the server and set a specific domain name for access. an ip address is forbidden to access the server on the Internet, how to set a specific domain name to access NameVirtualHost & nbsp; 221. *. *. * & nbsp; & lt; VirtualHo malicious parsing
My server is an independent ip address. some other domain names were resolved to my server a few days ago. now I have made a 301 jump to the resolved domain name, but this can only prevent the current domain name from being resolved,
How Can I disable ip addresses from accessing the server and set a specific domain name to access the server,
I found a method on the Internet to prohibit ip access and set a specific domain name for access.
NameVirtualHost 221 .*.*.*
Server name 221 .*.*.*
Order Allow, Deny
Deny from all
DocumentRoot "/www/web"
ServerName www.xxx.cn
However, if this is used, the server cannot be restarted. if you use the appserv server, please advise.
------ Solution ----------------------
Http://www.uddtm.com/server/web/478.html
------ Solution ----------------------
What you can find on the Internet is the same as your main post example.
In fact, this is the same. you can use a VM to mislead requests into the trap.