Title: Pinny’s REST Lock – Block REST User Enumeration
Author: Pinny Fried
Published: <strong>25 de enero de 2026</strong>
Last modified: 8 de octubre de 2026

---

Buscar plugins

![](https://ps.w.org/pinnys-rest-lock/assets/banner-772x250.png?rev=3479456)

![](https://ps.w.org/pinnys-rest-lock/assets/icon-256x256.png?rev=3479468)

# Pinny’s REST Lock – Block REST User Enumeration

 Por [Pinny Fried](https://profiles.wordpress.org/realpinny/)

[Descargar](https://downloads.wordpress.org/plugin/pinnys-rest-lock.1.1.0.zip)

 * [Detalles](https://es.wordpress.org/plugins/pinnys-rest-lock/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/pinnys-rest-lock/#reviews)
 * [Desarrollo](https://es.wordpress.org/plugins/pinnys-rest-lock/#developers)

 [Soporte](https://wordpress.org/support/plugin/pinnys-rest-lock/)

## Descripción

**Blocks public REST API user enumeration while preserving full WordPress functionality.**

**Pinny’s REST Lock** is an ultra-lightweight security plugin that locks down WordPress
REST API user endpoints **without breaking your site**.

It is designed to fix one of the most common and overlooked WordPress security issues—**
public user enumeration via the REST API** — using the correct, core-aligned approach.

### 🚨 Why This Plugin Is Necessary

By default, WordPress publicly exposes REST API endpoints such as:

    ```
    /wp-json/wp/v2/users
    ```

On public sites, these endpoints can be accessed without authentication and are 
routinely used as the **first step in real-world attacks**.

This is where attackers start.

Public access to REST user endpoints allows attackers to:

 * Enumerate valid usernames
 * Identify administrator and privileged accounts
 * Eliminate guesswork before brute-force attacks
 * Chain enumeration with login abuse and password reset attacks

This is not theoretical. User enumeration is a **baseline reconnaissance technique**
used by bots and human attackers alike.

Blocking public access to REST user endpoints should be considered **required security
hygiene for every WordPress site**.

### ⚠️ Common REST Protection Pitfalls

Securing REST user endpoints requires precision. Broad or poorly timed restrictions
often introduce serious side effects.

Common issues include:

 * **Blocking all users**, including administrators, which breaks authenticated 
   workflows
 * **Disabling the REST API entirely**, causing the block editor, WooCommerce, and
   modern plugins to fail
 * **Applying restrictions before authentication**, preventing WordPress from distinguishing
   public and authorized requests
 * **Allowing low-privilege roles**, such as subscribers, to retain access — leaving
   user enumeration possible

Effective protection must be narrowly scoped, permission-aware, and aligned with
WordPress core behavior.

### ✅ How Pinny’s REST Lock Works

Pinny’s REST Lock takes a **surgical, WordPress-native approach**:

 * Targets **only** REST API user endpoints
 * Runs **after WordPress authentication**
 * Allows access **only** to users with appropriate permissions
 * Returns a proper `403 Forbidden` response to unauthorized requests

What this means:

 * Administrators continue to work normally
 * The REST API remains fully functional
 * Gutenberg, WooCommerce, and REST-based plugins are unaffected
 * Only public user enumeration is blocked

This follows WordPress core’s intended permission model.

### 🚀 Ultra-Lightweight by Design

Pinny’s REST Lock is intentionally minimal:

 * **~1.3 KB uncompressed**
 * Single-file plugin
 * No settings page
 * No database tables
 * No logs
 * No tracking
 * No ads
 * No performance impact

It activates, applies the protection, and gets out of the way.

### 🛡️ A Required Fix for Modern WordPress Sites

If your site is public, your REST user endpoints should not be.

Pinny’s REST Lock closes one of the most common entry points attackers look for —
without breaking WordPress, without blocking admins, and without adding bloat.

Install it. Activate it. And remove an entire class of attacks from your site.

## Reseñas

No hay valoraciones para este plugin.

## Colaboradores y desarrolladores

«Pinny’s REST Lock – Block REST User Enumeration» es un software de código abierto.
Las siguientes personas han colaborado con este plugin.

Colaboradores

 *   [ Pinny Fried ](https://profiles.wordpress.org/realpinny/)

[Traduce «Pinny’s REST Lock – Block REST User Enumeration» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/pinnys-rest-lock)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/pinnys-rest-lock/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/pinnys-rest-lock/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/pinnys-rest-lock/)
por [RSS](https://plugins.trac.wordpress.org/log/pinnys-rest-lock/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.1.0

 * Security: user endpoint check is now case-insensitive, closing a bypass via mixed-
   case routes (e.g. /wp/v2/Users).
 * Fix: Editors, Authors and Contributors can use the post editor author selector
   again. Logged-out visitors and Subscribers remain blocked.

#### 1.0.0

 * Initial release

## Meta

 *  Versión **1.1.0**
 *  Última actualización **hace 3 días**
 *  Instalaciones activas **30+**
 *  Versión de WordPress ** 5.0 o superior **
 *  Probado hasta **7.1.3**
 *  Versión de PHP ** 7.0 o superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/pinnys-rest-lock/)
 * Etiquetas:
 * [enumeration](https://es.wordpress.org/plugins/tags/enumeration/)[no-bloat](https://es.wordpress.org/plugins/tags/no-bloat/)
   [rest](https://es.wordpress.org/plugins/tags/rest/)[security](https://es.wordpress.org/plugins/tags/security/)
   [users](https://es.wordpress.org/plugins/tags/users/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/pinnys-rest-lock/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

[Tu valoración](https://wordpress.org/support/plugin/pinnys-rest-lock/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/pinnys-rest-lock/reviews/)

## Colaboradores

 *   [ Pinny Fried ](https://profiles.wordpress.org/realpinny/)

## Soporte

Problemas resueltos en los últimos dos meses:

     1 de 1

 [Ver el foro de soporte](https://wordpress.org/support/plugin/pinnys-rest-lock/)