Section 154 of The Bharatiya Sakshya Adhiniyam :Indecent and scandalous questions.

Indecent and scandalous questions. The Bharatiya Sakshya Adhiniyam 2023
The Court may forbid any questions or inquiries which it regards as indecent or scandalous, although such questions or inquiries may have some bearing on the questions before the Court, unless they relate to facts in issue, or to matters necessary to be known in order to determine whether or not the facts in issue existed.