The average female fly has a lifespan of about 1 month, but in that time she can lay about 500 eggs. Obviously, even a handful of female Flies around your patio could translate into thousands of flies in a very short time.Because flies feed on garbage and feces, they transmit diseases, so you should do all you can to keep their population to a minimum.
[Edit]Avoiding Attracting Flies
- Keep your yard clean and get rid of trash or food. Flies are attracted to any strong smell, which often comes from trash or food left outside. Flies have very short lifespans (only about two weeks), so if you eliminate anything that causes odors outside your house, the flies will leave or die within that period.
- Pick up dog feces. Make sure you put it in sealable bags before you put it in the trash can.
- Keep garbage can lids tightly closed. If you are having a party, make sure the trash can be used for paper goods disposable has a tight-fitting lid, and ask the guests to replace the lid after they dispose of their trash.
- Generally, flies are pretty much attracted to anything that we consider a horrible smell, and find practically no scent repelling.
- Cut your lawn often. Flies love tall grass and piles of brush, so keep your shrubs trimmed and don’t leave piles of cut grass, leaves or brush in your yard.
- Mind your compost bin. A compost bin is filled with decaying matter; which is like a smorgasbord to a fly.
- Don’t keep your compost pile too moist.
- Keep the compost pile as far from your house as possible.
- Maintain your compost pile properly. Keep it “cooking” so that it is too warm to support fly larvae.
- Guard against stagnant water. Flies are attracted to moisture and standing water; keep the water in birdbaths fresh and don’t allow buckets or other containers to fill up with rainwater. You should discard old tires or any debris in your yard that can collect rainwater.
- Keep fruit and fruit peelings out of your bird feeders. If you want to give your backyard birds fruit treats, be sure to locate the fruit or peelings as far from your house as possible.
[Edit]Repelling and Eliminating Flies
- Make fly traps. Mix molasses and cornmeal and place it in a shallow dish or saucer. Put the saucer far from your patio—the flies can congregate there while you enjoy your meal in peace.
- Buy predatory bugs that eat fly larvae or otherwise interrupt the life cycle. Try nasonia vitripennis and muscidifurax zaraptor in conjunction with each other.
- Place fly light traps out at night. A fly light trap is an electrically charged light that attracts flies and zaps them. Try hanging them around a recreational area - well above where someone could run into them.
- Be careful setting these up. Light traps could never seriously injure anyone, but it's still quite painful to be zapped by them.
- Alternatively, try a UV light trap. Flies have compound eyes, and thus find the spectrum of UV light attractive. The UV light attracts the flies, and when they go to investigate the light they get stuck to the glue board built into the light.
- Hang vodka bags. Flies avoid the smell of vodka. So, try hanging bags of vodka around your porch or any other recreational outdoor area.
- Quarter gallon freezer bags, tied with string to a gutter, work well.
- Any cheap vodka will work.
- You can also try putting small amounts of vodka on your skin, although beware of the pungent smell and your skin drying.
- Landscape with carnivorous plants. While some plants simply repel flies, others actually eat flies: Venus Fly Trap, Pitcher Plant, etc.
- Landscape with fly-repelling plants. Flies are deterred by the scents of some plants, so keep potted plants on your patio or near your doors that repel flies: Basil, Elderberry, Lavender, Mint, and False Indigo.
- Don’t destroy all the spider webs outdoors. Spiders eat flies, but if you destroy their webs, the flies lose a natural predator.
- Set up outdoor fans. Flies don’t like a breeze. It may seem silly to put a fan outdoors, but if you are entertaining, a small house fan on your deck or patio may deter flies.
- Avoid leaving meat out. Flies are strongly attracted to the smell of meat and will swarm your barbecue grill the minute you bring meat outside to cook it.
- Keep all meat covered tightly when it is not on the grill.
- Keep the barbecue grill lid closed while the meat is cooking.
- Protect your grilling tongs and utensils—flies will smell the meat and land on them. (If you see flies have landed on your grilling utensils, take them inside and wash them before you pierce or turn the meat with them.)
- Place cloves around an outdoor dining area. The smell of cloves repels flies. Decoratively placing cloves on an outdoor dinning table can deter flies from landing on food.
- If you want to make a fly trap that sticks to the flies feet mix peanut butter, school glue and honey. You will be amazed!
- Some people swear that hanging shiny objects around their yard deters flies. There is no concrete evidence to support this, but you can try hanging strips of aluminum foil or anything else that has a reflective surface, near your patio or in your garden.
- Flies too have their place in the ecosystem, so it’s not prudent to try to eradicate them completely. Next to bees and wasps, flies pollinate the most plants and flowers. Flies also help control other insect pests.
- By removing material in which the larvae develop, the life cycle of the fly can be broken, preventing subsequent production of adult flies. While chemical pesticides may be effective for suppressing adult fly populations in some situations, they are not a substitute for proper sanitation and aggressive elimination of fly developmental sites. Flies can quickly develop resistance to insecticides and house flies are now resistant to many of the pesticides registered for their management. Use insecticides only as a last resort to obtain immediate control of adult flies 
- Flies can spread typhoid fever, malaria, yellow fever, sleeping sickness and dysentery.
- Make Natural Outdoor Fly Repellent with Essential Oils
- Get Rid of House Flies with Cloves
- Get Rid of Fruit Flies
- Get Rid of Horse Flies
- Get Rid of Flies in the House
- ↑ http://www.pestnet.com/flies/house-flies/
- ↑ https://www.rentokil-steritech.com/blog/large-flies-and-odors/
- ↑ [v161169_b01]. 22 October 2019.
- ↑ https://www.wideopeneats.com/five-ways-to-rid-your-home-of-fruit-flies-for-good/
- ↑ [v161169_b01]. 5 November 2019.
- ↑ https://backroadsliving.com/fly-bait/
- ↑ [v161169_b01]. 5 November 2019.
- ↑ http://www.getridoffliesguide.com/
- ↑ http://www.rapidhomeremedies.com/get-rid-of-flies.html
- ↑ http://www.who.int/water_sanitation_health/resources/vector302to323.pdf