minkyu
Jul 13, 2019Nimbostratus
asm response page
Can the ASM Response page display the client IP and request URL?
Should be possible. This seems to work:
<html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br>
<br>The requested URL was: <span id="url"></span></br><br>Your IP-address: <span id="clientip"></span><br>Your support ID is: <%TS.request.ID()%><br><br><a href='javascript:history.back();'>[Go Back]</a>
<script>
document.getElementById("url").innerHTML = window.location;
function getIP(json) {
document.getElementById("clientip").innerHTML = json.ip;
}
</script>
<script type="application/javascript" src="http://ipinfo.io/?format=jsonp&callback=getIP"></script>
</body></html>