Recommended: Several tips during ASP web development process ASP is a technology launched by Microsoft to replace the universal gateway interface. Its full name is Active Server Pages. It is a web server-side running environment. ASP itself contains VBScript and javascript engines, allowing scripts to be embedded directly into HTML.
As we all know, the method to get an IP address is
| The following is the quoted content: <%=Request.ServerVariables(REMOTE_ADDR)%> |
But if the client uses a proxy server, then using this method to get the IP of the proxy server. The following is the code to penetrate the server to get the real IP:
| The following is the quoted content: function GetIp() dim realip,proxy realip = Request.ServerVariables(HTTP_X_FORWARDED_FOR) proxy = Request.ServerVariables(REMOTE_ADDR) if realip = then GetIp = proxy else GetIp = realip end if end function |
Share: Use asp to automatically parse the image address in the web page Now the HTML editor based on WEB pages is being used more and more widely in the news system and article system. A web page can maintain its original style as soon as it sticks, and the pictures can also be maintained on this page. However, during use, if the image on the pasted page is deleted, it will