Patients with erythropoietic protoporphyria or X-linked protoporphyria should avoid sun exposure; protective clothing, hats, and light-opaque titanium dioxide or zinc oxide containing sunscreens should be used.