The location of the urine marking, the frequency, duration and number of locations are important. The number of cats both inside and as well as contacts outside of the home should be determined. If the cat is not already neutered, castration is recommended. A urinalysis should be performed to rule out medical problems. The location of the urine spots should be determined.
Treatment is aimed at decreasing the motivation for spraying.
If the problem is cats outside of the home, then the best options are to find a way to deter the cats from coming onto the property or prevent the indoor cat from seeing, smelling or hearing these cats. Use remote control devices and booby traps to deter outdoor cats and to keep indoor cats away from the areas where they are tempted to mark. It may be helpful to house your cat in a room away from windows and doors to the outdoors, or it may be possible to block visual access to windows. When you are home and supervising you can allow your cat limited access to these areas. If the problem is due to social interactions inside the home, it may be necessary to determine which cats do not get along.