內容簡介
這款簡單的外掛會新增一個 "Host-Header" 的 HTTP 標頭,讓您可以定義您的網站主機名稱。針對掃描受攻擊網站的網站合作夥伴,可以更有效地通知主機清理網站。
這個外掛非常冗餘,只要在您的 "mu-plugins.php" 檔案中加入以下指令即可達到相同效果:
// custom-host-header.php
add_filter( 'wp_headers', function( $headers ) {
$headers['Host-Header'] = 'YOUR HOST NAME HERE';
return $headers;
} );
外掛標籤
開發者團隊
原文外掛簡介
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;
} );
