If you are scratched or bitten by a cat or dog, you need to get vaccinated immediately in the following situations:
Regardless of the owner's explanation, if someone else's cat or dog has a scratch, it's best to get it vaccinated. When rescuing stray cats or dogs, if you are scratched or bitten by them, get vaccinated immediately. If your cat is free-roaming and you are bitten or scratched by it, it's also recommended to get vaccinated. If you are bitten or seriously injured by your dog, it's also recommended to get vaccinated. 
If you are scratched or bitten in the following situations, simply wash the wound with soap and disinfect it with iodine; no injection is needed: If you are scratched on your hand or body while playing with your pet cat, and these wounds are mostly single wounds, not intentionally inflicted by the cat, and the cat never goes outside, no injection is needed; If you are slightly scratched by your dog's paw while playing with it, you can treat the wound yourself; no injection is needed; If your dog has been vaccinated, and you are bruised or cut by its teeth while playing with it, you can treat the wound yourself; no injection is needed.
How owners can prevent being scratched by their cats:
It's recommended to keep domestic cats indoors, not let them roam freely. Free-roaming cats go out to play every day and come into contact with stray cats, so if a free-roaming cat bites its owner, it will definitely need to be vaccinated. Domestic cats, because they spend most of their time indoors, don't necessarily need vaccinations even if they scratch their owners; just make sure to trim their nails regularly.
Some pet owners have a habit of feeding stray cats. It is recommended that when feeding stray cats, if you are not familiar with the cat, do not directly touch it with your hands. First, use your sleeve to test the cat's reaction, and then decide whether to continue touching it.