[WordPress] 外掛分享: Beplus Security Headers & Script Auditor

首頁 › 外掛目錄 › Beplus Security Headers & Script Auditor
WordPress 外掛 Beplus Security Headers & Script Auditor 的封面圖片
全新外掛
安裝啟用
—
尚無評分
43 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.1.0 上架:2026-08-18

內容簡介

Beplus Security Headers & Script Auditor 是一款專為 WordPress 網站擁有者設計的外掛,能夠輕鬆添加安全標頭和內容安全政策(Content-Security-Policy),同時不會破壞網站功能,提升網站的安全性。

【主要功能】
• 安全標頭切換功能
• 實時標頭檢查
• 外部腳本掃描器
• 自訂回應標頭表格
• CSP 違規報告功能

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Beplus Security Headers & Script Auditor」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Beplus Security Headers & Script Auditor gives WordPress site owners everything needed to add security headers — and a Content-Security-Policy — without breaking their site:

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. Headers are sent on your public pages and, optionally, on wp-admin, the login page and the REST API too.
A live header check — requests your site the way a visitor would and shows which headers actually arrive. If a page cache, CDN or server configuration drops or overrides a header, you’ll see it.
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, font, image, video/audio, iframe and form target it finds, plus inline scripts/styles. Well-known services such as Google Fonts, Google Analytics, Stripe and reCAPTCHA also get the extra origins they load at runtime, so the suggested policy doesn’t break them.
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 applied automatically.
CSP violation reports — in report-only mode, visitors’ browsers report what the policy would block to your own site. The CSP Reports tab lists each blocked resource with a one-click “Add to policy” button, so you can tighten your policy from real data before enforcing it.

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 scanner and header check only request pages on your own site, and CSP reports are sent by browsers to 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.

Privacy
When “Collect violation reports” is turned on, visitors’ browsers send Content-Security-Policy violation reports to a REST API endpoint on your own site (/wp-json/beplus-shsa/v1/csp-report). The plugin stores only the violated directive, the blocked origin or keyword (e.g. https://cdn.example.com or inline), the path of the page, a count and timestamps. IP addresses, user agents, query strings and full URLs are never stored. Reports are kept until you clear them or uninstall the plugin. This feature is off by default.

延伸相關外掛

文章
Filter
Mastodon