Cookies and Content Security Policy icon
Analytics & Tracking

Cookies and Content Security Policy

Be fully GDPR and CCPA compliant through Content Security Policy. Blocks cookies and unwanted external content.

Developer Johan Jonk Stenström
30 Needs attentionmaintenance
  • 17 yearson WordPress.org
  • 10plugins
  • 12,940+installs in total
  • 4.9★avg. rating (78)
  • 20%of plugins updated this year
6/14 badges Profile →

Is Cookies and Content Security Policy safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 2 weeks ago (version 2.42).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.1; the current release is 7.1. Needs PHP 7.4+.
  • Pass: Well rated Rated 4.9/5 by 67 users on WordPress.org.
  • Pass: Widely used Active on 10,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

Cookies and Content Security Policy describes itself as: “Be fully GDPR and CCPA compliant through Content Security Policy. Blocks cookies and unwanted external content.”

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

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

How to install Cookies and Content Security Policy

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Cookies and Content Security Policy” and pick the one by Johan Jonk Stenström.
  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 cookies-and-content-security-policy --activate

Requirements: WordPress 5.0+ · PHP 7.4+ · tested up to WordPress 7.1.5

Hooks & customisation

Cookies and Content Security Policy 2.42 fires 1 actions and 1 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

cookies-and-content-security-policy — top hooks
// Filter in inc/plugin-compability.php
apply_filters( 'active_plugins', get_option( 'active_plugins' ) );

// Action in inc/plugin-compability.php
do_action( 'wpsc_add_cookie', 'cookies_and_content_security_policy' );

Browse all 2 hooks with examples →

Cookies and Content Security Policy: frequently asked questions

Is Cookies and Content Security Policy free?

Yes. Cookies and Content Security Policy 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 Cookies and Content Security Policy safe to use?

Cookies and Content Security Policy is actively maintained: the latest version was released 2 weeks ago. Users rate it 4.9 out of 5 from 67 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Cookies and Content Security Policy work with WordPress 7.1?

Yes. Cookies and Content Security Policy is tested up to WordPress 7.1, the current release. It requires WordPress 5.0 or later and PHP 7.4 or later.

How many websites use Cookies and Content Security Policy?

Cookies and Content Security Policy is active on 10,000+ WordPress sites, according to WordPress.org. It is currently at version 2.42, last updated on November 4, 2026.

What are the best alternatives to Cookies and Content Security Policy?

Plugins that do a similar job and are actively maintained include WPConsent (200,000+ installs), iubenda (200,000+ installs), SureCookie (80,000+ installs).

Can I customise Cookies and Content Security Policy without editing its code?

Yes. Cookies and Content Security Policy 2.42 fires 1 actions and 1 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 2 hooks with examples.

Done for you

Need Cookies and Content Security Policy 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 Cookies and Content Security Policy 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 Johan Jonk Stenström. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.

More plugins by Johan Jonk Stenström

All 10 →
Not updated in 2+ years

Finally get rid of that pesty fullscreen mode that you need to toggle every time you use a new device…

300+ installs Updated 3 years ago
Not updated in 2+ years

Finally get rid of that welcome message that's showing up even if you've been using Gutenberg for years!

200+ installs Updated 3 years ago
Not updated in 2+ years

Lists categories, author pages and archives with thumbnails. Use shortcode [categorythumbnaillist 1] where 1 is the category id.

200+ installs Updated 3 years ago

Alternatives in Analytics & Tracking

See all →

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful…

5+ million installs Updated 5 days ago 91 hooks
Reviewed

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can grow…

2+ million installs Updated 2 months ago 186 hooks
Reviewed
CookieYes icon

CookieYes

3,239

Google-certified CMP: cookie banner, cookie notice and cookie consent for GDPR/CCPA compliance, with cookie blocker, cookie scanner and consent log.

1+ million installs Updated 1 week ago 82 hooks

Publish your cookie banner or notice in minutes. Automatically scan cookies, and create policies to align with GDPR, CCPA, and…

1+ million installs Updated 2 weeks ago 184 hooks