Skip to content

Branding Attribution Policy

The .ag-branding element 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.

ActionAllowed
Use Kookiok with default branding visibleYes
Style the rest of the banner heavilyYes
Adjust banner colors that affect .ag-branding indirectly via tokensYes (contrast must remain readable)
Hide .ag-branding via CSSProhibited
Make .ag-branding invisible (opacity, transform, clip, color)Prohibited
Move .ag-branding off-screenProhibited
Cover .ag-branding with another elementProhibited
Remove .ag-branding via DOM manipulationProhibited
Reverse-proxy or modify consent.jsProhibited
Use KookiOk without the badgeYes, on a paid plan that removes the KookiOk branding (“No branding” or “Full”)

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.

Branding is protected by four independent layers:

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.

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.

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.

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.

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.

If you’ve spotted a bypass technique, please report it — we appreciate responsible disclosure. Email security@kookiok.com.