WP_FAIL2BAN_LOG_AUTH_REST_SUCCESS

Log successful REST API authentications.

Default setting: disabled


Controls whether successful REST API authentications are written to the syslog facility specified by WP_FAIL2BAN_AUTH_LOG. The message is REST authentication success for … at Info level. It matches wordpress-good.conf.

Disabled by default because REST clients commonly authenticate on every request, which can produce large numbers of success records.

This control does not affect form-login or XML-RPC success logging.

Example: Enable REST successful authentication logging
/**
 * Log successful REST API authentications.
 */
define('WP_FAIL2BAN_LOG_AUTH_REST_SUCCESS', true);

History

Added in version 6.3.0.