GD Security Headers icon
Security

GD Security Headers

Configure various security-related HTTP headers, including CSP, XSS, Referrer Policy and more.

Developer Milan Petrovic
81 Excellentmaintenance
  • 15 yearson WordPress.org
  • 16plugins
  • 10,900+installs in total
  • 4.3★avg. rating (112)
  • 88%of plugins updated this year
9/14 badges Profile →

Is GD Security Headers safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 6 months ago (version 1.9).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.0; the current release is 7.1. Needs PHP 7.4+.
  • Pass: Well rated Rated 4.0/5 by 8 users on WordPress.org.
  • Pass: Widely used Active on 1,000+ sites.

Check every plugin on your site with the free WordPress plugin checker →

Based on WordPress.org data, checked Nov 19, 2026. Always keep plugins updated and test changes on a staging site.

Overview

GD Security Headers describes itself as: “Configure various security-related HTTP headers, including CSP, XSS, Referrer Policy and more.”

It is active on 1,000+ WordPress sites and rated 4.0 out of 5 by 8 users on WordPress.org. Developers can extend it through 23 actions and 19 filters, listed below.

We haven't published a hands-on review of GD Security Headers yet. Want one, or need help with it? Send us a request.

How to install GD Security Headers

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “GD Security Headers” and pick the one by Milan Petrovic.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install gd-security-headers --activate

Requirements: WordPress 5.5+ · PHP 7.4+ · tested up to WordPress 7.0.9

Hooks & customisation

GD Security Headers 1.9 fires 23 actions and 19 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

gd-security-headers — top hooks
// Filter in d4plib/plugin/d4p.settings.php
apply_filters( "{$this->base}_{$this->scope}_settings_get", $exit, $name, $group );

// Action in d4plib/plugin/d4p.settings.php
do_action( "{$this->base}_{$this->scope}_settings_init" );

// Action in d4plib/plugin/d4p.settings.php
do_action( "{$this->base}_{$this->scope}_settings_loaded" );

// Action in d4plib/plugin/d4p.settings.php
do_action( "{$this->base}_settings_init" );

// Action in d4plib/plugin/d4p.settings.php
do_action( "{$this->base}_settings_loaded" );

// Action in d4plib/plugin/d4p.admin-basic.php
do_action( "{$this->plugin_prefix}_admin_help_tabs", $this );

Browse all 42 hooks with examples →

GD Security Headers: frequently asked questions

Is GD Security Headers free?

Yes. GD Security Headers is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is GD Security Headers safe to use?

GD Security Headers is actively maintained: the latest version was released 6 months ago. Users rate it 4.0 out of 5 from 8 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does GD Security Headers work with WordPress 7.1?

Very likely. It is tested up to WordPress 7.0, one release behind 7.1; minor releases rarely break plugins, but test updates on a staging site. It requires WordPress 5.5 or later and PHP 7.4 or later.

How many websites use GD Security Headers?

GD Security Headers is active on 1,000+ WordPress sites, according to WordPress.org. It is currently at version 1.9, last updated on May 12, 2026.

What are the best alternatives to GD Security Headers?

Plugins that do a similar job and are actively maintained include Headers Security Advanced & HSTS WP (90,000+ installs).

Can I customise GD Security Headers without editing its code?

Yes. GD Security Headers 1.9 fires 23 actions and 19 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 42 hooks with examples.

Done for you

Need GD Security Headers to do more?

Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.

Custom hook snippet

from $49

A small, update-safe change built on the plugin’s own hooks.

  • Code written against the plugin’s actions and filters
  • Tested on a staging copy of your site
  • Install instructions included

Typical turnaround: 2–3 business days

Choose this

Bug or conflict fix

from $79

Errors, broken layouts or two plugins that don’t get along.

  • Find the cause on a staging copy
  • Fix without breaking updates
  • Explain what was wrong

Typical turnaround: 1–3 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need GD Security Headers customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Milan Petrovic. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.

More plugins by Milan Petrovic

All 16 →

Implement attachment upload to the topics and replies in bbPress plugin through a media library and add additional forum-based controls.

6,000+ installs Updated 1 week ago 8 hooks

Adds different expansions and tools to the bbPress plugin powered forums: BBCode support, signatures, various tweaks, custom views, quote...

1,000+ installs Updated 6 months ago 11 hooks

Powerful, highly customizable and versatile ratings plugin to allow your users to vote for anything you want.

1,000+ installs Updated 2 months ago 386 hooks
Not updated in 1+ year

Intercept emails sent with wp_mail() into flexible mail queue for sending emails, convert plain text emails to HTML, email log,…

700+ installs Updated 2 years ago 73 hooks

Alternatives in Security

See all →
Reviewed

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Updated 3 months ago 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs Updated 2 weeks ago 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs Updated 4 weeks ago 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs Updated 5 days ago 7 hooks