Treatment Avoidance of sun exposure through use of protective clothing and opaque sunscreens Afamelanotide for prevention of phototoxic events and amelioration of phototoxic reactions Symptomatic treatment for skin burning with cold compresses, nonsteroidal anti-inflammatory drugs (NSAIDs), and topical and / or oral corticosteroids Management of hepatobiliary complications Treatment for erythropoietic protoporphyria and X-linked protoporphyria is similar.