Title: Header Junk Remover
Author: Joseph Brzezowski
Published: <strong>2025 年 9 月 4 日</strong>
Last modified: 2026 年 6 月 18 日

---

搜尋外掛

![](https://ps.w.org/junk-header-remover/assets/banner-772x250.png?rev=3357978)

![](https://ps.w.org/junk-header-remover/assets/icon-256x256.png?rev=3355992)

# Header Junk Remover

 由 [Joseph Brzezowski](https://profiles.wordpress.org/thedeafjoe/) 開發

[下載](https://downloads.wordpress.org/plugin/junk-header-remover.1.0.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/junk-header-remover/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/junk-header-remover/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/junk-header-remover/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/junk-header-remover/#developers)

 [技術支援](https://wordpress.org/support/plugin/junk-header-remover/)

## 外掛說明

Header Junk Remover is a lightweight, no-settings plugin that cleans up the `<head
>` section and headers of your WordPress site.

It removes outdated tags, redundant links, bloated scripts, and unnecessary headers
that WordPress adds by default. The result: cleaner source code, faster page loads,
less information leakage, and fewer HTTP requests.

**What gets removed (and why it matters):**

 * **RSD Link**
    remove_action(‘wp_head’, ‘rsd_link’); Used for Really Simple Discovery(
   old remote editing). Not needed anymore.
 * **WordPress Generator**
    remove_action(‘wp_head’, ‘wp_generator’); Hides your
   WP version. Avoids advertising it to bots/hackers.
 * **Feed Links**
    remove_action(‘wp_head’, ‘feed_links’, 2); remove_action(‘wp_head’,‘
   feed_links_extra’, 3); Removes auto-added RSS/Atom feed links. If you don’t use
   feeds, these are pointless.
 * **Relational Links (index, start, parent, adjacent posts)**
    remove_action(‘wp_head’,‘
   index_rel_link’); remove_action(‘wp_head’, ‘start_post_rel_link’, 10, 0); remove_action(‘
   wp_head’, ‘parent_post_rel_link’, 10, 0); remove_action(‘wp_head’, ‘adjacent_posts_rel_link’,
   10, 0); remove_action(‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0); Removes
   old “previous/next” link metadata almost no browsers or crawlers use.
 * **Windows Live Writer Manifest**
    remove_action(‘wp_head’, ‘wlwmanifest_link’);
   Dead tool support. Safe to remove.
 * **Shortlink Tags/Headers**
    remove_action(‘wp_head’, ‘wp_shortlink_wp_head’, 
   10, 0); remove_action(‘template_redirect’, ‘wp_shortlink_header’, 11); Shortlink
   system is obsolete. Removing reduces clutter.
 * **REST API Discovery Link**
    remove_action(‘wp_head’, ‘rest_output_link_wp_head’,
   10); REST API still works, but no longer broadcast in headers.
 * **oEmbed Discovery + Scripts**
    remove_action(‘wp_head’, ‘wp_oembed_add_discovery_links’,
   10); remove_action(‘wp_head’, ‘wp_oembed_add_host_js’); Prevents WordPress from
   advertising oEmbed endpoints and loading extra JS.
 * **Resource Hints (dns-prefetch, preconnect)**
    remove_action(‘wp_head’, ‘wp_resource_hints’,
   2); Stops WP from auto-inserting DNS hints you may not control.
 * **Emoji Scripts and Styles**
    remove_action(‘wp_head’, ‘print_emoji_detection_script’,
   7); remove_action(‘wp_print_styles’, ‘print_emoji_styles’); Removes redundant
   emoji JS/CSS. Browsers already handle emojis natively.
 * **Global Styles (Block Editor/Gutenberg)**
    remove_action(‘wp_head’, ‘wp_enqueue_global_styles’,
   1); Prevents WP from injecting default CSS that bloats your source.

**Extra Hardening:**

 * **Disable XML-RPC**
    add_filter(‘xmlrpc_enabled’, ‘__return_false’); Blocks XML-
   RPC protocol (commonly abused in brute force/DDoS attacks).
 * **Remove X-Pingback Header**
    add_filter(‘wp_headers’, function($headers) { unset(
   $headers[‘X-Pingback’]); return $headers; }); Stops WP from advertising its pingback
   URL.
 * **Turn off PHP Exposure (optional)**
    @ini_set(‘expose_php’, ‘off’); Prevents
   PHP version disclosure in server headers.

**Why this matters:**

 * Less clutter in your `<head>`
 * Fewer HTTP requests and faster load times
 * Less information leakage for bots/hackers
 * Cleaner source code when you “View Source”
 * Safer defaults without touching your theme files

If you find this plugin useful, consider supporting my work:
 👉 [Buy Me a Coffee](https://buymeacoffee.com/avocadowebservices)

## 安裝方式

 1. Upload the plugin files to `/wp-content/plugins/header-junk-remover`, or install
    via the WordPress Plugins screen.
 2. Activate the plugin.
 3. Done — no settings required.

## 常見問題集

### Will this break my theme or plugins?

No. These removals are optional extras. Your site runs fine without them.

### Can I keep some of these features?

Yes. Open the plugin PHP file and comment out any `remove_action` or `add_filter`
line you want to keep.

### Does this affect RSS feeds?

It removes the auto-advertised feed links. If you need feeds, just comment those
lines out — feeds themselves still exist.

### How can I support this plugin?

If this plugin saves you time or helps clean up your site, you can support development
here:
 [https://buymeacoffee.com/avocadowebservices](https://buymeacoffee.com/avocadowebservices)

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Header Junk Remover〉的開發相關工作。

參與者

 *   [ Joseph Brzezowski ](https://profiles.wordpress.org/thedeafjoe/)

[將〈Header Junk Remover〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/junk-header-remover)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/junk-header-remover/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/junk-header-remover/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/junk-header-remover/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/junk-header-remover/)。

## 變更記錄

#### 1.0.3

 * Updated compatibility testing to WordPress 7.0.

#### 1.0.2

 * Added support/donate link (Buy Me a Coffee).
 * Documentation updated.

#### 1.0.1

 * Initial public release.
 * Removed generator, RSD link, WLW manifest, shortlink, REST API link, emoji scripts/
   styles, relational links, oEmbed, resource hints, global styles.
 * Added security hardening: disable XML-RPC, remove X-Pingback, disable PHP expose.

## 中繼資料

 *  版本 **1.0.3**
 *  最後更新 **2 週前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  語言
 * [English (US)](https://wordpress.org/plugins/junk-header-remover/)
 * 標籤:
 * [header](https://tw.wordpress.org/plugins/tags/header/)[junk](https://tw.wordpress.org/plugins/tags/junk/)
   [optimization](https://tw.wordpress.org/plugins/tags/optimization/)[performance](https://tw.wordpress.org/plugins/tags/performance/)
   [speed](https://tw.wordpress.org/plugins/tags/speed/)
 *  [進階檢視](https://tw.wordpress.org/plugins/junk-header-remover/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/junk-header-remover/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/junk-header-remover/reviews/)

## 參與者

 *   [ Joseph Brzezowski ](https://profiles.wordpress.org/thedeafjoe/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/junk-header-remover/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://buymeacoffee.com/avocadowebservices)