Moisturize your skin before tanning, stay hydrated, and wear a hat to protect your eyes from burning. Only sunbathe between 10am and 4pm to avoid overexposure to UV rays. Eat dark chocolate and tomatoes which contain antioxidants that help prevent sunburn and skin cancer. Reapply broad spectrum sunscreen every two hours to block UV rays and avoid sunburn.