Don’t treat cats like how you treat your kids. Reprimand and fear of punishment may work to some extent with your kids. But, the same trick would not work with pet cats. As a matter of fact, it has been proven that modern kids also don’t like being scolded or reprimanded if they make mistakes.
Male cats are the ones mainly responsible for spraying inside the house. They think of the house they reside in as their territory. So, they would spray urine at specific spots in the house to imitate territorial marking. So, next time when you adopt cats, try not to adopt male cats and give more preference to female cats.
Some owners of cats think that cats spraying inside the house is always a voluntary action. But, that is not how it happens. Sometimes, the cats would not have control over their spraying habits. There would be something else which may be troubling the cat and causing them to spray inside the house. Determining if it is a voluntary action or an involuntary action is a key to figuring out how to stop cats from spraying inside the house.