Hi.. Try resting in a quiet dark room .. If you are having headaches not reduced by oral drugs, you may have to visit your doctor for a better choice of analgesics.. It could be in the form of injections, oral drugs, nasal spray.. You may also need drugs for prevention.. Apart from these lifestyle modifications in the form of proper sleep, regular eating habits, stress reducing exercises, avoiding abnoxious smell should help..