1. Cut the cat's nails regularly.
Every time the cat tries to scratch you, you reprimand it severely and pat it on the forehead to let it know that my master doesn't like it. This method only works for some cats. Although my cat sticks out its paws when playing, it is not too dangerous. Even if they hurt someone, they will look scared and know that they have made a mistake.