Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Restricting Download Access with CGI::Session

by scorpio17 (Canon)
on Sep 01, 2007 at 15:28 UTC ( [id://636523]=note: print w/replies, xml ) Need Help??


in reply to Restricting Download Access with CGI::Session

You might consider using CGI::Application::Plugin::Stream. This will help you stream the files.

Also, if you use CGI::Application::Plugin::Authorization and CGI::Application::Plugin::Authentication, you can easily control access to the files.

For example, you can have multiple groups, each with different levels of access. This would let you have free downloads, downloads for "basic" customers, and different downloads for "premium" customers. Your database will need a table pairing up user id with access level. If someone tries to illegally access a file that they don't have access to, they'll get a "forbidden" error, etc.

  • Comment on Re: Restricting Download Access with CGI::Session

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://636523]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found