Configure various security-related HTTP headers, including CSP, XSS, Referrer Policy and more.
As of April 2026, GD Security Headers is a WordPress csp plugin with 1.0K+ active installations and a 4/5 rating from 8 reviews. It has been downloaded 30K+ times in total. Requires WordPress 5.5+ and PHP 7.4+. Available on WordPress.org since 2019. Last updated 1 year ago — may have compatibility concerns. Download volume is stable this week. Top alternative: Headers Security Advanced & HSTS WP.
Configure various security-related HTTP headers, including Content Security Policy, Feature Policy, Referrer Policy and more. For CSP and XSS plugin supports report logging with 2 additional database tables to store reports from browsers.
The plugin has support for the following HTTP headers:
For CSP, the plugin allows you to set rules for all currently supported directives, additional settings including setting the policy in Report or Live mode. The plugin also includes special extensions that can automatically fill CSP rules for popular…
It’s the best plug-in for setting security headers that I found so far. Easy set-up, good explanations.
But what really stands out is the local reporting feature!
Thank you very much!
Easy to install and relatively easy to configure.
I only want to set CSP rules and it lets me do that easily, having the shortcuts for common rules such as Google Analytics etc is useful.
The report-only features is clear and easy to use when starting to add rules and you need to gather a list of them.
If had had one feature request it would be for the plugin to show an estimated header size.. I sometimes trip header size limits on a server when I need to add a lot of rules. If it coudl detect the server limit and warn if getting close – that’d be nice.
All in all good plugin. Really dont know why some people only gave it 1 star, I can only assume they made mistakes configuring it.
A+ on headers scan, thank you for your work 🙂
Thank you!
There are a lot mistakes in the generated Content-Security-Policy statement. It fails to insert the blob and data directives. It adds a semicolon and double quote at the end of the line that shouldn’t be there.
The only thing this plugin is really good for is the report page.
| WordPress | 5.5+ requiredTested up to 6.6.5 |
| PHP | 7.4+ required |
…and 3 more changes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.