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

http referer

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 it just reports the website url, does
anyone know a cure or workaround other than trashing the frames ?

Cheers,
chris
Jul 23 '05 #1
3 6082
exxos wrote on 03 mrt 2005 in comp.lang.javascript:
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 it just reports the
website url, does anyone know a cure or workaround other than trashing
the frames ?


Then that really is the referer.
Frames are evil, trash them anyway.

Cann't you get the referrer on the main frameset page?

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
exxos wrote on 03 mrt 2005 in comp.lang.javascript:
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 it just reports the
website url, does anyone know a cure or workaround other than trashing
the frames ?


Then that really is the referer.
Frames are evil, trash them anyway.

Cann't you get the referrer on the main frameset page?

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


I managed to get in in the frameset, though im trying to match the referer
to itself to see if this works...
if (document.referrer&&document.referrer!=document.re ferrer)
alert('Found');
might be setout wrong ? though the referer will always match itself (I
assume) so it should flag up the alter box.. but dont do a thing.... if I
flag up a alert for the referer thats correct...... *lost* ?!

Chris

Jul 23 '05 #3
exxos wrote on 03 mrt 2005 in comp.lang.javascript:
if (document.referrer&&document.referrer!=document.re ferrer)
alert('Found');
might be setout wrong ? though the referer will always match itself (I
assume) so it should flag up the alter box.. but dont do a thing....
if I flag up a alert for the referer thats correct...... *lost* ?!


No it does not!!

(document.referrer&&document.referrer!=document.re ferrer)

pseudocode:

if "document.referrer" is not true then NO alert

"document.referrer!=document.referrer" this is never true, so always false

if "document.referrer" is true then
if false then again NO alert()

Conclusion: alert() never fires at all.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #4

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

Similar topics

5
by: Joshua Beall | last post by:
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...
4
by: Dekaritae | last post by:
I have a script that I've written in Perl that retrieves files generated from a template. It works decently enough, but I'd like to rewrite it in Python (Perl was just a detour; it was originally...
8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
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 --...
0
by: Stuart | last post by:
Hi Is there any way to prevent an IE 6 browser from sending up the REFERER HTTP header ? (Either as an IIS Server setting, change to asp files, or even a setting in the IE browser). This is...
2
by: Jonathan Driller | last post by:
I am attempting to block repeat downloads from a site. I need to have a landing page pass a referer to a secured page. I have tried a meta refresh redirect and several Javascript redirect...
5
by: mike | last post by:
regards: Does each HTTP Request have "Referer:" header? Any positive suggestion is welcome. thank you May goodness be with you all
1
by: Al | last post by:
Hi i'm having troble with a script where i check referer, on a PC with Zone Alarm Pro the referer isn't send... i did a couple of page of testing and no referer is sand, closing ZAP the...
0
by: Chaos | last post by:
For the Program I Am Making I Make Multiple HTTP Request to My Server. I found that using urllib2 it was pretty slow, when I activated the program and tested it it would hang from 2secs-5secs since...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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.