Branding Attribution Policy
The
.ag-brandingelement displaying “Powered by KookiOk” is required on every banner of the free plan; a paid plan that removes the KookiOk branding takes it off. The privacy button carries a small KookiOk mark (.ag-mark) and its popup ends with the same badge, under the same rules. This page explains exactly what is allowed and what is prohibited.
| Action | Allowed |
|---|---|
| Use Kookiok with default branding visible | Yes |
| Style the rest of the banner heavily | Yes |
Adjust banner colors that affect .ag-branding indirectly via tokens | Yes (contrast must remain readable) |
Hide .ag-branding via CSS | Prohibited |
Make .ag-branding invisible (opacity, transform, clip, color) | Prohibited |
Move .ag-branding off-screen | Prohibited |
Cover .ag-branding with another element | Prohibited |
Remove .ag-branding via DOM manipulation | Prohibited |
Reverse-proxy or modify consent.js | Prohibited |
| Use KookiOk without the badge | Yes, on a paid plan that removes the KookiOk branding (“No branding” or “Full”) |
Why the badge is there
Section titled “Why the badge is there”KookiOk’s free plan has no limit on websites or page views. The trade-off is our branding, mainly this small “Powered by KookiOk” badge on your banner and a small mark on the privacy button. The paid plans are optional extras: the “No branding” plan removes the KookiOk branding your visitors see, the badge included, and so does “Full”. They take nothing away from the free plan.
How it’s enforced
Section titled “How it’s enforced”Branding is protected by four independent layers:
Layer 1: Server-side render gating
Section titled “Layer 1: Server-side render gating”The <div class="ag-branding"> is only emitted in the banner HTML when the banner configuration served to the page has whiteLabel: false. whiteLabel is a server-side flag that comes with your plan: a paid plan that removes the KookiOk branding turns it on, and custom CSS cannot toggle it.
Layer 2: Inline !important styles at render time
Section titled “Layer 2: Inline !important styles at render time”When the banner renders, the .ag-branding element receives inline !important declarations for 33 anti-hide properties (display, visibility, opacity, position, transform, clip-path, filter, font-size, dimensions, color, and others). These are applied via the HTML style="..." attribute at runtime, giving them CSS specificity (1, 0, 0, 0): the highest specificity available to author CSS.
The lock covers only properties that could hide, shrink, or displace the element. Layout properties (margin, padding, order, flex direction, gap) are intentionally not locked so each banner template’s positioning rules can place the element correctly. Combined with the layout’s padding-top / margin-top / order, the result is: branding stays at the correct position AND cannot be hidden via custom CSS.
This means your custom CSS cannot override them, even with !important:
/* All of these are ineffective — inline !important wins */.ag-branding { display: none !important; }.ag-branding * { opacity: 0 !important; }.ag-banner > div:last-child { visibility: hidden !important; }.ag-branding { transform: scale(0) !important; clip-path: inset(100%) !important; }.ag-branding { position: absolute !important; left: -99999px !important; }.ag-branding { font-size: 0 !important; color: transparent !important; }The mark on the privacy button is locked by the first cascade layer of that button’s stylesheet: its !important declarations beat all of your CSS. Hiding the whole button (.ag-trigger-btn) hides the mark with it, and takes away your visitors’ way to withdraw consent; we advise against it.
Layer 3: Server-side CSS validation
Section titled “Layer 3: Server-side CSS validation”When you save custom CSS via the API or admin dashboard, the CssSanitizer scans for selectors targeting protected classes:
.ag-branding.ag-cookie-mark.ag-bite.ag-cr1,.ag-cr2,.ag-cr3(cookie crumb animations).ag-mark(the mark on the privacy button)
If found, the API returns HTTP 422 with a structured error:
{ "error_code": "custom_css_invalid", "issues": [{ "code": "branding_modification_attempted", "severity": "error", "message": "Custom CSS contains rules targeting protected branding selectors...", "docsUrl": "https://api.kookiok.com/docs/banner-css/branding-policy" }]}This gives you immediate feedback at config time, not silent failure later.
The validation runs on the raw input before sanitization — so a .ag-branding { display: none } rule placed beyond the 10,000-character sanitization boundary cannot bypass detection.
Layer 4: Tampering telemetry
Section titled “Layer 4: Tampering telemetry”Half a second after the banner mounts, the runtime checks once with getComputedStyle whether .ag-branding ended up hidden despite our inline locks (which points to DOM tampering by unauthorized JS or a browser extension). If it did, it sends an anonymized telemetry beacon via navigator.sendBeacon. Recording these reports is behind a server-side switch that ships turned off; while it is off, the beacon is discarded.
This isn’t surveillance of visitors. The beacon contains only siteId, reason (which property triggered detection) and timestamp. No user data, no PII.
What you CAN do
Section titled “What you CAN do”You can style everything else freely. Your custom CSS has full control over:
- All banner colors via design tokens (
--surface,--accent, etc.) - Button shapes, sizes, animations
- Typography (your own font, size, weight — must be self-hosted)
- Spacing, borders, shadows
- Background patterns, gradients
- Decorative pseudo-elements
- Hover/focus states
- Responsive breakpoints
- Dark/light variants
The branding is one small element at the bottom — approximately 10px font size, muted color. It does not visually compete with your brand.
What about styling that indirectly affects branding readability?
Section titled “What about styling that indirectly affects branding readability?”If you change --surface to a color that makes .ag-branding text unreadable (e.g., dark text on dark background via token override), the inline styles will still apply, but contrast may degrade. The compliance checker will flag this with a warning. This is allowed — it’s a side-effect of your token choice, not a targeted attack on branding.
We recommend testing with the compliance checker.
Removing the badge
Section titled “Removing the badge”The free plan always shows the badge and the mark on the privacy button. The paid “No branding” plan removes the KookiOk branding your visitors see, the badge included, and so does “Full”. You choose a plan in the Plans and billing tab of your account in the dashboard. While your workspace is on such a plan, the server serves the banners of all its sites with whiteLabel: true and omits the .ag-branding and .ag-mark elements entirely. The privacy button itself stays. When the plan ends, the workspace is back on the free plan and they return.
Reporting concerns
Section titled “Reporting concerns”If you’ve spotted a bypass technique, please report it — we appreciate responsible disclosure. Email security@kookiok.com.