.. _WP_FAIL2BAN_BLOCK_USER_ENUMERATION: .. role:: php(code) :language: php WP_FAIL2BAN_BLOCK_USER_ENUMERATION ---------------------------------- .. rubric:: Block user enumeration. .. include:: default-disabled.rst .. versionadded:: 2.1.0 .. versionchanged:: 4.0.0 Now also blocks enumeration via the REST API. ---- .. code-block:: php /** * Block user enumeration. */ define('WP_FAIL2BAN_BLOCK_USER_ENUMERATION', true); .. include:: use-wp-config.rst .. warning:: If your theme has Author profile pages (e.g. TwentyTwenty) you will need to :ref:`block username logins ` instead. .. rubric:: History Based on a suggestion from *@geeklol* and a plugin by *@ROIBOT*. .. seealso:: * :ref:`WP_FAIL2BAN_BLOCK_USERNAME_LOGIN`