Title: HeaderShield
Author: Vishwa
Published: <strong>2026 年 3 月 20 日</strong>
Last modified: 2026 年 3 月 20 日

---

搜索插件

![](https://ps.w.org/headershield/assets/banner-772x250.png?rev=3487110)

![](https://ps.w.org/headershield/assets/icon.svg?rev=3487110)

# HeaderShield

 作者：[Vishwa](https://profiles.wordpress.org/sbvi1122/)

[下载](https://downloads.wordpress.org/plugin/headershield.1.0.14.zip)

[实时预览](https://cn.wordpress.org/plugins/headershield/?preview=1)

 * [详情](https://cn.wordpress.org/plugins/headershield/#description)
 * [评价](https://cn.wordpress.org/plugins/headershield/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/headershield/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/headershield/#developers)

 [支持](https://wordpress.org/support/plugin/headershield/)

## 描述

HeaderShield adds a conservative set of security headers that improve browser protection
without breaking most sites. It also provides optional strict cross-origin protections
for sites that are ready for them.

Default headers include:

 * X-Frame-Options
 * X-Content-Type-Options
 * X-XSS-Protection (legacy)
 * Referrer-Policy
 * Permissions-Policy
 * Content-Security-Policy (upgrade-insecure-requests)
 * Strict-Transport-Security (HTTPS only)

Strict Mode can additionally enable COEP, COOP, and CORP for stronger isolation,
but may break third‑party scripts or embeds. Use with care and test on staging first.

#### Source code for third-party assets

The admin UI uses SlimSelect for the multi-select dropdown. Human-readable source
is included in the plugin:

 * JavaScript: `assets/js/slimselect.js` (minified build: `assets/js/slimselect.
   min.js`)
 * CSS: `assets/css/slimselect.css` (minified build: `assets/css/slimselect.min.
   css`)

Upstream project: https://github.com/brianvoe/slim-select (MIT). This plugin does
not use a custom build process; the included files are from the published release.

## 安装

 1. Upload the `headershield` plugin folder to `/wp-content/plugins/`, or install via**
    Plugins  Add New** and search for HeaderShield.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Security Headers** in the admin sidebar to configure settings.

#### Optional: use as must-use plugin

You can also copy the main plugin file into `/wp-content/mu-plugins/` so it is always
active and cannot be disabled from the Plugins screen.

## 常见问题

### Will this break my site?

The default headers are conservative and should be safe for most sites. Strict Mode
may break embeds, analytics, fonts, or CDNs, so test on staging first.

### Does this affect SEO?

No. These headers improve browser security and do not affect SEO.

## 评价

此插件暂无评价。

## 贡献者及开发者

「HeaderShield」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Vishwa ](https://profiles.wordpress.org/sbvi1122/)
 *   [ vishvega ](https://profiles.wordpress.org/vishvega/)

[帮助将「HeaderShield」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/headershield)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/headershield/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/headershield/)，或通过[RSS](https://plugins.trac.wordpress.org/log/headershield/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/headershield/)。

## 更新日志

#### 1.0.14

 * Initial public release.

## 额外信息

 *  版本 **1.0.14**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/headershield/)
 * 标签
 * [csp](https://cn.wordpress.org/plugins/tags/csp/)[hardening](https://cn.wordpress.org/plugins/tags/hardening/)
   [headers](https://cn.wordpress.org/plugins/tags/headers/)[hsts](https://cn.wordpress.org/plugins/tags/hsts/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/headershield/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/headershield/reviews/)

## 贡献者

 *   [ Vishwa ](https://profiles.wordpress.org/sbvi1122/)
 *   [ vishvega ](https://profiles.wordpress.org/vishvega/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/headershield/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://wordpress.org/support/plugin/headershield/)