1year old hitting

My one year old throwing things and hitting if I’m closer or next to him. I tried to say No or distract. He doesn’t care and he simply repeats. I don’t know how to deal with this:(