fruit flies will fly in but won't be able to get out. pour about a half-cup of beer (old or fresh) in a mason jar with a lid. hammer a couple of holes in the metal lid and secure. fruit flies enjoy the beer then drown.