On Tue, May 09, 2000 at 04:15:29PM -0700, Tobias Hoellrich wrote:
> Rule #1: Never ever link directly to a remote site, but do it through a
> redirector which makes sure that nothing that doesn't have to be sent to
> the remote site gets sent to it. We use a handler that "listens" on
> /redirect turns urls like:
>
> /redirect/http://www.disney.com
>
> to the obvious correct redirection directive without attaching anything
> session related. The referer on the remote site sees
> 'http://some.host.com/redirect/http://www.disney.com'
Sounds like a nice solution.
Let`s test it. I used a handler like:
sub handler {
my $r = shift;
$r->header_out(Location=> "http://nieuw.nl/harm/p.jpg");
return REDIRECT;
}
and a html file with a link to it. Netscape(linux) and links behave as they
should. IE4 though:
212.204.140.183 - - [10/May/2000:01:33:23 +0200] "GET /mytest HTTP/1.1" 302 270
"http://nieuw.nl/harm/my.html" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)"
212.204.140.183 - - [10/May/2000:01:33:23 +0200] "GET /harm/p.jpg HTTP/1.1" 200 5865
"http://nieuw.nl/harm/my.html" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)"
It doesn`t clear the referer header!
Any suggestions for better redirection strategies? Generate a html file
whith <meta redirect="blah"> qualifies as ugly ;-)
Harm
--
Today is Setting Orange, the 57th of Discord, 3166.
The Moon is Waxing Crescent (41% of Full)
nieuw.nl - 2dehands.nl