Indian Evidence Act, 1872
Section 26 Confession by accused while in custody of police not to be proved against him
No confession made by any person whilst he is in the custody of a police-officer, unless it be made in the immediate presence of a Magistrate, shall be proved as against such person.
Explanation.––In this section “Magistrate” does not include the head of a village discharging magisterial functions in the Presidency of Fort St. George or elsewhere, unless such headman is a Magistrate exercising the powers of a Magistrate under the Code of Criminal Procedure, 1882 (10 of 1882).
Bharatiya Sakshya Adhiniyam, 2023
Section 23 Confession to police officer
The part that carries Evidence Act 26 is marked.
(1) No confession made to a police officer shall be proved as against a person accused of any offence.
(2) No confession made by any person while he is in the custody of a police officer, unless it is made in the immediate presence of a Magistrate shall be proved against him:
Provided that when any fact is deposed to as discovered in consequence of information received from a person accused of any offence, in the custody of a police officer, so much of such information, whether it amounts to a confession or not, as relates distinctly to the fact discovered, may be proved.