In a house where there is fruit, these insects reproduce lightning fast. And a simple trap can help you defeat them: put any fruit into a cup, cover it with plastic film, and make a hole in the film. The flies will be able to get in, but won’t be able to get out. The author describes the method in detail here.