Yeah, I just looked it up.
79.1 - Hand Pass - A player shall be permitted to stop or “bat” a puck in the air with his open hand, or push it along the ice with his hand, and the play shall not be stopped unless, in the opinion of the on-ice officials, he has directed the puck to a teammate, or has allowed his team to gain an advantage, and subsequently possession and control of the puck is obtained by a player of the offending team, either directly or deflected off any player or official.
Not going to lie, there is a lot of ambiguity and entirely too much left to the ref's judgement. I hate these rules. Of course, I'd actually allow players to deflect a shot with their hands if they so desired. I personally wouldn't use that as a strategy, but whatever floats your boat.