To protect yourself from the sun:
Wear a wide-brimmed hat (also keeps you cooler).
Wear sunglasses.
Apply SPF 15 or higher sunscreen. (The most effective products have “broad spectrum” or “UVA/UVB protection” on their labels.)