Cookie Consent Manager
iFrame Blocker
Premium feature.
An embedded YouTube video sets cookies and transfers data the moment the iFrame loads — regardless of whether anyone starts the video. The iFrame blocker prevents that without you having to touch your content.
How it works
The plugin scans the page for <iframe> elements whose source belongs to a blocked domain. If consent for the assigned group is missing, the src attribute is removed and a placeholder is shown instead:
- A note stating which provider supplies the content
- An Accept & load content button
- A Always load (remember setting) checkbox — grants consent for the whole group
- An optional link to the privacy policy
As soon as consent exists — through the placeholder or through the banner — the src is written back and the iFrame loads without a page reload.
Built-in domain list
If the Blocked domains field is empty, this applies:
| Domain | Group |
|---|---|
youtube.com, youtube-nocookie.com |
marketing |
google.com/maps, maps.google.com |
comfort |
vimeo.com |
marketing |
facebook.com, instagram.com |
marketing |
twitter.com, x.com |
marketing |
tiktok.com |
marketing |
Custom domains
One mapping per line in the format domain=group:
youtube.com=marketing
openstreetmap.org=comfort
player.example.com=marketing
Your entries extend the built-in list; identical domains override its mapping. The group has to match the technical name of an active cookie group.
Changing the texts
The placeholder texts are snippets:
| Snippet | Content |
|---|---|
prems-cookie-consent.iframe.notice |
Notice text, %provider% is replaced |
prems-cookie-consent.iframe.loadButton |
Button label |
prems-cookie-consent.iframe.rememberChoice |
Checkbox label |
prems-cookie-consent.iframe.privacyLink |
Label of the privacy link |
Limits
- Only
<iframe>elements with asrcattribute are detected. If an iFrame is injected later by JavaScript, the blocker does not catch it — attach such embeds to a blocked script or a<template>instead (see Cookie Consent Banner). - The placeholder takes width and height from the iFrame's attributes. Without them it uses full width and 220 px height.