when there were cows here on the farm. we used fly traps. was like a 1 to 2 gallon clear plastic jug, and the lid had a funky funnel like thing on top of it. were flies would fly in, but were to stupid to figure out how to fly back out. ya put a little bit of water and 'stink bait" in it. and it would attract the flies. it worked the best, once there was about 1 to 2 inches of dead flies on the bottom of it. with the summer sun hitting it. it just turned (all the dead flies) into a composting heap inside of it. and about that time it would suddenly fill nearly up to the top within a day or 2. then you would dump all the dead flies out, wait another 1 to 2 weeks till it got back up to 1 to 2 inches of dead flies to start everything over again.
============
with above said, last month flies have been pretty bad here, i normally leave sliding glass door cracked enough to let dogs run free in/out of house. and flies just keep pouring in.
granted for me, it has been cloudy over cast to non stop rain, right at the house (drive 1/2 mile and completely different story) and i think most of the flies coming in, are trying to find cover. vs staying out and letting birds and other predators eating them.
since there not enough flys around for the jug fly traps, i am tempted to get some of them "glue string fly traps" and hang a few around.
raid fly spray, gets rather expensive, and my arms and legs, including my top of my head is starting to get painful from using the fly swatter and hitting myself trying to kill the flies.