Do you mean you need to know if you ASP page was opened inside of a frame, and if so what page the request came from?
If that is the case you will have to use a mix of client and server side code to solve the problem.
<%
if request.querystring("frame" <> "true" then
%>
<script>
if document.frames.length != 0
{ document.location.replace(<%=request.servervariables)"SCRIPT_NAME"%>?frame=true&referrer='+document.referrer);
}
</script>
<% else
'FRAME DETECTED.. LOG REFERRER HERE
end if%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.