I’ve been told that peeing on a male cat who sprays your house will make him stop spraying because you’ve effectivly marked him as YOUR territory, so, ummm . . . he figures that if he’s your territory, everything else is, too.
Known people who’ve done it. It apparently works. Dunno.