Treatment for an underlying condition often stops frequent headaches. If no such condition is found, treatment focuses on preventing pain. Prevention strategies vary, depending on the type of headache you have and whether medication overuse is contributing to your headaches. If you’re taking pain relievers more than three days a week, the first step might be to wean yourself off these drugs with your doctor’s guidance.