To prevent sunburn while camping, apply a broad-spectrum sunscreen with an SPF of at least 30 before heading outdoors. Reapply sunscreen every two hours or after swimming or sweating. Wear protective clothing, such as long sleeves, sunglasses, and a wide-brimmed hat, and seek shade during peak sun hours.