The easy fix is if it hits a hand regardless of intent or position it’s a free kick or penalty. Simple. If you’re good enough to twat a ball at someone’s hand from point blank range then happy days.
Agree with this - if it hits your hand it's handball - regardless of intent, proximity, etc. Sounds harsh but there is no grey area and everyone knows where they stand.

