Why isn't request.UrlReferrer working? Something along these lines should work:
If not please give a little more detail on what exactly isn't working
Main Topics
Browse All TopicsWe run a bit of code in the session start event that checks on the existence of a querystring.
If the querystring is present, we run some other code which identifies the affiliate that is linking to us.
A total of 5 websites could be linking to us using the same querystring.
I had expected that we would be able to capture the url of the linking site using Request.UrlReferrer but this is not working.
Is there another way to capture the url. Surely if we can get the querystring, we can get the url?
Wing
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
So you mentioned that the Querystring part is working absolutely fine, so if you simplify your situation and only put in the page load...
Does it give you the value of the website referring?
If Not Page.IsPostBack Then
If Not (Request.UrlReferrer Is Nothing) Then
Response.Write(Request.Url
End If
End If
arhame as I said, the UrlReferrer code is working fine for certain other sites (google doesnt forward this info I notice but will not work for the 5 sites that we are trying to filter.
I am trying to use servervariables as suggested by HainKurt but I have a strong feeling that the UrlReferrer is simply a wrapper for ServerVariables("HTTP_REFE
I think Omego2K may be correct but he hasnt explained why this is the case which would be useful to know.
Wing
sorry for not responding, the URL from the referring site comes from the users browser. Why it's not coming from their browser may be for several reasons, two that come to mind are their security settings and/or their firewall. From what I read before on the topic some norton firewall will block this by default. There may be other client side issues that we simply can't know because we don't have their computer.
Business Accounts
Answer for Membership
by: Omego2KPosted on 2009-10-06 at 08:41:50ID: 25506320
Request.UrlReferrer is not guaranteed. The client tells you the referer and they may have a firewall that blocks it or a browser that messes something up.