473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HTTP_Referer

I'm writing an application where I need to know the URL of the user that
entered my application (the user comes in from a completely different site
who knows where and who knows how). For all I know, the user wrote an HTML
page with a button that does
window.open("http://mywebpage/myloginpage.aspx").

So in myloginpage.aspx, I check for the following:
Dim strWhere As String = Request.ServerVariables("HTTP_REFERER")
But its always nothing. (I also tried Request.URLReferer and thats nothing
too)
Is there maybe another method to know ALWAYS what page the client app that
opens my web page comes from??
Or am I missing something in my setup (of IIS maybe?) to force HTTP_Referer
to work?
Jul 21 '05 #1
2 1586
I do not beleive the browser is required to send this information. In other
words, those fields are not dependable.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
I'm writing an application where I need to know the URL of the user that
entered my application (the user comes in from a completely different site
who knows where and who knows how). For all I know, the user wrote an HTML page with a button that does
window.open("http://mywebpage/myloginpage.aspx").

So in myloginpage.aspx, I check for the following:
Dim strWhere As String = Request.ServerVariables("HTTP_REFERER")
But its always nothing. (I also tried Request.URLReferer and thats nothing
too)
Is there maybe another method to know ALWAYS what page the client app that
opens my web page comes from??
Or am I missing something in my setup (of IIS maybe?) to force HTTP_Referer to work?

Jul 21 '05 #2
As a rule, a click event is required to populate the HTTP_REFERER variable
with data.

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uy*************@TK2MSFTNGP15.phx.gbl...
I do not beleive the browser is required to send this information. In other words, those fields are not dependable.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
I'm writing an application where I need to know the URL of the user that
entered my application (the user comes in from a completely different site who knows where and who knows how). For all I know, the user wrote an

HTML
page with a button that does
window.open("http://mywebpage/myloginpage.aspx").

So in myloginpage.aspx, I check for the following:
Dim strWhere As String = Request.ServerVariables("HTTP_REFERER")
But its always nothing. (I also tried Request.URLReferer and thats nothing too)
Is there maybe another method to know ALWAYS what page the client app that opens my web page comes from??
Or am I missing something in my setup (of IIS maybe?) to force

HTTP_Referer
to work?


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John A. Irwin | last post by:
I'm very new to PHP and am trying to figure out how to parse out a variable "HTTP_REFERER". My reason for this is my site was recently "FEATURED" (sic) on a website called FARK.COM. Because of...
9
by: Jez | last post by:
Any ideas why I'm not able to use $_SERVER on my shared hosting account (PHP 4.1.2), but I can on my local server (PHP 4.3.3)? I imagine it has something to do with the different versions of PHP...
9
by: deko | last post by:
I have a page that I don't want anyone to be able to link directly to. The page should only be accessed from gatepage.php. I tried this code, but keep getting errors - "header info already sent",...
2
by: ssk | last post by:
Hello! I made a web site using PHP Open sources for message board. Everything's fine except one computer can't open a message writing page. The code that gives an error is the following. ...
9
by: Robert Mark Bram | last post by:
Hi All! I have the following in an ASP script: var bounceBackPage = Request.ServerVariables("HTTP_REFERER"); Response.Write("<p>bounceBackPage: " + bounceBackPage + ". Undefined? " +...
2
by: M Smith | last post by:
On our web site we allow our members access to features hosted by another web site. The way the other web site authenticates users is to check the value of the HTTP_REFERER. If it comes from our...
4
by: Ringo Langly | last post by:
Hi everyone, We're using an outside vendor to provide some content for our website, and they use the http_referer variable to verify their content is only viewed from subscribing customers. ...
28
by: Prabhat | last post by:
Hello, I have the below requirement. When ever my website is opened by any link: say clicked from the google search result or a link from other website: Then I should able to know the...
8
by: tshad | last post by:
Why would HTTP_REFERER not be there in the Page_Load event? I am using it to determine whether a page was called from a particular page. I am doing: sTest =...
6
by: Lorna | last post by:
I can't seem to get the ENV variable HTTP_REFERER when posting with CGI from one program to another. In my post program I have put in the <HEAD> HTTP_REFERER =my host - ie www.xyz.com (I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.