Linux 软件免费装
Banner图

Zen Site Security

开发者 guramzhgamadze
更新时间 2026年7月21日 00:54
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

ssl https hsts security headers hardening

下载

1.13.1

详情介绍:

Zen Site Security migrates your WordPress site to HTTPS safely and keeps it there. One-click activation The plugin first verifies that a valid SSL certificate is actually installed for your domain — activation is blocked until one is found, so you can never lock yourself out by accident. Activation then: HTTP to HTTPS redirect, your way Mixed content fixer Insecure http:// references to your own site (including www/non-www variants and JSON-escaped URLs), plus common src, href, action, og:image, url() and srcset patterns, are rewritten to https:// just before the page is sent to the browser. Feeds, sitemaps and JSON responses are left untouched. An optional fixer for the WordPress admin is available too. Certificate monitoring The dashboard shows the certificate issuer, expiry date, and whether it covers your domain (wildcards included). When SSL is active and the certificate is about to expire (or already has), administrators see a warning. HTTP Strict Transport Security (HSTS) — opt-in Once your site runs reliably on https, you can send the Strict-Transport-Security header. Max-age starts at one day for safe testing; the preload-eligible configuration (1 year + includeSubDomains) requires explicit opt-in, because it is hard to undo. Security hardening — XSS, CSRF, and injection defense in depth (all opt-in) Built to pair with Zen Login & Authentication The two Zen plugins split the work cleanly: Zen Login & Authentication owns identity security (login forms, brute-force protection, 2FA, passkeys, user enumeration, XML-RPC), while this plugin owns transport and platform security (HTTPS, headers, cookies, file-system attack surface). When both are active, each control has exactly one owner — for example, this plugin's XML-RPC switch automatically defers to its sibling. Each plugin is fully standalone; neither requires the other. Web cache deception protection When a CDN or page cache sits in front of your site, an attacker can try to trick it into storing a victim's private page under a URL they control (for example by appending a fake .css to an account page). This plugin marks logged-in pages and authenticated REST responses as Cache-Control: no-store, private, and refuses to let a dynamic response be cached under a static-looking URL — the origin-side defense recommended by OWASP and PortSwigger. Honest scope: these features reduce attack surface and blunt common exploit paths. They are defense in depth — they cannot fix an injection, XSS or XXE vulnerability inside another plugin's or theme's code, and no plugin can. Server-side injection (SQL/NoSQL), XML external entity (XXE) and web LLM/prompt-injection flaws are fixed in the application code that has the bug; keep WordPress, plugins and themes updated, and use security headers here as a second layer. Locked out? Built-in emergency recovery If anything goes wrong, add one line to wp-config.php: define( 'ZENSS_DISABLE_SSL', true ); On the next visit the plugin reverts your site to http, disables the redirect, and removes its .htaccess rules.

安装:

  1. Install and activate the plugin.
  2. Go to Settings → HTTPS & SSL.
  3. If a valid certificate is detected, click Activate SSL & HTTPS redirect.
  4. Done — optionally enable HSTS later, once everything runs smoothly.

屏幕截图:

  • Choose how HTTP is sent to HTTPS — PHP 301 (works everywhere) or .htaccess — plus the mixed content fixer for the front end and, optionally, wp-admin.
  • HTTP Strict Transport Security (HSTS) with safe max-age tiers and preload safeguards, and a daily background check that emails you before your certificate expires.
  • Security headers — X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy and CSP — with optional server-level (.htaccess) delivery so static files are covered too. Sibling-aware when Zen Login & Authentication is active.
  • Strict CSP with per-request script nonces — Report-Only by default, with a violations panel and one-click allowlisting of the sources you recognise.
  • Attack-surface hardening: web cache deception protection, SameSite login cookies, disabled file editors, blocked PHP execution in uploads, sensitive-file and directory-listing rules, and version hiding.
  • Optional security.txt (RFC 9116), served on the fly at /.well-known/security.txt with your security contact, policy URL and preferred languages.
  • Built-in emergency recovery — a single wp-config.php constant reverts everything if a certificate problem ever locks you out.
  • At-a-glance security score on the WordPress Dashboard, with the TLS grade and a one-click "enable recommended protections" button.

升级注意事项:

1.13.1 Fixes Strict CSP (Report-Only) silently removing your enforcing CSP header. Recommended if you use the CSP features. 1.13.0 The plugin has been renamed to Zen Site Security (new slug: zen-site-security). 1.12.1 Corrects the plugin version shown on the settings page. 1.12.0 Adds an optional security.txt (RFC 9116) responsible-disclosure file served at /.well-known/security.txt. 1.11.0 The Dashboard widget now shows the TLS quality findings under the grade. 1.10.0 Adds a CSP report → allowlist workflow (one-click "Allow" for blocked sources) and shows the TLS grade on the Dashboard widget. 1.9.0 Adds a certificate quality (TLS) grade with specific findings and an SSL Labs deep-test link. 1.8.0 Adds a Dashboard security-score widget with one-click recommended setup, and Site Health integration. 1.7.0 Adds certificate-expiry email alerts via a daily background check, so an expiring certificate is caught even if nobody visits wp-admin. 1.6.0 Adds opt-in Strict CSP with script nonces (report-only by default) and fixes an .htaccess CSP that could emit upgrade-insecure-requests before SSL was active. 1.5.0 Optional server-level security headers (.htaccess) so static files are covered too — addresses scanners that flag missing headers on assets. 1.4.0 Settings moved to a top-level "Zen Site Security" menu with a refreshed admin design; translation template added. 1.3.0 Adds web cache deception protection (no-store on private responses) and opt-in CSP anti-XSS directives. Recommended if a CDN or page cache sits in front of your site. 1.2.0 Adds sensitive-file blocking, directory-listing hardening, X-Powered-By removal, and clean pairing with Zen Login & Authentication (one owner per control). 1.1.0 Fixes SSL activation not persisting, and adds the opt-in security hardening module (security headers, SameSite cookies, attack-surface reduction). Recommended for all users. 1.0.0 Initial release.

常见问题:

Does the plugin generate SSL certificates?

No. Your hosting provider installs the certificate (most offer free Let's Encrypt certificates in their control panel). This plugin detects the certificate, migrates WordPress to https, and keeps the site redirected and mixed-content free.

What happens when I deactivate the plugin?

The plugin removes its .htaccess rules, and the PHP redirect stops. Your site URLs stay on https on purpose — deactivating a plugin should never push a working https site back to http. Use "Revert site to HTTP" on the settings page first if you really want to go back.

I activated SSL and now I cannot reach my site. What do I do?

Add define( 'ZENSS_DISABLE_SSL', true ); to wp-config.php via FTP or your hosting file manager. The plugin reverts everything on the next request. Remove the line once your certificate is fixed.

Does it work behind a proxy or load balancer?

Yes. The .htaccess rules skip requests that already arrive with X-Forwarded-Proto: https, preventing redirect loops. If your proxy terminates SSL and WordPress does not detect it, your proxy setup needs the standard HTTP_X_FORWARDED_PROTO handling in wp-config.php.

Can this plugin stop SQL injection or XSS vulnerabilities in my other plugins?

No plugin can patch vulnerable code in another plugin — be wary of any that claims to. What this plugin does is defense in depth: security headers that make XSS harder to exploit, SameSite cookies that blunt CSRF, and attack-surface reduction (no file editors, no PHP execution in uploads, no XML-RPC) that turns many injection exploit paths into dead ends. Keeping WordPress, plugins and themes updated remains essential.

Is multisite supported?

Version 1.x targets single-site installs. Multisite support is planned.

Does this plugin work together with Zen Login & Authentication?

Yes — they are designed as a pair that fills each other's gaps. Zen Login & Authentication covers identity and login security; this plugin covers transport and platform security. When both are active, overlapping controls (like XML-RPC) are owned by exactly one of them, and site-wide security headers automatically stand down on pages where the sibling already sends them. Each plugin also works fine on its own.

更新日志:

1.13.1 1.13.0 1.12.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0