Yes, Pine-Sol can be used to keep flies away. Mix a few drops of the cleaner with water in a spray bottle and apply it around doorways, windowsills, and other areas where flies might enter. The pine sol smell will act as a natural repellent and help keep them away.