To deter house flies, regularly remove trash and use well-sealed garbage bins. A fine mesh screen should be installed on doors and windows so that house flies cannot enter. In addition, pet waste must be cleaned up immediately so that house fly breeding sites do not develop.