When you are tempted, pray, think of how utterly useless the act of lusting is. What do you gain from it? A few moments of pleasure? Compare that to the eternal glory of heaven!
Do nothing that you would not do if God were bodily present. Say nothing you would not like Him to hear. Go no place...