From the shiurim of Rabbi Elchanan Peretz shlita on monetary law, damages and the laws of robbery
A person who harasses the public, makes noise, blocks passageways, throws trash, or causes spiritual or educational harm in the public domain – the public, the synagogue gabbai and the beit din have the authority to stop him, fine him, and take firm measures against him in order to remove the nuisance!
Explanation of the sugya from the shiur:
The Shulchan Aruch rules (Choshen Mishpat 388:12): “Anyone who causes distress to the public – it is permitted to restrain him, to fine him, and to prevent him.”
The shiur discussed the sources of the sugya, from the words of the Ramban at the end of the third perek of Bava Kamma and the words of the Netivos HaMishpat:
Public harm is graver than harm to an individual: When one individual harasses and distresses the entire public (whether through a noise nuisance, blocking a road, or spiritual and educational corruption of the children of the community), the public is not obligated to tolerate the harm.
Enforcement authority: The public and the leaders of the town may use reasonable force, fine him monetarily, and remove him from the place in order to ensure the peace and order of the public.
(Sources: Shulchan Aruch, Choshen Mishpat 388:12; Ramban, Bava Kamma, end of chapter 3; Netivos HaMishpat, Choshen Mishpat 388.).
The answers were compiled from the shiurim of Rabbi Elchanan Peretz shlita and from rulings he received from HaGaon Rabbi Chaim Pinchas Scheinberg zt”l and from leading poskim, and are for study purposes only. One may not rely on what is stated here for practical halachic ruling; for a personal question, one should consult a rav or a Beit Horaah.