Home remedies for headaches include drinking water to prevent dehydration, getting adequate magnesium through foods like almonds and spinach, limiting alcohol, sleeping well, and using essential oils topically or through inhalation. Essential oils like peppermint, eucalyptus, and rosemary can help treat headaches when diluted and applied to the temples or inhaled, and ice packs applied for 15-20 minutes can also provide relief.