WP Author Security


WP Author Security is a lightweight but powerful plugin to protect against user enumeration attacks on author pages and other places where valid user names can be obtained.

By default, WordPress will display some sensitive information on author pages.
The author page is typically called by requesting the URI https://yourdomain.tld/?author=<id> or with permalinks https://yourdomain.tld/author/<username>.
The page will include (depending on your theme) the full name (first and last name) as well as the username of the author which is used to log in to WordPress.

In some cases, it is not wanted to expose this information to the public. An attacker is able to brute force valid IDs or valid usernames. This information might be used for further attacks like social engineering attacks or log in brute force attacks with gathered usernames.
However, when using the plugin and you disable author pages completely it must be noted that you need to take care that your active theme will not display the author name itself on posts like “Posted by admin” or something like that. This is something the plugin will not handle (at the moment).

By using the extension, you are able to disable the author pages either completely or display them only when the author has at least one published post. When the page is disabled the default 404 error page of the active theme is displayed.

In addition, the plugin will also protect other locations which are commonly used by attackers to gather valid user names. These are:

  • The REST API for users which will list all users with published posts by default.
  • The log in page where different error messages will indicate whether an entered user name or mail address exists or not. The plugin will display a neutral error message independently whether the user exists or not.
  • The password forgotten function will also allow an attacker to check for the existence of a user. As for the log in page the plugin will display a neutral message even when the user does not exists.
  • Requesting the feed endpoint /feed of your blog will also allow others to see the username or display name of the author. The plugin will remove the name from the result list.
  • WordPress supports so-called oEmbeds. This is a technique to embed a reference to a post into another post. However, this reference will also contain the author name and a direct link to the profile page. The plugin will also remove the name and link here.
  • Since WordPress 5.5 a default sitemap can be reached via /wp-sitemap.xml. This sitemap will disclose the usernames of all authors. If this should not be disclosed you are able to disable this feature of WordPress.


  • Admin settings
  • 404 page when requesting author page by user ID.
  • Log in error message when the user name exists but a wrong password is entered.


  1. Install the plugin via the Dashboard Plugins -> Add new or upload the plugin’s folder ‘wp-author-security’ from the zip into your WordPress plugin folder wp-content/plugins/ (e.g. via ftp)
  2. Activate the plugin in the WordPress backend
  3. Customize the settings by navigating to Settings -> WP Author Security


3 Ottobre 2023
Very very good , thank youI searched a lot until I found this plugin.Friends, other plugins will lose SEO by changing the url, but this plugin is not like thatJust the publisher, don't forget to update so that we don't have a problem and don't need another plugin
Leggi la recensione di 1

Contributi e sviluppo

“WP Author Security” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


“WP Author Security” è stato tradotto in 4 lingue. Grazie ai traduttori per i loro contributi.

Traduci “WP Author Security” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • added basic statistics to the settings page
  • bugfix password forgotten protection


  • Bugfix error on login check


  • added protection for the wp-sitemap.xml author disclosure


  • added protection for the /feed endpoint
  • added protection for the oEmbed endpoint


  • updated documentation
  • bugfix wrong mail detection


  • added protection for log in and password forgotten page
  • added language support for de/en


  • added protection for REST API


  • initial release