upside the head - Wiktionary, the free dictionary
From Wiktionary, the free dictionary

upside the head (not comparable)
- (informal) Towards the top of the head.
2002, Pamela Duncan, Moon Women:
Ruth Ann clenched her hand around the hairbrush and felt like smacking Ashley upside the head with it. She knew better than to talk that way.
- This phrase is most commonly used with verbs involving physical harm, or similar events. For example, to hit upside the head, to smack upside the head, etc.