473,387 Members | 1,516 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,387 software developers and data experts.

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 5044
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: 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.