Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Restricting Download Access with CGI::Session

by f00li5h (Chaplain)
on Sep 01, 2007 at 13:46 UTC ( [id://636513]=note: print w/replies, xml ) Need Help??


in reply to Restricting Download Access with CGI::Session

You'd want to check the seession for a valid user, then binmode STDOUT send the headers with the correct content-type and print the contents of the file to STDOUT

You'll perhaps want to send a 403 or something of the sort for folks without valid sessions too.

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Log In?
Username:
Password:

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

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

    No recent polls found