If you hit your cat you may increase the aggressive behavior. Second, painful punishment causes fear and owner avoidance . Third, owners that attempt to correct the playful aggression with physical contact may actually serve to reward the behavior. For punishment to be effective it must be timed to occur while the behavior is taking place. Punishment should be species appropriate.
Noise deterrents are often effective in cats.
For very young kittens, a hissing noise may deter excessive play behavior. Some cats need an even harsher noise. Commercially available rape alarms or air horns make extremely loud noises that will startle the cat and interrupt the behavior. What is most important in using these techniques is the timing. You must have the noisemaker with you so that you can immediately administer the correction.