The referring page, when a browser sends it, can be read through Request.ServerVariables using HTTP_REFERER.
The referrer is optional and not authoritative. It may be absent because of direct navigation, browser/privacy settings, HTTPS/referrer policy, or intermediary behavior. Do not use it as a security or authorization control.
<%= Request.ServerVariables("HTTP_REFERER")%>
Some browsers have settings to manage the header information. This way one of the important header referrer header information can be blocked. For Firefox browser at the address bar type about:config and browse through the settings, select and change the values if you want. ( be warned to change the settings , and read all the guidelines and read in details from Mozilla and other resources )
network.http.sendRefererHeader
The above header is to be made to 2 if referrer is to be send through header.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.
| majed | 01-11-2014 |
| what about users that visit our site by scripts from another site <script locate='www.mysite'> how can we find address of site that visitors are comming | |