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>

DPO-as-a-Service: Outsourced Data Protection Officer for GDPR & Privacy Compliance in 2026
Your legal team flags it in a quarterly review. Your SaaS platform is processing personal data from tens of thousands of EU users. Your investor due diligence pack includes a line about GDPR accountability. And someone in the room asks: "Do we have a Data Protection Officer?" The silence that follows is expensive.
- Data Protection
- Privacy Governance

Agentic AI Governance: Operational Frameworks and Compliance for Autonomous Systems
Most enterprise AI deployments to date have been reactive: the system produces an output, a human reviews it, and something happens next. Agentic AI breaks this pattern.
- Data Protection

TCF v2.3 Migration Guide: Implementation Checklist and Troubleshooting
The February 28, 2026 deadline has passed. Any TC string generated on or after March 1, 2026 without a valid disclosedVendors segment is now considered non-compliant under IAB TCF v2.3.
- Data Protection