how to do authentication before downloading a file in hiawatha
Hi,
I want to do authentication that user is valid or not by calling a C language cgi when a download request comes and if user is valid allow the downloading and if not then deny download request.
Please help, how can i achieve this.
Hugo Leisink
21 June 2012, 21:37
It's not something Hiawatha can do. What you need is a captcha image. Google for 'captcha' to see how it works.
Is it possible to use url tool kit option. Like when a download request comes just redirect it to cgi to do authentication and if authentication successful then allow the downloading. But problem is that how to get download url in cgi. Is there any environment variable.
Hugo Leisink
22 June 2012, 13:37
You can make users to authenticate themselves by setting the PasswordFile option for a certain directory (via the Directory{} config block or via a .hiawatha file). But this is valid for all downloads, both done by users and by automated scripts.
This topic has been closed.