Block the Light
As it gets darker with night approaching, close all the doors, windows and all other inlets of your house. Since flies are attracted towards light, so it is better to block the light with curtains.
No liquid Spillage in the house
Ensure that there is no liquid spillage anywhere in your house or should be immediately cleaned if any. Besides, clean the food remains or particles lying close to the kitchen appliances.
Clean drains and gutters
Keep the drains of your house clean, treating them with bleach on daily basis. Additionally, make sure that gutters and water gullies are covered and there is no blockage in them.