Solved

Referring URL

Posted on 2013-05-15
3
396 Views
Last Modified: 2013-05-15
What is the difference between Request.Url and Request.UrlReferrer  and Request.ServerVariables("HTTP_REFERER")?

I'm trying to set the referring url

And is there a dirrerence if they arrive from a hyperlink?
0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 350 total points
ID: 39168171
I think Request.UrlReferrer picks up the HTTP_REFERER variable. request.URL is the CURRENT url whereas request.UrlReferrer is the PREVIOUS url.
0
 
LVL 44

Assisted Solution

by:Rainer Jeschor
Rainer Jeschor earned 150 total points
ID: 39168178
Hi,
Request.Url is the current requested URL.
Request.UrlReferer and Request.ServerVariables("HTTP_REFERER") should be identical and are the url from where the current request has been initiated (e.g. Page A has a link to Page B then the referer on the Page B load will be Page A).
But you cannot rely on this information as proxies and firewalls can be configured to deny sending this information hence the values will be NULL.

Good explanation:
http://www.kruegerwebdesign.com/blog/request-urlreferrer-is-null-what-gives

And the property is read-only therefore you cannot set it in code.

HTH
Rainer
0
 

Author Closing Comment

by:lrbrister
ID: 39168198
Thanks
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question