Section 40 in The Prisons Act, 1894
Title: Visits to civil and unconvicted criminal prisoners.
Due provision shall be made for the admission, at proper times and under proper restrictions, into every prison of persons with whom civil or unconvicted criminal prisoners may desire to communicate, care being taken that so far as may be consistent with the interests of justice, prisoners under trial may see their duly qualified legal advisers without the presence of any other person.
Title: Search of visitors.
(1) The Jailer may demand the name and address of any visitor to prisoner, and, when the Jailer has any ground for suspicion, may search any visitor, or cause him to be searched, but the search shall not be made in the presence of any prisoner or of another visitor.
(2) In case of any such visitor refusing to permit himself to be searched, the Jailer may deny him admission; and the grounds of such proceeding, with the particulars thereof, shall be entered in such record as the State Government may direct.
Title: Penalty for introduction or removal of prohibited articles into or from prison and communication with prisoners.
Whoever, contrary to any rule under section 1 introduces or removes or attempts by any means whatever to introduce or remove, into or from any prison, or supplies or attempts to supply to any prisoner outside the limits of a prison, any prohibited article,
and every officer of a prison who, contrary to any such rule, knowingly suffers any such article to be introduced into or removed from any prison, to be possessed by any prisoner, or to be supplied to any prisoner outside the limits of a prison,
and whoever, contrary to any such rule, communicates or attempts to communicate with any prisoner,
and whoever abets any offence made punishable by this section,
shall, on conviction before a Magistrate, be liable to imprisonment for a term not exceeding six months, or to fine not exceeding two hundred rupees, or to both.
1 Subs. by the A. O, 1937, for "60".
Title: Power to arrest for offence under section.
When any person, in the presence of any officer of a prison, commits any offence specified in the last foregoing section, and refuses on demand of such officer to state his name and residence, or gives a name or residence which such officer knows, or has reason to believe, to be false, such officer may arrest him, and shall without unnecessary delay make him over to a Police-officer, and thereupon such Police-officer shall proceed as if the offence had been committed in his presence.
Title: Publication of penalties.
The Superintendent shall cause to be affixed, in a conspicuous place outside the prison, a notice in English and the Vernacular setting forth the acts prohibited under section 42 and the penalties incurred by their commission.