Pesky common houseflies prefer a deep blue with pinstripes over the bright yellow hue traditionally used in flytraps, according to University of Florida research released on Wednesday.
The finding led researchers to create the Florida Fly-Baiter, a blue-striped trap that killed more than 40,000 flies in a one-month test with a 96 percent success rate, according to Phil Koehler, a professor of urban entomology.
Funded by the U.S. Department of Defense's Deployed War-Fighter Protection program, the trap was designed to help soldiers combat flies that swarm and spread disease in the aftermath of battle when infrastructure breaks down.
"You can't talk to someone because the buzzing is so bad and you can't open up your mouth because a fly will fly in," Koehler said.
Koehler said the Fly-Baiter also will be available within the year to humanitarian organizations in regions hit by natural disasters, and to the general public swatting the errant fly at the dinner table.
Key to the device were behavioral tests and electro-retinograms, which charted electrical activity in the retina to determine the flies' color preference. In one test, flies were placed in a tunnel with blue and yellow end pieces.
"They chose blue 4-to-1 over yellow which in a political election would be a landslide," Koehler said.
Further research showed the flies were even more attracted by blue with skinny black lines, which apparently look to the flies like crevices on the outside of buildings where the insects make their entrance, Koehler said.
The Fly-Baiter works by attracting flies from far away with the new color palette. They also are lured to poisoned bait by a substance that includes protein and sweet and sexually enticing compounds. Koehler said most flies drop dead instantly.
After discovering a successful combination, Koehler said he asked a trap manufacturer why his traps were yellow.
"He said they've always been that color. Nobody knows why," Koehler said.
Until the Fly-Baiter, Koehler said aerial spraying was the typical option to combat swarms of flies.
"If you were standing there when they sprayed, they were falling like rain and you could hold out your hand and fill it with flies," he said. Koehler said the device has been tested in Iraq, Afghanistan, and Greece. It will be the first product funded by the military's Deployed War-fighter Program to go into production.
The Fly-Baiter already proved its worth at one military outpost in Egypt when one of the researchers, who also is a soldier, deployed with a prototype. Koehler said the soldier-researcher's superior officer awarded him a medal for ridding the camp of the pests.
He estimated the wholesale cost at about $10, not including the bait.

![Miss USA 2013: Meet The 51 Contestants Competing In The Beauty Pageant [PHOTOS] Miss USA 2013: Meet The 51 Contestants Competing In The Beauty Pageant [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_multimedia/public/2013/06/13/miss-usa-contestants_14.jpg)


![Stephen Hester Ousted As Royal Bank Of Scotland (RBS) CEO Following Bank's Talks With UK Treasury [VIDEO] Stephen Hester Ousted As Royal Bank Of Scotland (RBS) CEO Following Bank's Talks With UK Treasury [VIDEO]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/12/rtr3dngo.jpg)
![Hong Kong House Prices Shoot Up, Greek House Prices Plummet [MAP] Hong Kong House Prices Shoot Up, Greek House Prices Plummet [MAP]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/11/knight-rank-house-prices.png)


![Turkish Riot Police Enter Taksim Square: Riot Police Clash With Protesters In Attempt To Break Up Protests [PHOTOS] Turkish Riot Police Enter Taksim Square: Riot Police Clash With Protesters In Attempt To Break Up Protests [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/11/protester-taking-cover.jpg)
![Flooding In Europe: Floods In Germany, Austria, The Czech Republic, Hungary And Slovakia In Pictures [PHOTOS] Flooding In Europe: Floods In Germany, Austria, The Czech Republic, Hungary And Slovakia In Pictures [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/06/11/flooding-europe-billboard.jpg)
![Robin Thicke Credits Justin Timberlake For Success Of Chart Topping Single 'Blurred Lines' [VIDEO] Robin Thicke Credits Justin Timberlake For Success Of Chart Topping Single 'Blurred Lines' [VIDEO]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_multimedia/public/2011/11/21/193689-singer-robin-thicke-poses-backstage-at-the-2011-american-music-awards-.jpg)











![Apple iOS 7: New Features Dazzle At WWDC 2013, Designed To 'Bring Order To Complexity' [PHOTOS] Apple iOS 7: New Features Dazzle At WWDC 2013, Designed To 'Bring Order To Complexity' [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/06/10/iphone5-ios-7.jpg)

![Unpaid Intern Lawsuit Against Atlantic Records And Warner Music Group Tests Legality Of Music Industry Internships [EXCLUSIVE] Unpaid Intern Lawsuit Against Atlantic Records And Warner Music Group Tests Legality Of Music Industry Internships [EXCLUSIVE]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/06/17/wmg.jpg)


![VIDEO USA 1 - 0 Honduras: Highlights Of The Americans Win Over Honduras Behind Altidore's Goal [World Cup Qualifying - Brazil 2014] VIDEO USA 1 - 0 Honduras: Highlights Of The Americans Win Over Honduras Behind Altidore's Goal [World Cup Qualifying - Brazil 2014]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/06/19/jozy.jpg)


Like or Follow us for updates on the biggest stories!