How to block cookies and trackers with JavaScript rewrite
This guide explains you how to block cookies and plugins with Secure Privacy using Javascript rewrite.
To block cookies and trackers you need to change the attributes of the script tags on your website. Follow these steps to change the attributes.
- Apply the attribute sp-consent="PLUGIN NAME" to the script/image tags on your website. Depending on where you have installed the plugins, this may be inside a module, plugin or directly on your website. Make sure that you write the exact plugin name, which appears on your Scan Report.
- On script tags change the attribute 'type' from 'text/javascript' to 'text/plain'.
- If you are using a pixel tracker (image trackers), then change the attribute “src” from “src” to “data-src”.
Here is an example of how it would look after you have modified a Google Analytics script.
Normal script tags look like this:
<script type="text/javascript"> code…
</script>
Using script type re-writing, you need to change the scripts to:
<script type="text/plain" sp-consent="Google Analytics"> code…
</script>

Data Privacy in Carbon Credit Trading: Challenges, Risks, and Regulatory Frameworks
Carbon credit markets have become essential infrastructure for global climate action, processing billions of dollars in environmental transactions annually. Yet beneath this critical climate finance mechanism lies a troubling reality: the sector operates with fragmented data privacy protections that expose both individual traders and corporate participants to significant risks.
- Legal & News
- Data Protection

Dynamic Consent for EdTech Platforms: Transforming Student Data Privacy Through Continuous Control
Your child clicks through another learning app at school. Math practice, reading assessment, virtual science lab — each platform collecting data about learning patterns, behavior, and performance. Meanwhile, you signed a broad consent form months ago that covered "educational technology use" without knowing which specific platforms your child would encounter or how their data would be analyzed, shared, or stored.
- Legal & News
- Data Protection

Your VR Headset Is Watching: The Hidden Biometric Compliance Crisis in Immersive Tech
That VR headset tracking your eye movements at 120 frames per second isn't just creating immersive experiences—it's generating detailed biometric profiles that fall under some of the world's strictest privacy laws.
- Legal & News
- Data Protection