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>

sec-GPC Explained: The Future of Browser Privacy Signals
You've spent months building a consent banner that finally passes legal review. Then a regulator sends you a notice: your system ignored 40,000 browser-level privacy signals last quarter. The fine references a three-letter abbreviation you've never seen in a compliance doc: sec-GPC.
- Legal & News
- Cookie Consent

OneTrust vs Secure Privacy vs Osano: Privacy Governance Platform Comparison
Choosing between OneTrust vs Secure Privacy vs Osano determines whether your privacy program achieves genuine governance maturity or merely checks compliance boxes. OneTrust dominates enterprise segments with €290 million in GDPR fines imposed partly due to organizations lacking proper consent infrastructure. Osano targets mid-market simplicity. Secure Privacy differentiates through AI-powered automation delivering 60-80% faster DPIA completion while supporting 130+ global privacy laws in unified pricing.
- Legal & News
- Data Protection

Do Not Track (DNT): Why the First Browser Signal Failed
In 2012, Do Not Track (DNT) promised a simple solution: a single browser setting that would tell every website to stop following you across the internet. Major browsers adopted it within months. Millions of users enabled it. Yet by 2019, the standard was officially dead, and browsers began removing the feature entirely.
- Legal & News
- Data Protection