Welcome! Log In Create A New Profile

Advanced

Re: Soft lock for Basic Auth

Maxim Dounin
August 31, 2012 01:38PM
Hello!

On Tue, Aug 28, 2012 at 08:13:28PM +0530, Quintin Par wrote:

> Hi all,
>
> Is it possible to apply a soft lock timeout on invalid password attempts
> for
>
>
>
> auth_basic "Login";
>
> auth_basic_user_file /etc/.htpasswd;

As far as I understand the question, something like this should
work:

error_page 401 /401.html;

location = /401.html {
delay 1s;
}

Where the "delay" directive is added by a trivial module from [1].
(It may be equally done e.g. with embedded perl, or with
limit_req, but it's usually a good idea to keep things simple.)

[1] http://mdounin.ru/hg/ngx_http_delay_module

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Soft lock for Basic Auth

Quintin Par August 28, 2012 10:44AM

Re: Soft lock for Basic Auth

Maxim Dounin August 31, 2012 01:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready