[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which module for this purpose?


A couple of ways I can think of. Code-wise, you can have modperl handle all requests to /download/. So a request to /download/test.flv will activate a modperl script which can do the checks you want (and return 404 if needed). Otherwise it will load the file specified in the uri and send it back.

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!


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.