Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whyisjake/host-header
https://github.com/whyisjake/host-header
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/whyisjake/host-header
- Owner: whyisjake
- License: gpl-2.0
- Created: 2020-04-18T00:07:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-18T00:47:52.000Z (almost 5 years ago)
- Last Synced: 2024-11-09T03:52:26.437Z (3 months ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
=== Plugin Name ===
Contributors: whyisjake
Donate link: https://jakespurlock.com
Tags: security, hosting
Requires at least: 1.5
Tested up to: 5.5
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.htmlAdd a Host-Header to track down hosting partners in helping combat web spam.
== Description ==
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;
} );
```== Installation ==
This section describes how to install the plugin and get it working.
e.g.
1. Upload `/host-header/` plugin to the `/wp-content/plugins/` directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Or, search for the plugin in the plugin repo.
1. There is no step 4.== Changelog ==
= 1.0.0 =
* Let's kick this off.