LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Time limited password for apache web site directory (https://www.linuxquestions.org/questions/linux-server-73/time-limited-password-for-apache-web-site-directory-778426/)

Davno 12-28-2009 03:54 AM

Time limited password for apache web site directory
 
Hi,
Is there a way to (time limit password) a directory on a Apache website.
I would like to give like 1 or 2 hours access to specific directories. :)

bathory 12-28-2009 08:23 AM

You can use a cronjob that runs every 1-2 hours to change htpasswd, so users cannot login if they don't know the new password.
If this is not what you want, you might take a look at Apache::AuthCookie perl module.
Note that there are packages for the major distros, so you can resolve any dependencies problems you may have.

Regards


All times are GMT -5. The time now is 11:40 AM.