Automatic Cookie & Script Blocking - Zero Code Changes Required
GDPR-compliant cookie consent with intelligent detection
Automatically detects and blocks analytics/marketing cookies AND scripts without any code modifications.
Works with your existing Google Analytics, Facebook Pixel, and other tracking code.
Pattern-based detection for Google Analytics, Facebook Pixel, and more tracking services.
Full consent management with preferences modal and automatic cookie clearing.
5 banner positions, light/dark themes, and fully customizable categories.
Works perfectly on desktop, tablet, and mobile devices.
Include the script in your <head> and initialize:
<script src="cookie-consent-standalone.js"></script>
<script>
CookieConsent.init({
categories: {
necessary: { enabled: true, readOnly: true },
analytics: { enabled: false },
marketing: { enabled: false }
}
});
</script>
The plugin automatically detects and blocks:
Check the browser console (F12) to see automatic blocking in action!
The banner at the bottom-right appeared automatically on first visit.
Explore more examples and documentation:
Standalone Example Auto-Gating Demo Debug Tools
Website: vesrl.ro
GitHub: cookie-consent-ve
License: MIT (Free for commercial use)