Linux 软件免费装
Banner图

Warder Cookie Consent - GDPR Cookie Banner

开发者 rhand
gbogdan
更新时间 2026年8月31日 10:03
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy gdpr cookie consent cookie banner consent management

下载

2.1.4 2.1.5 2.1.6 2.2.0

详情介绍:

Warder Cookie Consent puts a consent banner on your WordPress site and holds your analytics scripts until a visitor opts in. Everything runs from your own server: there is no account to create, no external service to call, and no paid tier. It is built on the open-source CookieConsent v3 library, and adds a WordPress settings screen, cookie defaults for WordPress and WooCommerce, and automatic blocking for scripts that would otherwise set cookies before consent. Why you might pick this one What it does What ships pre-configured Strictly Necessary, always on: cc_cookie, wordpress_logged_in_*, wordpress_sec_*, wordpress_test_cookie, wp-settings-*, wp_woocommerce_session_*, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, PHPSESSID. Performance and Analytics, off until accepted: Google Analytics (_ga*, _gid, _gat), Matomo (_pk_*, mtm_*) and SourceBuster (sbjs_*). What it does not do Stated plainly, so you can rule it out in thirty seconds rather than after installing: A note on compliance This plugin gives you the mechanism: blocking before consent, granular categories, a choice the visitor controls, and a way to revisit it. Whether your site is compliant depends on how you configure it and what your site actually loads. It is a tool, not legal advice. For developers Hold any script until a category is accepted: <script type="text/plain" data-category="analytics" src="..."></script> Or block a script that another plugin registered, by handle: add_filter( 'warder_blocked_scripts', function ( $scripts ) { $scripts['my-analytics-handle'] = 'analytics'; return $scripts; } );

安装:

  1. In WordPress go to Plugins > Add New, search for "Warder Cookie Consent", then Install and Activate. Or upload the plugin folder to /wp-content/plugins/ and activate it there.
  2. Open Settings > Warder Consent.
  3. Set your Privacy Policy URL. It ships as a placeholder, so this is the one setting you should not skip.
  4. Review the Performance and Analytics category and add any cookies your site sets that are not already listed.
  5. Mark any third-party scripts you embed yourself with data-category="analytics".
The banner appears straight away for visitors who have not yet made a choice. Nothing else is required.

屏幕截图:

  • Cookie consent banner frontend view
  • Cookie category management interface
  • Performance and analytics category, off by default for GDPR compliance
  • Regex cookie matching and adding custom categories

升级注意事项:

2.2.1 Fixes consent bleeding between subsites on a subdirectory multisite network — one subsite's accept/reject choice was being read as consent on every other subsite on the same domain. No effect on single-site installs. 2.2.0 Fixes a bug that stopped the consent banner from rendering at all on any site whose banner language was set to something other than English — if you use French, German, Spanish, Italian or Dutch, this release is the one that makes the banner work. Adds real translations for those five languages, and removes twelve debug console.log statements that ran on every page load. 2.1.6 Confirms compatibility with WordPress 7.1. No functional changes. 2.1.5 Fixes a visual regression when Astra Pro is active: the floating preferences toggle button was inheriting button padding from the theme, distorting its shape and hiding the icon. 2.1.4 Documentation only: adds listing screenshots and captions. No functional changes. 2.1.3 Build and documentation only: the compiled bundle now carries a source-link banner and the readme's Source Code section is more prominent. No functional changes. 2.1.2 Documentation-only release: adds a CONTRIBUTING.md and slims the README to user-facing docs. No functional changes. 2.1.1 Removes Slimstat from the default automatic script-blocking list (use the warder_blocked_scripts filter to add it back if needed). README updated to document WooCommerce cookie defaults and script-blocking examples. 2.1.0 Adds automatic script blocking for SourceBuster.js, WooCommerce order attribution, and Slimstat before consent is given. Necessary cookie defaults now include the full WordPress and WooCommerce session cookie set. The sbjs_* pattern moves to analytics — if you manually placed it under necessary, you can remove the duplicate. 2.0.2 Security and code-quality hardening: stronger input sanitization on settings save, nonce verification before delete actions, isset-guarded validation, and clearer source-code documentation. Recommended for all users. 2.0.1 Fixes three data-corruption bugs: (1) Strictly Necessary category losing its locked state after every save; (2) all cookies being silently saved as regex patterns due to a hidden-input value bug; (3) non-necessary categories appearing locked and pre-selected in the frontend consent modal. 2.0.0 Internal refactor only — plugin logic split into inc/ files for maintainability. Admin page title and Settings sidebar label updated to "Warder Cookie Consent" / "Warder Consent". No settings migration required, no behaviour changes. 1.5.2 Save All Settings now uses AJAX, so the page no longer jumps back to the top after saving. Add Cookie forms are no longer nested inside the main settings form, so the regex checkbox and the rest of the cookie inputs submit reliably. 1.5.1 Fixes Add Cookie form positioning so it appears directly below the category button, and fixes a regression where submitting that form silently failed (nested form was being discarded by the browser). 1.5.0 Adds Matomo cookie patterns to the default analytics category so new installs manage Matomo cookies out of the box. 1.4.2 WordPress.org compliance fixes: register_setting() uses array format with sanitize_callback, privacy_policy_url uses esc_url_raw(), and src/ ships in the build for human-readable source access. 1.4.1 Replaces the 10up/wpcs-action CI workflow with local PHPCS, adding strict i18n (text domain) and output escaping checks on pull requests. 1.4.0 Restores the category/cookie management buttons (add/remove category and cookie) that were not working, with nonce-protected handlers. Adds minimum WordPress/PHP version headers. 1.3.2 WordPress.org compliance fixes: inline script moved to wp_add_inline_script, CSS output sanitized, source code documentation added to readme. 1.3.0 Plugin renamed to Warder Cookie Consent; added languages/ directory for translations; updated text domain, function prefixes, and Composer package name. 1.2.1 Fixes composer.json license and support URLs; adds .gitattributes for Composer installs. 1.2.0 Adds a floating preferences toggle button so visitors can revisit their cookie choices at any time. 1.1.0 Adds "Enable Plugin" toggle; WordPress.org compliance (PHPCS, Plugin Check, readme.txt, workflows). 1.0.0 Initial release.

常见问题:

Does this make my site GDPR compliant?

No plugin can promise that. This one gives you the parts a consent flow needs — scripts held until consent, categories the visitor chooses individually, and a way to change that choice later. Compliance still depends on configuring it for what your site actually loads, and on the rest of your privacy practices.

Does it block Google Analytics before consent?

It clears Google Analytics cookies, and it will hold the GA script if that script carries data-category="analytics" or if you register its handle through the warder_blocked_scripts filter. If you load GA through another plugin, add that plugin's script handle to the filter — see the developer section above. Only WooCommerce order attribution and SourceBuster are blocked automatically.

Does it work with Google Tag Manager?

You can hold the GTM container itself the same way, with data-category on the snippet. The plugin does not emit Google Consent Mode v2 signals, so if your setup depends on those, this is not the right plugin for you.

Does the plugin send any data anywhere?

No. It makes no external HTTP requests at all. The consent script is served from your own domain, and the visitor's choice is stored in their browser in the cc_cookie cookie. Nothing is transmitted to us or to anyone else.

Does it keep a record of who consented?

Not on the server. The record lives in the visitor's own browser. If you need an auditable, exportable consent log stored in your database, use a plugin built for that.

Will it slow my site down?

The frontend is a single script, loaded deferred, about 18KB gzipped, plus a small inline stylesheet for the floating button. There are no external requests and no jQuery dependency.

Can I use it in a language other than English?

Yes. Pick English, Dutch, German, French, Spanish or Italian under Settings > Warder Consent and the interface strings — "Manage preferences", "Accept current selection", the close label and so on — follow. The text you write yourself, such as the banner title, description, button labels and category names, is stored as you type it, so you write that part in your own language.

Is it compatible with caching plugins?

Yes. Settings are versioned with a timestamp that becomes part of the script URL, so a cached page always pulls the matching configuration.

How do I add custom cookie categories?

Settings > Warder Consent, then "Add New Category" at the bottom of the page. Each category gets its own title, description and cookie list, and appears as a toggle in the preferences modal.

Which cookies are managed by default?

WordPress and WooCommerce session cookies are marked strictly necessary, and Google Analytics, Matomo and SourceBuster cookies sit in an analytics category that is off until accepted. The full list is in the description above, and all of it is editable.

Can visitors change their mind after accepting?

Yes. The floating cookie button reopens the preferences modal at any time, and you can put it in any of the four corners or turn it off.

更新日志:

2.2.1 2026-08-31 2.2.0 2026-08-25 2.1.6 2026-08-13 2.1.5 2026-06-26 2.1.4 2026-06-04 2.1.3 2026-06-03 2.1.2 2026-05-30 2.1.1 2026-05-30 2.1.0 2026-05-30 2.0.2 2026-05-30 2.0.1 2026-05-28 2.0.0 2026-05-28 1.5.2 2026-05-28 1.5.1 2026-05-28 1.5.0 2026-05-28 1.4.2 2026-05-28 1.4.1 2026-05-27 1.4.0 2026-05-27 1.3.2 2026-05-27 1.3.1 2026-05-26 1.3.0 2026-05-26 1.2.1 2026-05-26 1.2.0 2026-05-26 1.1.0 2026-05-26 1.0.0 2025-05-26