473,398 Members | 2,393 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,398 software developers and data experts.

Page referer not getting set

Hi All,

I do web design for some small organizations, and one of the sites I have
set up takes online conference registrations. Now, most of the time it
works. In fact, every time I try it, it works fine.

However, after having many complaints about it not working right, I finally
discovered that some of my users do not have the page referer set when they
request my page, and I was checking on the form submission page to make sure
that the referer was the correct page.

What could cause people to not have their referer set? What is the solution
for this sort of problem? Just don't check the referer?

-Josh
Jul 17 '05 #1
5 2790

On 13-Feb-2004, "Joshua Beall" <jb****@donotspam.remove.me.heraldic.us>
wrote:
I do web design for some small organizations, and one of the sites I have
set up takes online conference registrations. Now, most of the time it
works. In fact, every time I try it, it works fine.

However, after having many complaints about it not working right, I
finally
discovered that some of my users do not have the page referer set when
they
request my page, and I was checking on the form submission page to make
sure
that the referer was the correct page.

What could cause people to not have their referer set? What is the
solution
for this sort of problem? Just don't check the referer?


Some browsers and many of the popup blockers allow the user to block the
referrer making it undependable.

--
Tom Thackrey
www.creative-light.com
tom (at) creative (dash) light (dot) com
do NOT send email to ja*********@willglen.net (it's reserved for spammers)
Jul 17 '05 #2
On Sat, 14 Feb 2004, Joshua Beall wrote:
What could cause people to not have their referer set? What is the solution
for this sort of problem? Just don't check the referer?


The specs?

Take a look at section 15.1.13 of RFC 2616:

: ...it is strongly recommended that the user be able to select whether or
: not the Referer field is sent.

<http://www.w3.org/Protocols/2616/rfc2616-sec15.html#sec15.1.3>

It has always been an optional field. Relying on the referer to be set to
some particular URI(s) you expect them to arrive from will break people
trying to link to your page[0] from elsewhere, and your pages from working
at all for some users. In general, this is poor practice.

I've also seen institutional browsers sometimes set to always send the same
fixed Referer, so just checking non-blank Referers will hurt some folk too.

0 - loosely. Really whatever you're returning from the script, be it page,
image or whatever else.

--
ash
a-k
.... Why is there so much month left at the end of the money?

Jul 17 '05 #3
"Ash Argent-Katwala" <as*@videdot.com> wrote in message
news:Pi**************************************@tung sten.doc.ic.ac.uk...
On Sat, 14 Feb 2004, Joshua Beall wrote:
What could cause people to not have their referer set? What is the solutionfor this sort of problem? Just don't check the referer? Take a look at section 15.1.13 of RFC 2616:

: ...it is strongly recommended that the user be able to select whether or
: not the Referer field is sent.


Hmm, good point.
It has always been an optional field. Relying on the referer to be set to
some particular URI(s) you expect them to arrive from will break people
trying to link to your page[0]


Well, you do not always want your pages to be linked from elsewhere, so that
is not a really good reason to not use it. But obviously the fact that it
is considered optional is reason enough, indeed.

Thanks!
Jul 17 '05 #4
Ash Argent-Katwala wrote:
I've also seen institutional browsers sometimes set to always send the same
fixed Referer,


This seems silly to me. Nowhere in RFC2616 says that fake referrer
information can be sent by the client.

--
Jock
Jul 17 '05 #5
On Mon, 16 Feb 2004, John Dunlop wrote:
This seems silly to me. Nowhere in RFC2616 says that fake referrer
information can be sent by the client.


Indeed. I'm just not sure I want to poke people in the eye for having it
configured that way (when it's likely their network/systems admin who's
done that to their setup and they can't necessarily do anything about it).

--
ash
a-k
.... Have you noticed how we only win the World Cup under a Labour government?

Jul 17 '05 #6

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

Similar topics

2
by: Mike Brearley | last post by:
I was wondering if there was an easy way to have a form set up so that when the submit button is pressed, it goes to a confirmation page that contains a back button that goes back to the page that...
3
by: Des | last post by:
I have a web email contact us that if the cancel button is presed it redirects to the home page. using header('Location: index.php'); I have a session variable on every page which sets the a...
2
by: Daniel | last post by:
how to detect who redirects traffic to a aspx page? is this info passed along in request object or can sites anonymously redirect traffic to other sites?
1
by: Raed Sawalha | last post by:
Hello: In my aspx page I need to check the HTTP_REFERER for (images swf ) file, so when I request the server variable (HTTP_REFERER) like this Request.ServerVariables within (page.aspx) . if the...
2
by: TR | last post by:
In an "Abandon Changes" button on my UserPreferences.aspx form, I'd like to redirect back to the page the user was on before coming to the UserPreferences form. It could be any one of my web app's...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
5
by: Bill Davidson | last post by:
All: Pardon the newbie question, but let's say I've got two pages in my website: Welcome.aspx NoNav.aspx I want users to be able to navigate to the welcome.aspx page (e.g....
0
by: j2lane | last post by:
im using frameset in an aspx page, which top frame is index.html and bottom one is footer.html. when a button in footer clicked, there is a pop up window pops, which i need to detect the previous...
6
by: rajiv82 | last post by:
I have a main page say Main.jsp which has a Iframe in it whose src is page1.jsp Page1.jsp has a form in it and we have a button on Main.jsp We submit form inside Ifame(page1.jsp) using the...
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
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.