WP_FAIL2BAN_HTTP_HOST

Override HTTP host detection.

Default setting: disabled

Added in version 3.0.0.


Forces WPf2b to use a specific hostname instead of the detected HTTP host. This can be useful in multisite configurations or when the detected host doesn’t match the expected value.

Example: Set specific hostname
/**
 * Override HTTP host detection
 */
define('WP_FAIL2BAN_HTTP_HOST', 'example.com');

Note

This affects logging only; it does not change WordPress’s behavior.