WPLP Compliance Platform logo
  • Products

    Legal Pages

    Privacy Policy

    Privacy Policy

    Disclose how you collect and use user data

    Terms and conditions

    Terms and Conditions

    Set the rules for how your website is used

    Cookie policy

    Cookie Policy

    Explain how and why cookies are used on your site

    Arrow

    More Legal Policies

    Access 25+ legal page templates for compliance

    Cookie Consent

    Cookie scanner

    Cookie Scanner

    Scan and categorize cookies used on your website

    Consent management platform

    Consent Management Platform

    Collect, manage, and log user consent easily

    Google Consent Mode

    Google Consent Mode

    Maintain ad tracking while respecting user privacy

    IAB TCF 2.2

    IAB TCF 2.2

    Ensure your site meets the latest ad consent standards

    Data Subject Access Request

    Data Subject Access Request

    Let users request access or deletion of their data

    Arrow

    All Features

    Explore every feature included in our cookie consent solution

  • Privacy Laws

    USA

    California icon

    California

    California Consumer Privacy Act (CCPA)

    Virginia icon

    Virginia

    Virginia Consumer Data Protection Act (VCDPA)

    Connecticut icon

    Connecticut

    Connecticut Data Privacy Act (CTDPA)

    Utah icon

    Utah

    Utah Consumer Privacy Act (UCPA)

    Colorado icon

    Colorado

    Colorado Privacy Act (CPA)

    Neveda icon

    Neveda

    Nevada Privacy Law

    EU / Worldwide Laws

    European Union icon

    European Union

    General Data Protection Regulation (GDPR)

    UK GDPR icon

    UK GDPR

    United Kingdom (Post-Brexit version of GDPR)

    European Union icon

    European Union

    ePrivacy Directive (ePD)

    Brazil (Worldwide) icon

    Brazil (Worldwide)

    Lei Geral de Proteção de Dados (LGPD)

  • Pricing
  • Resources
    How to guide icon

    How-to Guides

    • Generate Privacy Policy
    • Generate Cookie Policy
    • Generate Terms & Conditions
    • Generate Return & Refund Policy
    • Add Cookie Banner
    • Setup Google Consent Mode v2
    Articles icon

    Articles

    Learn privacy compliance best practices, tips and industry updates.

    Documentation icon

    Documentation

    Step-by-step guides to help you install, configure and master WPLP features

    Support icon

    Support

    Need help? Contact our support team for assistance

Login
Get Started

Documentation

Find step-by-step guides, tutorials, and FAQs for all our latest plugins.

Overview

  • Setup & Configuration
  • Platform Overview

Features Walkthrough

  •  Cookie Consent
  • Legal pages
  • Dashboard

Guides

  • How to use Script Blocker
  • Respect Do Not Track & Global Privacy Control
  • How to show Third-Party Policy Data on Your Website
  • How to Enable DSAR
  • How to create an Affiliate Disclosure Page
  • How to show the WPLP Block in Gutenberg.
  • How to Make an Announcement Banner for Legal Pages
  • How to Show Age Verification Pop-up on The Website
  • How to add Legal Page in Footer
View Categories
  • Home
  • Docs
  • WPLP Docs
  • Guides
  • How to use Script Blocker

How to use Script Blocker

What is Script Blocking? #

Script blocking is a crucial feature for achieving legal compliance with privacy laws. It prevents third-party scripts from running on a website and setting cookies before a user has given explicit consent. Without this feature, a website might be in breach of regulations by collecting user data without permission, even if a cookie consent banner is present.

The WPLP plugin provides this functionality to ensure that your website respects user privacy from the moment they land on your page.

How to Use the Script Block Feature #

Follow these steps:

  1. Log in to your WordPress Dashboard. Navigate to Cookie Consent.
  2. Click on the Script Blocker tab. This will take you to the main script blocker configuration page.
  3. Now, let’s see what happens when the script is off.
  4. Now, when a user visits your site, they will be able to see the video regardless of whether they have given consent or not.
  5. However, if you have enabled the script blocker, someone visiting your site won’t be able to see the video until consent is given.
  6. In this example, we have assigned an unclassified cookie to the YouTube video. This means that when the visitor accepts the unclassified cookie, they will be able to watch the video.
  7. Additionally, if you want to add any extra scripts, you can insert them in the header, body, or footer section of your site.
  8. Once you have added all the scripts, make sure to save your changes.

Script dependency: Script dependency refers to a situation where one script relies on another script to function correctly. 

As you can see, there is an option to specify which scripts depend on others.

Whitelist Script: A whitelist script is a script that you allow to run on your site regardless of user consent settings. Adding a script to the whitelist will always execute, even if other scripts are blocked by the script blocker.

  1. Navigate to the Whitelist Scripts tab.
  2. Look for a button to Add New Entry.
  3. Enter the script’s URL and the name of the script. 
  4. Save the new whitelisted script. 

When you add a script to the whitelist, it will always run on your website, even if the user has not given consent.

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on November 20, 2025
Respect Do Not Track & Global Privacy Control
Table of Contents
  • What is Script Blocking?
  • How to Use the Script Block Feature

Our Products

  • Free WP Legal Pages
  • Free WP Cookie Consent
  • Comparison
  • Responsive Theme
  • Responsive Blocks
  • Responsive Addons For Elementor

Company

  • Blog
  • Affiliate Program
  • Refund Policy
  • Privacy Policy
  • GDPR Privacy Policy
  • GDPR Cookie Policy
  • Terms of Use

Support

  • Documentation
  • Bug Bounty Program
  • Changelog
  • Contact Us
Google Certified CMP Badge
WP Cookie Consent - IAB Approved CMP
X-twitter Youtube
Copyright © 2010-2025 WPLegalPages Inc