Re: $ENV{'HTTP_REFERER'}

2005-08-24 Thread David Dorward
On Wed, Aug 24, 2005 at 02:12:56PM -0700, Denzil Kruse wrote: > I want to know the web site that someone came from, > and so I was planning on reading $ENV{'HTTP_REFERER'} > to figure it out. How reliable is that? Reliable enough for general interest and for finding some

Re: $ENV{'HTTP_REFERER'}

2005-08-24 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi, > > I want to know the web site that someone came from, > and so I was planning on reading $ENV{'HTTP_REFERER'} > to figure it out. How reliable is that? Do browsers > or other situations block it or obfuscate it? Is > there another w

$ENV{'HTTP_REFERER'}

2005-08-24 Thread Denzil Kruse
Hi, I want to know the web site that someone came from, and so I was planning on reading $ENV{'HTTP_REFERER'} to figure it out. How reliable is that? Do browsers or other situations block it or obfuscate it? Is there another way to do it or any other issues involved? I'm usin

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread john mckeown
very strange. my copy of netscape 4.77 (as well as my copy of IE 5) correctly give the url of the referring page in HTTP_REFERER. by the way, this variable is not suitable for authentication, as it can easily be spoofed. just a warning, ymmv. * Dianne Van Dulken <[EMAIL PROTECTED]> [2001-06-0

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Brett W. McCoy
ontent-type: text/html\n\n"; > > ## > ##declared variables > ## > my $homepage; > my $ENV; > my $HTTP_REFERER; Nope. %ENV, a hash, is already available to you. You don't need to declare these at all. > ## print to webpage > ###### > ##print

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Luinrandir Hernson
TP_REFERER; ## print to webpage ## ##print "$_: $ENV{$_}\n" foreach keys %ENV; print "$ENV{'$HTTP_REFERER'}\n"; ##open, print, close file ## open(A,">>/home/homepage/cgi-bin/data/refs.htm"); print A "$ENV{'HTTP_REFERER'}\n"; close (A); exit;

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Luinrandir Hernson
This works print qq{$_ => $ENV{$_}\n} for keys %ENV; what are ths individual calls? print qq"$ENV{'HTTP_REFERER'}\n"; (below are the other calls.yes???) QUERY_STRING => SERVER_ADDR => 000.00.00.000 HTTP_ACCEPT_LANGUAGE => en-us SERVER_PROTOCOL =&g

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Randal L. Schwartz
> "Mo" == Mo Holkar / UKG <[EMAIL PROTECTED]> writes: Mo> I've seen a few references to this spoofing of HTTP_REFERER -- how is Mo> it accomplished? Mo> (Asking not so that I can do it myself ;-) but to ascertain whether Mo> the circumstances / requirements are such that this danger is of Mo

RE: $ENV(HTTP_REFERER)?

2001-06-07 Thread Mo Holkar / UKG
At 10:18 07/06/01, Aaron Craig wrote: >remote_host is not the same as HTTP_REFERRER, is it? -- http referral is >the address of the server where the page lives that the person clicked on >to arrive to the cgi script. It should also be treated with a grain of >salt, as the information it provid

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Randal L. Schwartz
> "Joe" == Joe Schulman <[EMAIL PROTECTED]> writes: >> print A "$ENV{'HTTP_REFERRER'}\n"; Joe> I'm no where near being an expert at perl (and know even less about the rules for file I/O), but I'm pretty sure two things could be Joe> wrong here: Joe> 1) The "$ENV{'HTTP_REFERRER')\n"; part fo

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Timothy Kimball
Dianne Van Dulken wrote: : I was hoping someone would be able to give me a clue how I could find the : referer IP. If I use the Environment HTTP_REFERER, it will work in IE, but : not in Netscape. : : Does anyone know of another method that allows me to read this? Should work with Netscape; it

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Timothy Kimball
Luinrandir Hernson wrote:: open(A,">>/home/thx-1138/cgi-bin/data/refs.htm"); : print A "$ENV{'HTTP_REFERRER'}\n"; : close (A); : : The file opens, prints a return/linefeed and closes... : : any ideas why this wont work??? : it looks correct to me from what i have read. Two thoughts: * The env

RE: $ENV(HTTP_REFERER)?

2001-06-07 Thread Aaron Craig
At 22:35 06.06.2001 -0500, you wrote: > > I too have a question about this. > > below is the code: > > > > open(A,">>/home/thx-1138/cgi-bin/data/refs.htm"); > > print A "$ENV{'HTTP_REFERRER'}\n"; > > close (A); > > > > The file opens, prints a return/linefeed and closes... > > > > any ideas why th

RE: $ENV(HTTP_REFERER)?

2001-06-06 Thread Dianne Van Dulken
Hi Joe, This gives us the current host. We actually want to get the referrer to this page. What we are actually trying to do is to control people from viewing an include, according to their IP. A remote page calls it, and if it is off a given IP website, it gets one result, otherwise, it ge

RE: $ENV(HTTP_REFERER)?

2001-06-06 Thread Joe Schulman
> I too have a question about this. > below is the code: > > open(A,">>/home/thx-1138/cgi-bin/data/refs.htm"); > print A "$ENV{'HTTP_REFERRER'}\n"; > close (A); > > The file opens, prints a return/linefeed and closes... > > any ideas why this wont work??? > it looks correct to me from what i have

RE: $ENV(HTTP_REFERER)?

2001-06-06 Thread Joe Schulman
> I was hoping someone would be able to give me a clue how I could find the > referer IP. If I use the Environment HTTP_REFERER, it will work in IE, but > not in Netscape. For some people this isn't an option (CGI.pm isn't available), but it is one that works on all browsers (I have a site that

Re: $ENV(HTTP_REFERER)?

2001-06-06 Thread Luinrandir Hernson
ct to me from what i have read. Lou - Original Message - From: Dianne Van Dulken To: '[EMAIL PROTECTED]' Sent: Wednesday, June 06, 2001 9:57 PM Subject: $ENV(HTTP_REFERER)? Hi, I had already posted this to beginners@perl <mailto:beginners@perl> , but

$ENV(HTTP_REFERER)?

2001-06-06 Thread Dianne Van Dulken
Hi, I had already posted this to beginners@perl , but someone there suggested I try here as well. I was hoping someone would be able to give me a clue how I could find the referer IP. If I use the Environment HTTP_REFERER, it will work in IE, but not in Netscape. Does a