=== Frtech DPDP Consent Platform ===
Contributors: frtech
Tags: dpdp, privacy, cookie consent, india, gdpr
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: trunk
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight, cache-safe Consent Management Platform tailored for India's DPDP Act.

== Description ==

The DPDP Consent Platform is a secure, compliant cookie consent banner designed specifically to help WordPress sites align with India's Digital Personal Data Protection (DPDP) Act. 

Unlike many complex CMPs, this plugin is designed to prevent "implied consent" by strictly blocking tracking scripts (like Google Analytics and Meta Pixel) until the user explicitly opts in. 

= Key Features =
*   **Strict Script Gating:** Analytics and marketing scripts are completely blocked from firing until explicit consent is given.
*   **Cache-Safe Architecture:** Designed to be compatible with WordPress page caching plugins (like WP Rocket, Cloudflare) by utilizing client-side JS script execution.
*   **Granular Preferences:** Users can choose to accept all, reject all, or selectively toggle Analytics and Marketing categories.
*   **Immutable Audit Logs:** Securely logs anonymized IP hashes, timestamp, and specific consented categories into the database to serve as compliance proof.
*   **Persistent Consent Withdrawal:** A floating privacy shield allows users to easily change or withdraw their consent at any time.

== Installation ==

1. Upload the `dpdp-cmp` directory to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **DPDP Consent** in the left admin sidebar.
4. Paste your raw Google Analytics and Meta Pixel scripts into the designated boxes.
5. The frontend banner will now handle the blocking and execution of those scripts automatically.

== Frequently Asked Questions ==

= Does this plugin guarantee my site is fully DPDP compliant? =
No plugin can guarantee full legal compliance on its own — this tool handles cookie/tracking consent specifically. We strongly recommend consulting a legal professional for your overall compliance posture and ensuring your privacy policy is up to date.

= Does this plugin block trackers from other plugins? =
No. This plugin strictly blocks the specific tracking scripts you manually configure in its settings. It does not automatically scan or block trackers hiding inside page builders, third-party plugins, embedded videos, or live-chat widgets. A full site audit remains the site owner's responsibility.

= Will this slow down my site? =
No. The plugin is extremely lightweight and its frontend architecture is built specifically to remain performant even alongside aggressive page caching.

== Screenshots ==

1. The frontend DPDP consent banner.
2. The granular customization modal for privacy preferences.
3. The WordPress admin audit log dashboard.

== Changelog ==

= 1.0.0 =
* Initial release of the DPDP Consent Platform.
* Cache-safe script injection.
* Database-backed audit trails with IP hashing.
* Granular category selection UI.
