WordPress Host Headers

Created by: Jake Spurlock

Rating:
Downloaded: 1k times

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;
} );

Screenshots

    Categories

    Get New Themes & Resources