Toddler hitting and biting

Hi moms, I know all toddlers do it to varying degrees but what’s the best way to deal with a toddler (almost 2) who is hitting a lot? It’s not other kids, just his poor old dad mainly! I’m safeish… for now! :smiley: We are trying to explain to him that it’s not okay etc but he doesn’t fully get it, any advice appreciated!