Children's personal data
Under the DPDP Act a child is anyone under 18 (s.2(f)). Processing a child's personal data needs a parent's verifiable consent, and some uses are barred outright.
Verifiable consent of a parent or lawful guardian
The Data Fiduciary shall, before processing any personal data of a child ... obtain verifiable consent of the parent of such child or the lawful guardian.
DPDP Act s.9(1)
Rule 10 says how: take appropriate technical and organisational measures, and check with due diligence that the person who says she is the parent is an identifiable adult, using details you already hold or a virtual token, such as one from a DigiLocker-based service (r.10(1)).
s.9(1) has no 'knowingly' limit, so a general website is not exempt just because it is not aimed at children. A reasonable minimum for a general service: say in the notice that it is for people aged 18 or over, ask a neutral age question (not pre-filled) where an account is created or consent is asked, and erase a child's data when you learn of it without a parent's consent. The Fourth Schedule allows processing needed to confirm that a user is not a child.
The Fourth Schedule also exempts some operators and purposes from parts of s.9, such as clinical establishments, educational institutions and child-care providers for specific activities, and some processing for a child's safety (r.12).
Tracking, behavioural monitoring and targeted advertising
A Data Fiduciary shall not undertake tracking or behavioural monitoring of children or targeted advertising directed at children.
DPDP Act s.9(3)
This bar holds even with a parent's consent. You must also not process a child's data in a way likely to harm the child's well-being (s.9(2)). If your audience includes under-18s, switch off advertising categories for them rather than offering a toggle, and do not run behavioural analytics on their sessions.