PDA

View Full Version : want to make available a file for download to only users with a correct password


solarwind
12-06-2005, 11:37 PM
i have a web server with cgi support /perl

i want to make a file available to download only if the viewer enters the correct password

but the file can not be accessable to anyone else but the person who enters the correct password, and i dont want the file to be accessed if they just copy and paste the url to the file

FishMonger
12-07-2005, 12:22 AM
Do you have access to modify apache's httpd.conf file?
http://httpd.apache.org/docs/1.3/howto/auth.html

If not, use htaccess file.
http://httpd.apache.org/docs/1.3/howto/htaccess.html