In order to determine what attracts flies to your home, it is important to identify the species of pest you are encountering. Common house flies are attracted to decaying organic filth such as feces and rotting meat, whereas fruit flies seek sugary substances and feed more commonly on overripe fruit, spilled soda and alcohol. Drain flies require moist climates and organic materials and will be attracted to drains where they will lay their eggs.
Identifying a fly and what it feeds on will assist in targeting an appropriate pest control method. It will also help to locate breeding sites. After identifying a feeding site, be sure to clean the area thoroughly to prevent a repeat infestation. Your local pest control professional can act as a resource for you in identifying the infestation and eradicating the intrusive insect population.