But what if you're already at the beach? Flies are less likely to attack in shady places, according to Landau, so staying under the umbrella will help. They also prefer wet skin, so dry off as soon as you get out of the water. They're attracted to dark colors, she said, so a light-colored swimsuit is your best bet.