Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

the httpd.conf is:

<Directory "/var/www/html">
        AuthName "Protected autons"
        AuthType Basic
        AuthUserFile /usr/local/gdnsplus_autons/sbin/apache.passwd
        require user test

Just the user of "test" can access the web site. Now, I want to add a function: If the user of "test" enter the wrong password after 5 times, the user of "test" must wait for 10 minutes ,then "test" can enter again.

How to solve it by apache? Thank you.

share|improve this question
This should be solved by the application implementing your login program, not apache itself. – Sudipta Chatterjee Jan 5 '13 at 9:27
Thank you."require user test" implement by apache. So, I want to do it by apache. – lxgeek Jan 5 '13 at 9:30
I would be implementing a login program much like Calvin suggested. Look at PHP / Perl / Python / Ruby scripts. That is what they are for. – Sam Jan 5 '13 at 10:21

basically you are password protecting a web server directory. following this should get you started:

share|improve this answer
Thank you,I have read it and do it in my httpd.conf. But, I need more function. Maybe I should implement it by PHP – lxgeek Jan 6 '13 at 1:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.