One who curses an established judge violates the negative commandment of "You shall not curse Elohim," in addition to the negative commandment regarding any Jew. And one who curses any Jew, even if he curses a deaf person who does not hear and suffers no distress from this at all, nevertheless violates a negative commandment, as it is said: "You shall not curse the deaf," meaning even a deaf person, and all the more so one who is not deaf. Regarding a judge, he violates two negative commandments, besides the fact that it is an insult to the entire Torah, since he judged a matter of Torah law; when one disgraces the judge, it is as if he disgraces the Torah, Heaven forbid. There is a great prohibition when one disgraces the judge with any derogatory speech or curses him with any type of curse whatsoever. However, he is not liable for lashes unless he curses him with a Name or a substitute name. Even with the names of foreign worship that the nations call the Holy One, Blessed be He, he is liable for lashes during the time of the Temple if there were witnesses and a warning, and even if the one cursed forgave him. But without a warning, or if he cursed without a Name or a substitute name, or if the curse came through the negation of a blessing—such as if he said, "May so-and-so not be blessed to Hashem"—or if he curses the dead, he is not liable for lashes, but there is a great prohibition in this. Similarly, one who curses himself, the prohibition is like one who curses others. And if he insulted a talmid chacham, they punish him, and the authority is in their hands to act when their intention is for the sake of Heaven. And even when he insulted an am ha'aretz, they punish him according to their estimation when they have the power to do so [nowadays these laws are not practiced].
המקלל דיין קבוע עובר בלאו דאלקים לא תקלל נוסף על הלאו של כל ישראל והמקלל אחד מישראל אפילו מקלל לחרש שאינו שומע ואינו מצטער מזה כלל מ"מ עובר בלאו שנאמר לא תקלל חרש כלומר אפילו חרש וכ"ש לאינו חרש ובדיין עובר בשני לאוין מלבד שהוא עלבון כלל התורה אחרי שדנו ד"ת כשמבזה הדיין כמבזה התורה ח"ו ואיסור גדול יש כשמבזה את הדיין באיזה דיבור של גנאי או מקללו באיזה מין קללה שהוא אך מלקות אינו חייב רק כשמקללו בשם או בכינוי ואף בשמות לע"ז שקוראים להקב"ה האומות חייב מלקות בזמן המקדש אם היה בעדים והתראה ואפילו מחל המתקלל אבל בלא התראה או שקילל בלי שם וכינוי או שהקללה באה משלילת הברכה כגון שאמר אל יהי פלוני ברוך לד' או מקלל את המת אינו חייב מלקות אבל איסור גדול יש בזה וכן המקלל את עצמו האיסור כמו מקלל לאחרים ואם חירף לת"ח עונשים אותו והרשות בידם לעשות כשכוונתם לשמים ואף כשחירף לע"ה עונשין אותו כפי ראות עיניהם כשיש יכולת בידם [עתה אין נוהגים דינים אלו]: