Server Variables

Development Team Montego Data Limited 
This article () shows Server Information.

  
ALL_HTTPHTTP_CONNECTION:close HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, br, zstd, deflate HTTP_HOST:montegodata.co.uk HTTP_REFERER:http://www.montegodata.co.uk/WebForms/Site.aspx HTTP_USER_AGENT:Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
ALL_RAWConnection: close Accept: */* Accept-Encoding: gzip, br, zstd, deflate Host: montegodata.co.uk Referer: http://www.montegodata.co.uk/WebForms/Site.aspx User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
APPL_MD_PATH/LM/W3SVC/23/ROOT
APPL_PHYSICAL_PATHD:\Inetpub\vhosts\montegodata.co.uk\httpdocs\
CERT_KEYSIZE256
CERT_SECRETKEYSIZE2048
CERT_SERVER_ISSUERC=US, O=Let's Encrypt, CN=R12
CERT_SERVER_SUBJECTCN=montegodata.co.uk
CONTENT_LENGTH0
GATEWAY_INTERFACECGI/1.1
HTTPSon
HTTPS_KEYSIZE256
HTTPS_SECRETKEYSIZE2048
HTTPS_SERVER_ISSUERC=US, O=Let's Encrypt, CN=R12
HTTPS_SERVER_SUBJECTCN=montegodata.co.uk
INSTANCE_ID23
INSTANCE_META_PATH/LM/W3SVC/23
LOCAL_ADDR213.175.196.97
PATH_INFO/WebForms/Site.aspx
PATH_TRANSLATEDD:\Inetpub\vhosts\montegodata.co.uk\httpdocs\WebForms\Site.aspx
REMOTE_ADDR216.73.216.62
REMOTE_HOST216.73.216.62
REMOTE_PORT46752
REQUEST_METHODGET
SCRIPT_NAME/WebForms/Site.aspx
SERVER_NAMEmontegodata.co.uk
SERVER_PORT443
SERVER_PORT_SECURE1
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/10.0
URL/WebForms/Site.aspx
HTTP_CONNECTIONclose
HTTP_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, br, zstd, deflate
HTTP_HOSTmontegodata.co.uk
HTTP_REFERERhttp://www.montegodata.co.uk/WebForms/Site.aspx
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
UserHostAddress216.73.216.62

Server Variables

<table border="1">
<%
IEnumerator en = Request.ServerVariables.Keys.GetEnumerator();
en.MoveNext();
foreach( string key in Request.ServerVariables.Keys)
{
    if (Request.ServerVariables[key].Trim().Length > 0)
    {
        Response.Write( string.Format("<tr><td><b>{0}</b></td><td>{1}</td></tr>",
                        key, Request.ServerVariables[key]));
    }
}
%>
</table>

<table border="1">
<%
for each name in Request.ServerVariables
    if len(trim( Request.ServerVariables(name) )) > 0 then
        Response.write( "<tr><td><b>"&name&":</b></td><td>" )
        Response.write( Request.ServerVariables(name) )
        Response.write( "</td></tr>" )
    end if
next
%>
</table>

<h3>Client side IP geolocation using <a href="https://ipinfo.io">ipinfo.io</a></h3>

<hr/>
<div id="ip"></div>
<div id="address"></div>
<hr/>Full response: <pre id="details"></pre>

$.get("https://ipinfo.io", function (response) {
    $("#ip").html("IP: " + response.ip);
    $("#address").html("Location: " + response.city + ", " + response.region);
    $("#details").html(JSON.stringify(response, null, 4));
}, "jsonp");


In this asp based site simply iterating through ServerVariables reveals this information.
The aspx sample requires the IEnumerator workaround code as an error happens without it.
Wilmott Online Technical Forum For Derivative Experts