473,465 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HTTP Referrer questions

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
Jul 21 '05 #1
2 5046
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: sp*******@yahoo.com (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: <1e**************************@posting.google.com >
|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: gr**********@google.com
|NNTP-Posting-Date: Mon, 12 Jul 2004 20:39:19 +0000 (UTC)
|Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!fr.ip.ndsoftware.net!proxad.net!postnews2.goo gle.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
|

Jul 21 '05 #2
Chumley the Walrus wrote:
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,
--
Joerg Jooss
jo*********@gmx.net

Jul 21 '05 #3

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

Similar topics

4
by: Travis Pupkin | last post by:
Hi, I built a site half a year ago with form that submits to page that processes the info and then returns the user back to the page they came from using HTTP_REFERER. There's one guy --...
3
by: exxos | last post by:
Hi all, I'm trying to list to a html page where the referer is, There are a lot of ways ive tried and work, but the problem if my mainpage uses frames, and no matter where I do the referer check...
9
by: Frances Del Rio | last post by:
if I put alert(document.referrer) in code of a file that was linked from another it returns blank... pls, need to get document.referrer, don't why it's not working... read up on oreilly, don't...
2
by: Goober | last post by:
I have to determine the document.referrer of the individual coming to my site. I want to send everyone not coming from one of those sites to an alternate location (The names below are just used as...
3
by: Alex | last post by:
Hi!! i have a major problem, and i've been searching for a solution for about 2 weeks, but havent found one. i have to do a POST-Request to a server, but the server shouldnt know my referrer....
2
by: Chumley the Walrus | last post by:
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")_ =...
1
by: Mike Dee | last post by:
Hi All - I'm having a strange problem I'm wondering if anyone can shed some light on. When I use ASP or ASP.NET code to get the referrer information from the server side, it comes back as null. ...
2
by: Fernando Rodríguez | last post by:
Hi, Is there a way to turn the document.referrer string into a Location like object, so I can extrac the domain and other parts of it? Thansk
1
by: Suman | last post by:
Hi all, Is there a way to set the value of HTTP header Referrer to null or to any specified value?? I have tried doing this document.Referrer= null but document.Referrer is a read only...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.