WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: easy-cookie-consent (Used by 28 domains)

Security snapshot

Across the 28 easy-cookie-consent sites we've scanned, compared to the all-WordPress average.

Grade A 11% Grade B 14% Grade C 0% Grade D 4% Grade F 71%
Fail the header check (F)71%vs 82.6% avg
Leak usernames32%vs 38.5% avg
Expose a sensitive file10.7%vs 1.8% avg
Use HTTPS96%vs 96.1% avg

Easy cookie consent

This plugin implements https://github.com/orestbida/cookieconsent/ solution and stores consents in custom database table.

Google Tag Manager consent mode is supported by default. ad_storage & anaylytics_storage are set to denied by default.

Filters/hooks

Set for which WordPress role cookie settings will be available:

add_filter('easy_cookie_consent/options_capability', static function ($optionsCapability) {
    return 'custom_capability';
});

Adjust options passed to Javascript. See https://github.com/orestbida/cookieconsent/#all-configuration-options

add_filter('easy_cookie_consent/javascript_options', static function ($cookieConsentOptions) {
    $cookieConsentOptions['cookie_domain'] = '.example.com';
    return $cookieConsentOptions;
});

Disable autorun:

add_filter('easy_cookie_consent/autorun', static function ($autorun) {
    return false;
});


// call easy_show_cookie_consent() when needed
if (function_exists('easy_show_cookie_consent')) {
    easy_show_cookie_consent();
}

Actions

Add custom/service Javascripts to page and control them by cookie consent:

add_action('easy_cookie_consent/add_app_scripts', static function () {
    if (wp_get_environment_type() === 'production') {
        ?>
        

        

        
        

iframes

Change