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>

India DPDP Phase 2: What Businesses Must Do to Prepare
Your SaaS platform just onboarded its first major Indian enterprise customer. Marketing is running campaigns targeting users in Mumbai and Bangalore. Product is building features specifically for the Indian market. Legal received notification that your organization may be designated a Significant Data Fiduciary.

How to Automate Governance, Risk & Compliance (GRC) in 2026
Your compliance team just spent three weeks preparing for an audit, manually collecting evidence from dozens of systems. Risk management lives in spreadsheets that are outdated the moment they're shared. Privacy requests take days to fulfill because no one knows where data actually lives. Governance meetings focus on updating documentation instead of managing actual risk.
- Data Protection
- Privacy Governance
- Legal & News

AI Risk & Compliance in 2026: What Enterprises Must Prepare For
Your data science team just deployed a new AI-powered customer service agent. Marketing is testing generative AI for content creation. Product wants to embed AI features across your platform. Legal received a questionnaire about your AI governance program from a major enterprise customer. Your board asked what controls are in place to manage AI risk.
- Data Protection
- Privacy Governance
- Legal & News