Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the specifications of the custom script for the detection of the external IP address?

0
Posted

What are the specifications of the custom script for the detection of the external IP address?

0

DynSite is able to parse virtually any kind of pages and to locate an IP address. You just have to make sure that it will be able to pick the correct address if many addresses appear on the page (you may have to use address exclusion in the connection properties.) <% @Language=JScript EnableSessionState=false %> <% Response.Expires = -1; var addr = String(Request.ServerVariables("HTTP_X_FORWARDED_FOR")); if (addr == "undefined") { addr = String(Request.ServerVariables("HTTP_CLIENT_IP")); if (addr == "undefined") { addr = Request.ServerVariables("REMOTE_ADDR"); } } %> <% = addr %> If you are behind a proxy, you will have to run this script on a port other than 80 (e.g. DynSite uses port 81) to bypass the proxy and to avoid inaccurate IP address detection. You can download a set of detection scripts in different scripting languages here. If you think that there are ways to improve this script please e-mail me. For more details on using a custom script, please read Q15.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123