Prismatic Chastity Belt

7th-level Abjuration

Casting Time: 1 Action
Range: 10 feet
Components: V, S
Duration: 24 hours

Paranoid king Randai married a much younger and very beautiful princess. Seeing the lusty looks on the faces of his knights and the castle staff he charged the court wizards with finding  a solution to the problem.

After much research they came up with a novel application of the principles behind prismatic sphere, spray and wall. Anyone attempting to have their way with the princess would have their genitalia roasted by flames, burned by acid, electrocuted, poisoned, turned to stone and teleported to another plane.
Overjoyed the king showered his wizards with gold and immediately left on an expedition, knowing his wife was safe. Whereupon, immune to the effects of their own spell, the wizards retired to the princess’ quarters for the time of their lives.
None-the-less, the spell remains popular with jealous husbands all over the land.