[thelist] http_referer [perl]

Algian algian at algian.com
Wed Sep 6 07:41:34 CDT 2000


hello evolters,
I have a problem which i'm slightly clueless about :)
I have a perl script that compares the http_referer
with a series of valid urls and if it doesn't match any it kicks
the user out like so

  if ($ENV{'HTTP_REFERER'} ne $valid_urls[0] && $ENV{'HTTP_REFERER'} ne
$valid_urls[1] && $ENV{'HTTP_REFERER'} ne $valid_urls[2] &&
$ENV{'HTTP_REFERER'} ne $valid_urls[3]) {
   kick_out();
  }

now this works like a beauty in NN but for no apparent reason
in IE4 it just kicks you out..
I tried printing the http_referer in IE so that i could see what was wrong
and
to my surprise the HTTP_REFERER was EMPTY!!!!! :o
Now I am completely amazed at the wonders of perl :)

Does anyone know why this is happening?

thanks for your help
Algian

/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\
Alessandro Giannone
Web Anomaly Creator
Edinburgh University
Department of Science & Engineering
\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/





More information about the thelist mailing list