WPLP Compliance Platform logo
Login
Get Started

Overview

3
  • Getting Started
  • Setup & Configuration
  • Platform Overview

Features Walkthrough

3
  •  Cookie Consent
  • Legal pages
  • Dashboard

Guides

17
  • What is the Right to Access?
  • What is the Right to be Forgotten
  • How To Schedule Automatic Cookie Scan
  • A/B Testing Feature
  • Implementing Google Consent V2 Mode using WPLP Compliance Platform
  • Google Consent Mode Troubleshooting with WPLP Compliance Platform
  • How to Verify if Google Consent Mode is Properly Implemented
  • Right to Data Portability Explained – What It Means & How to Comply
  • 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

Troubleshooting & Support

1
  • Common Issues & Solutions
View Categories
  • Home
  • Docs
  • WPLP Documentation
  • 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.

Updated on November 20, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Right to Data Portability Explained – What It Means & How to ComplyRespect 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

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

Support

  • Documentation
  • Bug Bounty Program
  • Changelog
  • Contact Us
IAB CMP Logo
Google Certified CMP Badge
Visa logo
Mastercard logo
Amex digital logo
Apple pay logo
Apple pay logo - 2
Google pay logo
X-twitter Youtube Instagram
Copyright © 2010-2026 HB Digital Inc