A cat sprays urine inside the house for plenty of reasons. It may be due to a territorial fight or a hormonal trigger or some emotional reason. A cat normally sprays inside the house when there is nobody in the house or at least when nobody is watching it. However, if a cat sprays urine even when you are looking at it, then there is something else which is wrong with the cat and you need to be carefully searching for ideas on how to stop a cat from spraying.
If the cat’s spraying problem is beyond control, then there must be something wrong with the urinary tract of the cat and you need to consult a veterinary doctor about this particular problem of the cat. You must understand that the cat is not spraying deliberately. It may be possible that the cat is stressed about something which is causing it to spray inside the house in front of you. A cat cannot talk. Hence, it cannot communicate its feelings to you by talking. So, you need to take the initiative to find out how to stop a cat from spraying inside the house. The first step should be to take the cat to a veterinary doctor and ask his advice.