On Thu, 2007-06-14 at 14:23 +0800, Jen mlists wrote:
> Hello members,
> 
> I would config/write a modperl module to do this thing.
> When someone access a file which is located on special directory,say it was,
> /download/test.flv
> we would do some auth check.If his IP or request time were
> reasonable,we could let him access this file.Otherwise we would return
> a 403 error.
> 
> What's the correct module/way for protect this directory?
> Thanks!

What you're after is a PerlAccessHandler
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlAccessHandler

Depending on how complex your rules are, you may be able to get away
with mod_access in apache:
http://httpd.apache.org/docs/2.0/mod/mod_access.html

Clint

Reply via email to