Is there any true way to prevent headaches?

Headaches. If you have tried all over the counterpain medications, you might consider a magnesium supplement, then see your doctor. You might need a daily medication like topamax (topiramate) or Propranolol to keep the headaches away. You can also find out if your headaches are coming from tension, dehydration, lack of sleep/poor sleep, skipping meals, stress, sleep apnea/snoring, or chronic sinus problems.
Depends. There are a number of preventive meds you can use. You should get a diagnosis of what type of headache you have or why they are occurring. So see your doctor for help.