473,549 Members | 5,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2798

On 13-Feb-2004, "Joshua Beall" <jb****@donotsp am.remove.me.he raldic.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*********@wil lglen.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#sec1 5.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.co m> wrote in message
news:Pi******** *************** *************** @tungsten.doc.i c.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
2318
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 called the form. Basically, I'm looking at a scenario where 10 pages can call the form, but I want to user to be able to click the back button and...
3
1356
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 session variable. What I want to do is header('Location: $return); where $return is a copy of the variable the page that has the problem is...
2
2596
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
2062
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 page.aspx contain only SWF the referer returned empty. but if JPG or GIF and referer returned as page.aspx so why the referer is empty for SWF...
2
1947
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 pages with a link to the UserPreferences page in its topmenu. (I'm testing for stale session tokens and can prevent users from bookmarking the...
6
4851
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still...
5
3219
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. http://myserver.com/Welcome.aspx), but I don't want them to be able to navigate directly to NoNav.aspx. The NoNav.aspx page will be loaded only by
0
1107
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 page (referer), since there are some h-links in index.html. i use both request.servervariables and Request.UrlReferrer in the pop up page, but got...
6
11875
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 button on main page with javascript. Once a form is submitted, we redirect it to some error page in case of error. Here we have a back button which...
0
7526
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7455
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7962
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7814
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6050
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5373
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5092
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3504
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.