Clients SHOULD NOT include a Referer header field in a (non-secure) HTTP request if the referring page was transferred with a secure protocol.
<input id="referrer" type="hidden" name="referrer" /> <script type="text/javascript"> document.getElementById("referrer").value = window.location.href </script>
string urlReferrer = ""; if (Request.UrlReferrer == null) { urlReferrer = Request["referrer"]; else { urlReferrer = Request.UrlReferrer.AbsoluteUri; }
- }