Taking adequate sleep, massaging the back side of the neck to relieve muscle strain, following proper posture, discarding alcohol and smoking from your lifestyle and practicing meditation and yoga for stress relief, are some of the home remedies to treat and prevent tension headaches.