Some foods and alcohol

People who are intoxicated tend to put out more carbon dioxide and sweat more, which seems to attract mosquitoes—possibly along with other unknown factors.

Swiger said diet can also impact mosquito attraction, though the extent of its effect hasn’t been fully explored. Garlic and vitamin B are often anecdotally reported to deter these bugs, but the evidence is limited.

However, Swiger said bananas and other high-potassium foods have shown to attract mosquitoes, perhaps because they lead to an increase in lactic acid production in the body, which helps mosquitoes locate animals.

This also impacts a person’s skin microbiota, or the microorganisms living on the skin.

A taste for the local flavor

Sometimes mosquitoes develop more specific tastes in a location over time as an evolutionary trait.

“Mosquitoes in certain neighborhoods can become accustomed to specific scents and start to prefer those over others,” Swiger said. “Their generations are about two weeks long, and urban mosquitoes that bite humans often don’t travel far. As a result, they seem to get familiar with the local scents.”