From: Rich Graves (rcgraves@brandeis.edu)
Date: Wed Oct 18 2000 - 21:31:30 CDT
No. META REFRESH _might_ be safe, but you _do not_ want an Apache-level
redirect. Please examine your server log for requests like
^/getlatest.glh
^/fcgi-bin/upgrade.fcgi
\.cab$
^/mps/login
^//
^/h-p/
\.dat$
Those are from embedded browsers like RealPlayer. Some of them behave in
Highly Antisocial Ways when redirected. RealPlayer retries several times
per second if you breathe at it wrong. I've resorted to this php snippet
on unet.brandeis.edu:80.
if (ereg("^/getlatest.glh",$path)) {
header("Content-type: application/vnd.rn-realplayer");
// even this doesn't work. screw it, we can't win, so make 'em wait.
//readfile("http://channels.real.com/$path" . GetEnv("QUERY_STRING"));
sleep(60);
echo "<rn-channels>\n</rn-channels>\n";
exit;
}
// If they have a net 10 address, bounce directly to computer registration
if (ereg("^10\.64\.",$remote_addr)) {
header("Content-type: text/html");
echo "Please go to <a href=\"https://unet.brandeis.edu/\">https://unet.brandeis.edu/norm/> to register your computer on the Brandeis network.<p><font color=\"red\">It is important that you restart your computer after doing that.</font>";
} else {
// If they have a real address, we trust they're not an antisocial
// embedded agent, so bounce to the SSL port.
header("Location: https://unet.brandeis.edu$path");
}
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:34 CDT