Title: Beplus Security Headers &amp; Script Auditor
Author: rimbeplus
Published: <strong>2026 年 8 月 19 日</strong>
Last modified: 2026 年 8 月 19 日

---

搜索插件

![](https://ps.w.org/beplus-security-headers-script-auditor/assets/banner-772x250.
png?rev=3654344)

![](https://ps.w.org/beplus-security-headers-script-auditor/assets/icon-256x256.
png?rev=3654344)

# Beplus Security Headers & Script Auditor

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

[下载](https://downloads.wordpress.org/plugin/beplus-security-headers-script-auditor.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/beplus-security-headers-script-auditor/)

## 描述

Beplus Security Headers & Script Auditor gives WordPress site owners three things
in one screen:

 1. **Security header toggles** — enable X-Frame-Options, X-Content-Type-Options, Referrer-
    Policy, Strict-Transport-Security, Permissions-Policy, Content-Security-Policy (
    with an optional report-only mode), and the legacy X-XSS-Protection header, each
    with sensible defaults.
 2. **A scanner** — fetches your homepage, or optionally your whole site (up to 200
    of your most recently published posts/pages), and lists every external script, 
    stylesheet, image, iframe, and form target it finds, plus a count of inline scripts/
    styles.
 3. **Recommendations you control** — every finding is listed as a checkbox row; uncheck
    anything you don’t want, and the Content-Security-Policy preview updates live. 
    Apply the checked rows to the CSP field with one click, review it, then press Save.
    Nothing is ever sent automatically.

There’s also a repeatable table for adding any other custom response header your
site needs.

#### Why use this plugin

 * No external service calls, tracking, or phone-home behaviour — the scan only 
   requests pages on your own site.
 * Every setting is sanitized on save, and header values are stripped of line breaks
   to prevent HTTP header injection.
 * Sensible, conservative defaults: only X-Frame-Options, X-Content-Type-Options,
   and Referrer-Policy are enabled out of the box. HSTS, Permissions-Policy, CSP,
   and X-XSS-Protection are opt-in since they can affect how your site behaves and
   should be reviewed first.

## 屏幕截图

[⌊The Headers tab, where each security header can be toggled and configured.⌉⌊The
Headers tab, where each security header can be toggled and configured.⌉[

The Headers tab, where each security header can be toggled and configured.

[⌊The Scanner tab, showing detected external resources as a checklist and a live
Content-Security-Policy preview.⌉⌊The Scanner tab, showing detected external resources
as a checklist and a live Content-Security-Policy preview.⌉[

The Scanner tab, showing detected external resources as a checklist and a live Content-
Security-Policy preview.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/beplus-security-headers-script-
    auditor` directory, or install the plugin through the WordPress plugins screen 
    directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to the “Security Headers” menu item (in the main admin sidebar) to review the
    default header configuration.
 4. Open the Scanner tab and click “Run Scan” (optionally ticking “Scan entire site”
    first) to see what external resources your site loads, uncheck anything you don’t
    want, then apply the checked rows to the Content-Security-Policy field.
 5. Click “Save Changes” to apply your configuration.

## 常见问题

### Will this break my site if I enable everything at once?

It can, especially Content-Security-Policy. Start with the scanner recommendations,
use “Report-only mode” for CSP first to observe without blocking anything, and only
switch to enforcing mode once you’ve confirmed the policy covers everything your
site actually loads.

### Does the scanner send my data anywhere?

No. It performs normal HTTP requests from your own server to pages on your own site,
using the built-in WordPress HTTP API. Nothing is sent to any third party.

### Does this replace a full security audit?

No. Even the whole-site option only scans your homepage plus your most recently 
published posts/pages (capped at 200) and is meant as a starting point for building
a Content-Security-Policy, not a substitute for a complete security review of your
site.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Beplus Security Headers & Script Auditor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ rimbeplus ](https://profiles.wordpress.org/rimbeplus/)

[帮助将「Beplus Security Headers & Script Auditor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/beplus-security-headers-script-auditor)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release: security header toggles, homepage/whole-site scanner with a 
   pick-and-choose CSP checklist, and custom header repeater.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/beplus-security-headers-script-auditor/)
 * 标签
 * [content security policy](https://cn.wordpress.org/plugins/tags/content-security-policy/)
   [csp](https://cn.wordpress.org/plugins/tags/csp/)[headers](https://cn.wordpress.org/plugins/tags/headers/)
   [http-headers](https://cn.wordpress.org/plugins/tags/http-headers/)[security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/beplus-security-headers-script-auditor/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/beplus-security-headers-script-auditor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/beplus-security-headers-script-auditor/reviews/)

## 贡献者

 *   [ rimbeplus ](https://profiles.wordpress.org/rimbeplus/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/beplus-security-headers-script-auditor/)