Hi
Welcome to the MedHelp forum!
For most people the head would hurt on vigorous shaking. However, this could also be due to high BP or due to pinched nerve. Hence it would be better to get this examined. Hope this helps. Take care!
For how long have you had the pain? Are you nauseous? Are you having disturbed vision?
Do you have any other medical conditions or are you taking any medication?