When I used to work for an e-commerce website, because the website sells virtual things, such as game recharge cards or something, online payment is supported. Over time, there will inevitably be a lot of people who want to attack the website. Some boring people always use the proxy to attack the website. In this way, even if we know that the website has been attacked, we will not be able to attack the other party, later I found the request in ASP. servervariables ("http_x_forwarded_for") can get the user's proxy IP address. If the user uses a proxy, this value will not be blank. Otherwise. Haha
Then, we can check whether the user's proxy IP address is blank during webpage loading. The procedure is as follows:
Usertrueip = request. servervariables ("http_x_forwarded_for ")
If usertrueip <> "then
Response. Write "based on the website itself and your personal data security, please do not use a proxy server"
Response. End ()
End if
In this way, if someone wants to destroy your website, he must use his own real IP address. But generally, people do not dare to use real IP addresses to attack others.