WordPress Host Headers

Add a Host-Header to track down hosting partners in helping combat web spam.

Author:Jake Spurlock (profile at wordpress.org)
WordPress version required:1.5
WordPress version tested:5.5.5
Plugin version:1.0.1
Added to WordPress repository:18-04-2020
Last updated:18-04-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/whyisjake/host-header
Total downloads:1 839
plugin download
Click to start download

This simple plugin that adds a “Host-Header” HTTP header where you can define your webhost. Web partners that scan for compromised websites can notify hosts more effectively to cleanup sites.

This plugin is super overkill. Adding a simple file with the following to your mu-plugins.php will have the same effect.

// custom-host-header.php
add_filter( 'wp_headers', function( $headers ) {
    $headers['Host-Header'] = 'YOUR HOST NAME HERE';
    return $headers;
} );

ChangeLog