{"id":5817,"date":"2026-07-01T06:53:07","date_gmt":"2026-07-01T13:53:07","guid":{"rendered":"https:\/\/clone.surecookie.com\/docs\/resource-script-blocking-add-embeds-fixes\/"},"modified":"2026-07-12T20:18:29","modified_gmt":"2026-07-13T03:18:29","slug":"resource-script-blocking","status":"publish","type":"docs","link":"https:\/\/clone.surecookie.com\/de\/docs\/resource-script-blocking\/","title":{"rendered":"Resource \/ Script Blocking (Add Embeds + Fixes)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A cookie banner asks visitors for permission. Resource Blocking is what makes that permission mean something: it holds non-essential scripts and embedded content, analytics, ad pixels, tag managers, and embeds like YouTube, Google Maps, and Vimeo, until the visitor agrees. Without it, those trackers can fire before anyone has chosen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ll find it at <strong>SureCookie \u2192 Settings \u2192 Compliance \u2192 Resource Blocking<\/strong>.<\/p>\n\n\n\n<h2 id=\"what-resource-blocking-does\" class=\"wp-block-heading\">What Resource Blocking Does<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It prevents non-essential scripts and embeds from loading until the visitor consents.<\/li>\n\n\n\n<li>Each resource belongs to a consent <strong>category<\/strong> (Essential, Functional, Analytics, or Marketing) and unblocks only when the visitor accepts that category.<\/li>\n\n\n\n<li>It covers a built-in list of supported services, plus anything your cookie scan detects on your own pages.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"what-resource-blocking-does\" class=\"wp-block-heading\">Turn On Blocking<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>SureCookie \u2192 Settings \u2192 Compliance \u2192 Resource Blocking<\/strong>.<\/li>\n\n\n\n<li>Turn on <strong>Enable Script and Content Blocking<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">With blocking off, your banner still asks for consent, but non-essential scripts may run before a choice is made. Turn it on for real enforcement.<\/p>\n\n\n\n<h2 id=\"what-resource-blocking-does\" class=\"wp-block-heading\">Detected Resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once blocking is on, the <strong>Detected Resources<\/strong> list shows what SureCookie found on your site, in four columns:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Type<\/strong> \u2013 Script or Iframe (an embed).<\/li>\n\n\n\n<li><strong>Resource<\/strong> \u2013 the service name and its domain.<\/li>\n\n\n\n<li><strong>Category<\/strong> \u2013 the consent category it belongs to. This is set by SureCookie&#8217;s detection and shown here for reference.<\/li>\n\n\n\n<li><strong>Block<\/strong> \u2013 toggle blocking on or off for that specific resource.<\/li>\n<\/ul>\n\n\n\n<figure data-spectra-id=\"spectra-mr24z45c-12yfuw\" class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"711\" src=\"https:\/\/clone.surecookie.com\/wp-content\/uploads\/2026\/07\/embeds-blocked-detected-resources-1024x711.png\" alt=\"Resource blocking settings for website.\" class=\"wp-image-5783\" title=\"Resource \/ Script Blocking (Add Embeds + Fixes)\" srcset=\"https:\/\/clone.surecookie.com\/wp-content\/uploads\/2026\/07\/embeds-blocked-detected-resources-1024x711.png 1024w, https:\/\/clone.surecookie.com\/wp-content\/uploads\/2026\/07\/embeds-blocked-detected-resources-300x208.png 300w, https:\/\/clone.surecookie.com\/wp-content\/uploads\/2026\/07\/embeds-blocked-detected-resources-768x533.png 768w, https:\/\/clone.surecookie.com\/wp-content\/uploads\/2026\/07\/embeds-blocked-detected-resources-1536x1067.png 1536w, https:\/\/clone.surecookie.com\/wp-content\/uploads\/2026\/07\/embeds-blocked-detected-resources-2048x1422.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Replace data on next scan<\/strong> toggle refreshes this list with fresh results the next time a scan runs.<\/p>\n\n\n\n<h2 id=\"adding-embeds-youtube-maps-vimeo-and-more\" class=\"wp-block-heading\">Adding Embeds (YouTube, Maps, Vimeo, and More)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You don&#8217;t add resources by hand. There are two ways an embed gets covered:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Supported services are blocked automatically<\/strong> once blocking is on, even before you scan. The screen links to the full list of supported services.<\/li>\n\n\n\n<li><strong>To surface a specific embed or script<\/strong> in the Detected Resources list, run a scan that includes the page it appears on, under <strong>SureCookie \u2192 Cookie Manager \u2192 Manual<\/strong>. Newly detected items show up with their Type, Category, and a Block toggle.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Video and map embeds are grouped under a consent category (YouTube and Vimeo are usually <strong>Marketing<\/strong>; Google Maps is usually <strong>Functional<\/strong>) and load once the visitor accepts that category.<\/p>\n\n\n\n<h2 id=\"adding-embeds-youtube-maps-vimeo-and-more\" class=\"wp-block-heading\">Allowing a Resource<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each row&#8217;s <strong>Block<\/strong> toggle decides whether that resource is gated behind consent.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Leave it <strong>on<\/strong> to keep the resource blocked until consent. This is the right choice for anything non-essential.<\/li>\n\n\n\n<li>Turn it <strong>off<\/strong> only if you consider a resource essential and want it to load without consent. That&#8217;s a compliance decision, so use it deliberately.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Google Consent Mode scripts are a special case: when Consent Mode is enabled, SureCookie lets Google&#8217;s scripts run and manages them through Consent Mode, so they show an explanatory note instead of a Block toggle.<\/p>\n\n\n\n<h2 id=\"adding-embeds-youtube-maps-vimeo-and-more\" class=\"wp-block-heading\">Common Fixes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>An embed stays blocked after consent<\/strong> \u2013 It belongs to a category the visitor didn&#8217;t accept. Check its <strong>Category<\/strong>; the visitor must accept that category. See <em>Embeds Blocked After Consent (YouTube, Maps, Vimeo)<\/em>.<\/li>\n\n\n\n<li><strong>A resource isn&#8217;t in the Detected Resources list<\/strong> \u2013 Run a scan on the page where it loads so it&#8217;s detected. Supported services are still blocked even when they aren&#8217;t listed.<\/li>\n\n\n\n<li><strong>A script still runs before consent<\/strong> \u2013 Confirm <strong>Enable Script and Content Blocking<\/strong> is on, then clear your page and CDN caches so the blocked version of the page is served.<\/li>\n\n\n\n<li><strong>Changes don&#8217;t take effect<\/strong> \u2013 Clear caches, and re-scan if you changed the page&#8217;s content.<\/li>\n\n\n\n<li><strong>An embed won&#8217;t load even after accepting its category<\/strong> \u2013 The embed may be injected by a separate script in a different category. Make sure the visitor also accepts that category.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"adding-embeds-youtube-maps-vimeo-and-more\" class=\"wp-block-heading\">Next Steps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For step-by-step help when an embed stays blocked, see <em>Embeds Blocked After Consent (YouTube, Maps, Vimeo)<\/em>. To forward consent state to Google&#8217;s tags, see <em>Setting Up Google Consent Mode v2<\/em>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Resource Blocking is how SureCookie enforces consent, holding non-essential scripts and embeds like YouTube, Maps, and Vimeo until a visitor agrees. Learn to enable it, work with detected resources, add embeds, and fix common issues.<\/p>","protected":false},"author":32,"featured_media":0,"template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_pfd_related_docs_manual":[],"pfd_doc_title":"","spectra_gs_classes":"[\"\"]","footnotes":""},"docs_category":[36],"docs_tag":[],"class_list":["post-5817","docs","type-docs","status-publish","hentry","docs_category-consent-and-compliance"],"spectra_custom_meta":{"spectra_gs_classes":["[\"\"]"],"surerank_seo_checks":["a:14:{s:14:\"h2_subheadings\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:38:\"Page contains at least one subheading.\";s:4:\"type\";s:4:\"page\";}s:13:\"media_present\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:55:\"This page includes images or videos to enhance content.\";s:4:\"type\";s:4:\"page\";}s:13:\"links_present\";a:3:{s:6:\"status\";s:7:\"warning\";s:7:\"message\";s:27:\"No links found on the page.\";s:4:\"type\";s:4:\"page\";}s:10:\"url_length\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:35:\"Page URL is short and SEO-friendly.\";s:4:\"type\";s:4:\"page\";}s:19:\"search_engine_title\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:55:\"Search engine title is present and under 60 characters.\";s:4:\"type\";s:4:\"page\";}s:25:\"search_engine_description\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:62:\"Search engine description is present and under 160 characters.\";s:4:\"type\";s:4:\"page\";}s:13:\"canonical_url\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:37:\"Canonical tag is present on the page.\";s:4:\"type\";s:4:\"page\";}s:15:\"open_graph_tags\";a:3:{s:6:\"status\";s:7:\"success\";s:7:\"message\";s:40:\"Open Graph tags are present on the page.\";s:4:\"type\";s:4:\"page\";}s:16:\"keyword_in_title\";a:3:{s:6:\"status\";s:10:\"suggestion\";s:7:\"message\";s:38:\"No focus keyword set to analyze title.\";s:4:\"type\";s:7:\"keyword\";}s:22:\"keyword_in_description\";a:3:{s:6:\"status\";s:10:\"suggestion\";s:7:\"message\";s:49:\"No focus keyword set to analyze meta description.\";s:4:\"type\";s:7:\"keyword\";}s:14:\"keyword_in_url\";a:3:{s:6:\"status\";s:10:\"suggestion\";s:7:\"message\";s:36:\"No focus keyword set to analyze URL.\";s:4:\"type\";s:7:\"keyword\";}s:18:\"keyword_in_content\";a:3:{s:6:\"status\";s:10:\"suggestion\";s:7:\"message\";s:40:\"No focus keyword set to analyze content.\";s:4:\"type\";s:7:\"keyword\";}s:12:\"broken_links\";a:3:{s:6:\"status\";s:7:\"success\";s:4:\"type\";s:4:\"page\";s:7:\"message\";s:34:\"No broken links found on the page.\";}s:14:\"image_alt_text\";a:5:{s:6:\"status\";s:7:\"success\";s:11:\"description\";a:1:{i:0;s:48:\"Images on the post\/page have alt text attributes\";}s:7:\"message\";s:49:\"All images on this page have alt text attributes.\";s:11:\"show_images\";b:0;s:4:\"type\";s:4:\"page\";}}"],"surerank_seo_checks_last_updated":["1783912709"],"_edit_lock":["1783916888:39"],"views":["46"],"_uag_custom_page_level_css":[""],"site-sidebar-layout":["default"],"site-content-layout":[""],"ast-site-content-layout":["default"],"site-content-style":["default"],"site-sidebar-style":["default"],"ast-global-header-display":[""],"ast-banner-title-visibility":[""],"ast-main-header-display":[""],"ast-hfb-above-header-display":[""],"ast-hfb-below-header-display":[""],"ast-hfb-mobile-header-display":[""],"site-post-title":[""],"ast-breadcrumbs-content":[""],"ast-featured-img":[""],"footer-sml-layout":[""],"ast-disable-related-posts":[""],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"header-above-stick-meta":[""],"header-main-stick-meta":[""],"header-below-stick-meta":[""],"astra-migrate-meta-layouts":["set"],"ast-page-background-enabled":["default"],"ast-page-background-meta":["a:3:{s:7:\"desktop\";a:12:{s:16:\"background-color\";s:25:\"var(--ast-global-color-4)\";s:16:\"background-image\";s:0:\"\";s:17:\"background-repeat\";s:6:\"repeat\";s:19:\"background-position\";s:13:\"center center\";s:15:\"background-size\";s:4:\"auto\";s:21:\"background-attachment\";s:6:\"scroll\";s:15:\"background-type\";s:0:\"\";s:16:\"background-media\";s:0:\"\";s:12:\"overlay-type\";s:0:\"\";s:13:\"overlay-color\";s:0:\"\";s:15:\"overlay-opacity\";s:0:\"\";s:16:\"overlay-gradient\";s:0:\"\";}s:6:\"tablet\";a:12:{s:16:\"background-color\";s:0:\"\";s:16:\"background-image\";s:0:\"\";s:17:\"background-repeat\";s:6:\"repeat\";s:19:\"background-position\";s:13:\"center center\";s:15:\"background-size\";s:4:\"auto\";s:21:\"background-attachment\";s:6:\"scroll\";s:15:\"background-type\";s:0:\"\";s:16:\"background-media\";s:0:\"\";s:12:\"overlay-type\";s:0:\"\";s:13:\"overlay-color\";s:0:\"\";s:15:\"overlay-opacity\";s:0:\"\";s:16:\"overlay-gradient\";s:0:\"\";}s:6:\"mobile\";a:12:{s:16:\"background-color\";s:0:\"\";s:16:\"background-image\";s:0:\"\";s:17:\"background-repeat\";s:6:\"repeat\";s:19:\"background-position\";s:13:\"center center\";s:15:\"background-size\";s:4:\"auto\";s:21:\"background-attachment\";s:6:\"scroll\";s:15:\"background-type\";s:0:\"\";s:16:\"background-media\";s:0:\"\";s:12:\"overlay-type\";s:0:\"\";s:13:\"overlay-color\";s:0:\"\";s:15:\"overlay-opacity\";s:0:\"\";s:16:\"overlay-gradient\";s:0:\"\";}}"],"ast-content-background-meta":["a:3:{s:7:\"desktop\";a:12:{s:16:\"background-color\";s:25:\"var(--ast-global-color-5)\";s:16:\"background-image\";s:0:\"\";s:17:\"background-repeat\";s:6:\"repeat\";s:19:\"background-position\";s:13:\"center center\";s:15:\"background-size\";s:4:\"auto\";s:21:\"background-attachment\";s:6:\"scroll\";s:15:\"background-type\";s:0:\"\";s:16:\"background-media\";s:0:\"\";s:12:\"overlay-type\";s:0:\"\";s:13:\"overlay-color\";s:0:\"\";s:15:\"overlay-opacity\";s:0:\"\";s:16:\"overlay-gradient\";s:0:\"\";}s:6:\"tablet\";a:12:{s:16:\"background-color\";s:25:\"var(--ast-global-color-5)\";s:16:\"background-image\";s:0:\"\";s:17:\"background-repeat\";s:6:\"repeat\";s:19:\"background-position\";s:13:\"center center\";s:15:\"background-size\";s:4:\"auto\";s:21:\"background-attachment\";s:6:\"scroll\";s:15:\"background-type\";s:0:\"\";s:16:\"background-media\";s:0:\"\";s:12:\"overlay-type\";s:0:\"\";s:13:\"overlay-color\";s:0:\"\";s:15:\"overlay-opacity\";s:0:\"\";s:16:\"overlay-gradient\";s:0:\"\";}s:6:\"mobile\";a:12:{s:16:\"background-color\";s:25:\"var(--ast-global-color-5)\";s:16:\"background-image\";s:0:\"\";s:17:\"background-repeat\";s:6:\"repeat\";s:19:\"background-position\";s:13:\"center center\";s:15:\"background-size\";s:4:\"auto\";s:21:\"background-attachment\";s:6:\"scroll\";s:15:\"background-type\";s:0:\"\";s:16:\"background-media\";s:0:\"\";s:12:\"overlay-type\";s:0:\"\";s:13:\"overlay-color\";s:0:\"\";s:15:\"overlay-opacity\";s:0:\"\";s:16:\"overlay-gradient\";s:0:\"\";}}"],"_pfd_related_docs_manual":["a:0:{}"],"pfd_doc_title":[""],"footnotes":[""],"_edit_last":["39"],"helpful":["0"],"unhelpful":["0"],"redirects":["0"],"_uag_page_assets":["a:9:{s:3:\"css\";s:263:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media (max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media (max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\n\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:12:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"core\/heading\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/list-item\";i:4;s:10:\"core\/image\";i:5;s:11:\"core\/search\";i:6;s:10:\"core\/group\";i:7;s:17:\"core\/latest-posts\";i:8;s:20:\"core\/latest-comments\";i:9;s:13:\"core\/archives\";i:10;s:15:\"core\/categories\";i:11;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1789563186\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"],"_uag_css_file_name":["uag-css-5817.css"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"navanath b","author_link":"https:\/\/clone.surecookie.com\/de\/author\/navanathbbsf-io\/"},"uagb_comment_info":0,"uagb_excerpt":"Resource Blocking is how SureCookie enforces consent, holding non-essential scripts and embeds like YouTube, Maps, and Vimeo until a visitor agrees. Learn to enable it, work with detected resources, add embeds, and fix common issues.","_links":{"self":[{"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/docs\/5817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/users\/32"}],"version-history":[{"count":1,"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/docs\/5817\/revisions"}],"predecessor-version":[{"id":5819,"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/docs\/5817\/revisions\/5819"}],"wp:attachment":[{"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/media?parent=5817"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/docs_category?post=5817"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/clone.surecookie.com\/de\/wp-json\/wp\/v2\/docs_tag?post=5817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}