IP address this is used to serve an E-commerce site, because the site's sales are virtual things, such as the game Recharge card ah what, Support online payment. Over time, there are a lot of people want to play the site's idea, some boring person is always using proxy Internet to attack the site, this way even if we know to be attacked also take each other no way, and later found in the ASP Request.ServerVariables ("Http_x_ Forwarded_for ") can get the user's proxy IP. If the user uses an agent, the value is not empty. Instead. Oh
Then, we can detect if the user's proxy IP is empty when the page is loaded. 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
This way, if someone still wants to destroy your website, he has to use his real IP to do oh. But the average person is afraid to use the real IP to attack others.