| 开发者 | gmcfuerte |
|---|---|
| 更新时间 | 2026年10月15日 17:25 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
gmcfuerte-security-headers folder to /wp-content/plugins/, or install the ZIP from Plugins -> Add New -> Upload Plugin.The defaults suit most sites, with two points to check:
Headers are added by PHP. A page cache that serves stored pages without running PHP, or a CDN, may drop them. Some headers may also be left to your .htaccess file (the settings page lists them): if your server ignores the .htaccess file or lacks mod_headers, they are not sent. While the Pro edition is active this plugin sends nothing, and the Pro sends headers only with a valid licence.
Two layers set it, for example the server configuration and a plugin. This plugin never adds a header that is already present in PHP or declared in your .htaccess file, but it cannot see headers that the server or a proxy adds on its own. Keep one source.
Only when every page and file of your site works over HTTPS. Browsers that receive HSTS refuse plain HTTP for your domain for the whole max-age, and turning the setting off does not undo that. Start with 5 minutes, then raise it.
No. A Content-Security-Policy has to be tuned to the scripts and services each site uses. The self-check tells you whether your site sends one.