WP Manifestindependent plugin directory
manifest / security / wprestcop

WP REST Cop

Manage access to the WP REST API with rate limits and IP-based rules.

by Cedaro · github.com/cedaro/wprestcop · website

74stars
169composer installs
11forks

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://github.com/cedaro/wprestcop/archive/refs/heads/develop.zip

Also on Packagist as cedaro/wprestcop:

composer require cedaro/wprestcop

From the readme

WP REST Cop Manage access to the WP REST API with rate limits and IP-based rules. Requires: WP 4.4+, PHP 5.4+ Rate Limits Rate limits allow for configuring the number of requests a client can make within a certain interval. The default in WP Rest Cop is 500 requests per hour. The rate limit functionality requires a persistent object cache. Headers A few headers are sent with every request so clients can keep track of their current limit: Header Description X-RateLimit-Limit Requests allowed per interval. X-RateLimit-Remaining Remaining requests allowed in the current interval. X-RateLimit-Reset Seconds until the limit is reset. If client has reached their limit, an additional header will be sent. Header Description Retry-After Seconds until the limit is reset Clients may send a HEAD request to view their current limit without ticking the meter. Configuring Settings Confi

Read the full README on GitHub →