HTTP Referrer questions

  • Thread starter Thread starter Chumley the Walrus
  • Start date Start date
C

Chumley the Walrus

A week or so ago, I needed to find the HTTP_REFERER environment
variable to check and see if a user is coming from a certain website:


If Request.ServerVariables("HTTP_REFERER")_
= "http://localhost/mydir/page1.aspx" then
response.write "Click on a menu choice"
else
response.write "check back later
end if

I have a page nested in an IFRAME (for example framepage1.aspx or
..asp), and I need to check to see if a user is coming to (not coming
from ) a certain page where the framepage1.aspx is (the
framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,
or page3). I'm not sure how to accomplish this given that the
HTTP_REFERER checks on address only incoming.

Thanks
Chum
 
Chum,

I am sorry but I am not sure what kind of problem you are trying to solve.
Could you please explain it in other words?
As I understand, a user can move to another page by clicking links or
buttons on the current page. You can place code to track clicking links at
the page and in this way control where the user going.

--
Victor Urnyshev [MSFT]
This post is "AS IS" with no warranties, and confers no rights.
--------------------
|From: (e-mail address removed) (Chumley the Walrus)
|Newsgroups:
microsoft.public.inetserver.asp.general,microsoft.public.dotnet.general
|Subject: HTTP Referrer questions
|Date: 12 Jul 2004 13:38:46 -0700
|Organization: http://groups.google.com
|Lines: 20
|Message-ID: <[email protected]>
|NNTP-Posting-Host: 205.138.222.196
|Content-Type: text/plain; charset=ISO-8859-1
|Content-Transfer-Encoding: 8bit
|X-Trace: posting.google.com 1089664759 28251 127.0.0.1 (12 Jul 2004
20:39:19 GMT)
|X-Complaints-To: (e-mail address removed)
|NNTP-Posting-Date: Mon, 12 Jul 2004 20:39:19 +0000 (UTC)
|Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!fr.ip.ndsoftware.net!proxad.net!postnews2.google.com!not-for-mail
|Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:139313
microsoft.public.inetserver.asp.general:276476
|X-Tomcat-NG: microsoft.public.dotnet.general
|
|A week or so ago, I needed to find the HTTP_REFERER environment
|variable to check and see if a user is coming from a certain website:
|
|
|If Request.ServerVariables("HTTP_REFERER")_
|= "http://localhost/mydir/page1.aspx" then
| response.write "Click on a menu choice"
| else
|response.write "check back later
|end if
|
|I have a page nested in an IFRAME (for example framepage1.aspx or
|.asp), and I need to check to see if a user is coming to (not coming
|from ) a certain page where the framepage1.aspx is (the
|framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,
|or page3). I'm not sure how to accomplish this given that the
|HTTP_REFERER checks on address only incoming.
|
|Thanks
|Chum
|
 
Chumley said:
A week or so ago, I needed to find the HTTP_REFERER environment
variable to check and see if a user is coming from a certain website:


If Request.ServerVariables("HTTP_REFERER")_
= "http://localhost/mydir/page1.aspx" then
response.write "Click on a menu choice"
else
response.write "check back later
end if

I have a page nested in an IFRAME (for example framepage1.aspx or
.asp), and I need to check to see if a user is coming to (not coming
from ) a certain page where the framepage1.aspx is (the
framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,
or page3). I'm not sure how to accomplish this given that the
HTTP_REFERER checks on address only incoming.

Simply forget about referer if you're talking about an Internet based
application. Any old proxy could change that header.


Cheers,
 
Back
Top