PURPOSE: This randomized phase III trial is studying topical sunscreen to see how well it works compared with a placebo in preventing skin rash in patients receiving drugs such as erlotinib or cetuximab for cancer.