WP Manifestindependent plugin directory
manifest / security / jco-limiter

JCOre Limiter Bitbucket releases

A rate limiting plugin. Adapted from: https://github.com/cedaro/wprestcop

by JCO Digital · bitbucket.org/jcodigital/jco-limiter · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://bitbucket.org/jcodigital/jco-limiter/get/master.zip

Readme

JCO Rate Limiter

This is a plugin for restricting access to a/many WP REST API Endpoint.

Example for enabling rate limiting.

register_rest_route(
        'v1/rate-limited',
        '/rate-limited',
        array(
            'methods'             => 'GET',
            'callback'            => 'rate_limit_me',
            'permission_callback' => '__return_true',
            'rate_limiter'        => array(
                'uses'     => 5,
                'interval' => 120,
            ),
        )
    );

Adding the rate_limiter array will enable ratelimiting.

Read the full README on Bitbucket →

Releases

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.