[WordPress] 外掛分享: WordPress Host Headers

首頁外掛目錄 › WordPress Host Headers
全新外掛
安裝啟用
尚無評分
2160 天前
最後更新
問題解決
WordPress 1.5+ v1.0.1 上架:2020-04-17

內容簡介

這款簡單的外掛會新增一個 "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;
} );

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WordPress Host 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;
} );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon