https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39109

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |In Discussion
           Assignee|[email protected] |[email protected]
                   |ity.org                     |

--- Comment #3 from David Cook <[email protected]> ---
Test plan:
1. vi /etc/koha/sites/kohadev/plack.psgi
2. Add the following to the /opac mount point (higher than
Koha::Middlware::CSRF but lower than HTTPExceptions) :
        enable "+Koha::Middleware::Throttle",
            debug => 1,
            interface => 'opac',
            paths => [ '^/opac-search', ],
            allow_list => [
                '192.168.1.0/24',
            ],
            request_threshold => 5, #Number of requests to trigger throttle
            last_n_minutes => 1, #Number of minutes to consider when
aggregating request counts
            cidr_block => 24, #CIDR mask to use for determing range IP address
belongs to (may only be 8, 16, 24, 32)
        ;
3. sudo koha-plack --restart kohadev
4. Do 6 requests to opac-search.pl within 1 minute and see the pretty "You've
been throttled" page.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to