Title: How to block scripts
Last modified: September 15, 2021

---

# How to block scripts

 *  Resolved [Lindsay Heydon](https://wordpress.org/support/users/lindsay-heydon/)
 * (@lindsay-heydon)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/how-to-block-scripts/)
 * Using cookiebot I get this report (one example below).
 * VISITOR_INFO1_LIVE youtube.com HTTP 179 days
    First found URL: [https://mywebsite.com/](https://mywebsite.com/)
   Cookie purpose description: Tries to estimate the users’ band width on pages 
   with integrated YouTube videos. Initiator: Script tag, page source line number
   383 Source: [https://www.youtube.com/iframe_api](https://www.youtube.com/iframe_api)
   via [https://mywebsite.com/wp-includes/js/wp-custom-header.min.js?ver=5.8.1](https://mywebsite.com/wp-includes/js/wp-custom-header.min.js?ver=5.8.1)
   Data is sent to: United States (not adequate) Blocked until accepted by user:
   No
 * As far as I’m aware no plugin/video used on site. Certainly no scripts added 
   to the header (the only example you give re adding a script is GA, and this is
   manually added to the site’s header, so makes perfect sense).
 * My question is how do you locate scripts found by your scanner that you haven’t
   yourself added to the header of your theme?
 * Do I have to use something like cookiebot then from the report it produces use
   initiator line number and source information (above) to locate and then add the
   scripts of those cookies in the non-necessary cookie script input field in your
   plugin settings.
 * But how do I then delete the script in the source code if in a file loaded by
   a plug-in/embed?
 * Totally confused, probably my lack of understanding. Many thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/how-to-block-scripts/#post-14876771)
 * Hi [@lindsay-heydon](https://wordpress.org/support/users/lindsay-heydon/),
 * Greeting from Webtoffee!
 * As we just had another user with a similar query, please refer to the reply in
   [this post](https://wordpress.org/support/topic/plugin-integration-with-cookieyes-defined-cookies/#post-14876766).
 * Hope it clarifies your concern. Feel free to revert if anything further.

Viewing 1 replies (of 1 total)

The topic ‘How to block scripts’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/how-to-block-scripts/#post-14876771)
 * Status: resolved