2010/2/1 Torsten Förtsch <torsten.foert...@gmx.net>:
> On Monday 01 February 2010 15:03:53 m...@normalperson.e4ward.com wrote:
>> 2010/2/1 Torsten Förtsch <torsten.foert...@gmx.net>:
>> > If you don't want the browser to see the actual location of the mp4 file
>> > then you need $r->internal_redirect:
>> >
>> > use Apache2::SubRequest ();
>> > ...
>> >    if ( is_valid_ip($ip) ){
>> >        $r->internal_redirect('/path/12345.mp4');
>> >        return Apache2::Const::OK;
>>
>> Thank you Torsten, that's really what I expected.
>>
> Keep in mind that /path/12345.mp4 is still a valid URI and hence can be
> requested by the browser. But you can check if the request is the result of an
> internal redirect by checking $r->prev and deny it unless set.
>

That's a cool idea.
But how to set it? I never used $r->prev in my before experience.
Thanks again.

Reply via email to