Common house flies are primarily attracted to decaying organic matter, such as feces and rotting meat. Fruit flies are most attracted to sugary substances, including overripe fruit, spilled soda, and alcohol.