 have them heading their way. A few foods that might keep mosquitoes away include basil, sage, rosemary, grapefruit, and anything with garlic or onions. But then with garlic or onions, you've got another problem to deal with. Anyway, beer, bananas, and more foods that might attract mosquitoes. Yeah, if you drink a couple of beers and go outside, sit on the deck, that may be the cause of why your body's attracting mosquitoes.