TL;DR: Consently automatically blocks non-essential cookies until visitors give consent. Essential cookies load immediately; all others wait for visitor approval through your banner.

Overview

Cookie auto-blocking enforces consent by preventing non-essential cookies from loading until visitors explicitly allow them. This automatic blocking ensures compliance with regulations like GDPR without requiring manual code changes on your website.

How Cookie Auto-Blocking Works

Step 1: Understand the blocking rules

Consently applies different rules based on cookie categories:

  • Essential Cookies — Always allowed. These cookies enable core website functionality like security, network management, and accessibility. They load immediately without requiring consent.

  • Non-Essential Cookies — Blocked by default. Analytics, Performance, Advertising, and Social cookies remain blocked until visitors consent through your banner.

BlockNote image

Step 2: Categorize your cookies

  • Auto-blocking enforcement depends on accurate cookie categorization. Consently automatically assigns cookies to categories during scanning, but you should verify the assignments.

  • Navigate to Cookie Manager to review your cookie categories and ensure each cookie is properly classified.

BlockNote image
💡 Tip: If a cookie is miscategorized, visitors may experience broken functionality or miss important consent requirements.

Step 3: Test consent-triggered activation

When visitors interact with your banner, Consently immediately activates or blocks cookies based on their choices:

  • Accept All — Activates all cookie categories

  • Reject All — Blocks all non-essential cookies

  • Manage Preferences — Activates only selected categories

BlockNote image

Done!

Auto-blocking works automatically once your banner is installed and cookies are categorized.

Success indicator: Non-essential cookies should not appear in your browser's developer tools until you grant consent through the banner.

How to Test Auto-Blocking

Step 1: Clear your browser data

Open your browser settings and clear all cookies and site data for your website. This ensures you see the banner as a first-time visitor.

BlockNote image

Step 2: Open developer tools

Before visiting your website, open your browser's developer tools and navigate to the Application or Storage tab to view cookies.

BlockNote image

Step 3: Visit your website

Load your website and observe the banner. Check the cookies panel in developer tools — only Essential cookies should be present before you interact with the banner.

BlockNote image

Step 4: Test consent scenarios

Accept all cookies through the banner, then check developer tools again. All cookie categories you accepted should now appear in the cookies list.

💡 Tip: Test both "Accept All" and "Reject All" to verify blocking works correctly in both scenarios.

What's Next

Now that you understand cookie auto-blocking, you should:

  1. Review your cookie categories

Troubleshooting

Cookies are loading before consent

Why this happens: The cookie may be miscategorized as Essential, or the script creating the cookie may be loading before Consently's script.

Solution:

  1. Navigate to Cookie Manager and verify the cookie is not in the Essential category

  2. Check that the Consently script is placed in the <head> section BEFORE other third-party scripts

  3. If using Google Tag Manager, ensure consent initialization happens before other tags fire

  4. Clear your browser cache and test again


Essential cookies are being blocked

Why this happens: Essential cookies should never be blocked, indicating a categorization error.

Solution:

  1. Navigate to Cookie ManagerEssential category

  2. Verify the cookie appears in the Essential list

  3. If a cookie belongs to a different category, please delete it and recreate it under the appropriate category.

  4. Save changes and test again


Consent choices are not persisting

Why this happens: The consent cookie itself may be blocked by browser settings or privacy extensions.

Solution:

  1. Check if browser settings block third-party cookies (Consently's consent cookie is first-party)

  2. Disable privacy extensions temporarily to test

  3. Verify the consent cookie (consently_consent) appears in your browser's cookie storage after making a choice

  4. If the issue persists, check your website's cookie policy settings

Related Pages