Saint Theophan gives us the following advice:
1. Do not give free reign to your senses, especially the eyes and ears. Do not allow them to see everything, hear everything and be concerned with everything indiscriminately.To overcome passions does not mean we need to seclude ourselves like a recluse. We must learn to live with the reality of a full life in this world, lived in the spirit and not for the satisfaction of our passions.
2. Rush immediately to blot out the stimulus and suppress the thoughts... after the flow of the stimuli has been stopped of course.
3. Once a person has experienced harm from a stimulus, he should not willingly allow himself to encounter the objects that caused it again.
4. Learn to reinterpret everything you encounter so you can encounter it in the spiritual sense. St. Ephriam the Syrian, having encountered an enticingly dressed woman, told his disciples, "You see how she takes care to adorn her body, which soon will be dust; how can we not be concerned with adorning our immortal soul?
Reference: The Spiritual Life, pp 257-259