Hi friends,
I used Request.UrlReferrer method to get previous requested url. When I used this method in one system it works well but when I tested on another system, it displays nothing. Is it browser dependent method?, Let me know your comments.
Thanks in advance.
Regards,
Subbarao
-
-
The referrer is only included when the user clicks a link to the page. Viewing the page that checks the referrer by any other means (pasting the URL, redirecting, etc) will not pass a referrer, and thus HttpRequest.UrlReferrer will be null.
-
PreachingLlama wrote:The referrer is only included when the user clicks a link to the page. Viewing the page that checks the referrer by any other means (pasting the URL, redirecting, etc) will not pass a referrer, and thus HttpRequest.UrlReferrer will be null.
Don't forget "privacy" software which strips the referring URL from the headers passed by the browser.
As with all external input it's really not to be relied upon.
-
The Referer [sic] header can be easily modified by the visitor, too; don't rely solely on referrer-checking as a security method.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.