Article 39 bars proof of a confession made while the accused is in the custody of a police officer unless it is made in the immediate presence of a Magistrate. The rule does not require proof of coercion, because custody itself is treated as creating a risk of inducement. A Magistrate recording a confession under section 164 of the CrPC must satisfy himself of its voluntariness, after which the confession is admissible subject to the safeguards of that section.