25 August 2026·3 min read
Your Website Is Probably Breaking India's New Privacy Law
India's Digital Personal Data Protection Act changes how websites and apps must handle personal data. A plain-English guide for founders and developers.
If your website or app collects personal data from people in India, there is a law you need to know about: the Digital Personal Data Protection Act, 2023, usually called the DPDP Act.
Many sites today collect names, emails, phone numbers and more without thinking much about it. Under the DPDP Act, that needs to change. This post walks through what the law means for a normal website, without the legal jargon.
What Counts as Personal Data?
Personal data is any data about a person who can be identified from it. For example:
- Name, email address and phone number
- Address and location
- Aadhaar, PAN and other ID numbers
- Payment and bank details
- Things like IP addresses and device IDs, when they can be linked to a person
If your contact form, signup page or analytics collect any of this, the law applies to you.
The Main Ideas
1. Ask for Clear Consent
Before you collect personal data, people should know what you are collecting and why, and agree to it. Consent should be:
- Clear: in simple language, not hidden in long legal text
- Specific: for a stated purpose
- Freely given: not forced, and not a pre-ticked box
- Easy to withdraw: as easy as it was to give
2. Give a Simple Notice
Tell people what data you collect, why you collect it, and how they can use their rights or complain.
3. Collect Only What You Need
If you only need an email address, don't ask for a phone number and date of birth "just in case". Less data means less risk.
4. Use Data Only for the Stated Purpose
Someone who gave you their email for order updates did not sign up for marketing. Don't quietly add them to those emails.
5. Keep Data Safe
You must take reasonable security measures to protect personal data. If there is a data breach, the law expects you to report it.
6. Delete It When You're Done
Don't keep personal data forever. When the purpose is complete, delete it, unless another law requires you to keep it.
7. Be Extra Careful With Children
For children's data, the law requires verifiable consent from a parent or guardian, along with extra limits.
8. Respect People's Rights
People can ask what data you hold about them, ask you to correct it, and ask you to delete it. You need a way to handle these requests.
Why It Matters
Penalties under the DPDP Act can be very large, up to ₹250 crore for some failures. Penalties aside, respecting privacy builds trust, and customers notice.
Common Problems on Websites Today
Many sites have at least one of these:
- Tracking scripts that load before anyone agrees: analytics and ad pixels that run the moment the page opens.
- A cookie banner with only an "Accept" button, which is no real choice.
- Personal data in logs. Phone numbers, emails or Aadhaar numbers sitting in server logs and error reports.
- Forms that ask for too much.
- No way for people to ask for their data to be deleted.
Where to Start This Week
- List what you collect. Every form, every script, every database table with personal data.
- Check what loads before consent. Open your site in a private window and look at what runs immediately.
- Add a real consent banner, with "Accept", "Reject" and clear choices.
- Clean your logs. Mask personal data before it is written.
- Write a simple privacy notice in plain language.
I have built some free, open-source tools that help with this:
- consentbar: a consent banner built for the DPDP Act and GDPR, in 23 languages
- dpdp-india: finds and masks Indian personal data (Aadhaar, PAN, phone, UPI and more) in logs and AI prompts
- dpdp-scanner: finds personal data in your code and database schemas
Start Small, but Start
You don't need to fix everything in one day, but you do need to start. Privacy is easier to build in early than to bolt on later.
This post is a simple overview for general learning, not legal advice. The detailed rules and timelines can change, so please check the latest official guidance or speak to a legal expert for your situation.
Newsletter
Get New Posts by Email.
New posts on building, shipping and leading tech teams, sent to your inbox. No spam, and you can unsubscribe any time.
Keep Reading
More Posts.
10 September 2026·3 min
Aadhaar, PAN and UPI in Your Logs: How to Find and Mask Them
Indian ID numbers often end up in logs, error reports and support tickets by accident. How to spot them, mask them and keep them out for good.
Read Post26 October 2026·2 min
Never Paste Customer Data Into AI. Do This Instead.
Pasting customer data into AI tools is fast, and risky. How to get the benefits of AI without leaking personal data, with simple steps any team can follow.
Read Post15 August 2026·3 min
DPDP Act for Developers: A Plain-English Checklist
India's DPDP Act is not just a legal topic. Much of it lands in your code, forms, logs and databases. A practical checklist for developers.
Read Post