Patients with pain in the back of the head when coughing are considered to be related to a cold, and can be treated with anti-cold medication and pain relief medication, such as oral anti-cough granules or anti-viral oral liquid, compound licorice tablets, Asmus, and dextromethorphan, to relieve the cough. If the headache is severe, you can give symptomatic aminogest tablets, ibuprofen extended-release capsules, acetaminophen, pain relief tablets, and also local hot compresses or acupuncture, head massage, etc. can provide some relief to the pain in the back of the head.