What the law strictly prohibits is "pimping," operating a brothel, soliciting in public places, and human trafficking.
In India, sex work itself (the private exchange of sexual services for money) is not inherently illegal. A person can technically engage in sex work behind closed doors. Mysore Call Girls
In recent years, the Supreme Court of India has made landmark observations, stating that sex workers are entitled to dignity and equal protection under the law (Article 21), and that police should not interfere or take criminal action against adult sex workers who participate consensually. Safety, Ethics, and Rights What the law strictly prohibits is "pimping," operating