---
title: "How to block resources (Google Maps, Fonts, Youtube, etc) content until user's consent"
slug: "how-to-block-resources-google-maps-fonts-youtube-etc-content-until-users-consent"
updated: 2025-07-17T12:16:39Z
published: 2025-07-17T13:18:21Z
canonical: "docs.bigid.com/how-to-block-resources-google-maps-fonts-youtube-etc-content-until-users-consent"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bigid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to block resources (Google Maps, Fonts, Youtube, etc) content until user's consent

In this article, we will show you **how to block resources as Google Maps, Google Fonts, Youtube and Vimeo until user's consent.**

The first step to block this from our platform is to go to the **Side menu > Cookie Banner > Advanced Settings** and activate the checkbox that says "Block resources until user's consent" (**This will be disabled by default, so you just need to monitor it**).

![](https://cdn.us.document360.io/a1b4dbb6-204b-4038-905b-11451e3058a8/Images/Documentation/Screenshot 2024-11-03 at 6.40.32 PM.png)

By enabling this option, when the page containing the resource loads, in case of videos you will see a brief loading of the blocked content with a grey overlay, followed by a notice with instructions to make the content visible. **By default, this notice will place this content under the "Marketing" category.**

![](https://cdn.us.document360.io/a1b4dbb6-204b-4038-905b-11451e3058a8/Images/Documentation/bxdc1jw9cd42e__9j8tl-uxvh2yfury9fw.png)

If you want to **avoid the loading**before the content on your page, you can add the **"allowIframe=true"**query param to the source on our banner, like in the following example:

```xml
<script src="https://bigidcmp.cloud/banner.js?siteId=QUERY_PPROVIDED_IN_HOME&allowIframe=true"></script>
```

Please note that this property also allows you to choose which iframes to block and which ones to allow across your different pages.

### **Can I change the category of my iframes?**

To change this, you can add the **"BigID-category"** property to the iframe tag and specify the category as shown in the code below:

```xml
<iframe width="663" height="373" bigid-category="statistics" src="https://www.youtube.com/embed/mQE0LQFFn3s" title="Sesame Street: Cookie Monster Eating Mashup" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
```

### **Can I block other iframes besides Youtube or Vimeo?**

While currently **we only natively block iframes from YouTube and Vimeo, if you need to manually block others, you can do so by adding the "BigID-src" property to the src attribute**, and this will activate the blocking of the iframe by BigID. It should look like this:

```xml
<iframe width="663" height="373" bigid-category="statistics" bigid-src="https://www.youtube.com/embed/mQE0LQFFn3s&allowIframe = true" title="Sesame Street: Cookie Monster Eating Mashup" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
```

> [!WARNING]
> Important
> 
> In case you are using Google Tag Manager, make sure to add the "bigid-src" to the src attribute so we can block this earlier.

### **And it's done!**

Now you blocked the iframes on your site until the user gives his consent!
