Medication may be used to treat cutaneous porphyria in people who cannot have phlebotomy. Drugs used to treat malaria absorb extra porphyrins quickly and help your body get rid of them.