President Joseph Fielding Smith told me of a repentant woman struggling to find her way out of a very immoral life. She asked him what she should do now.
In turn, he asked her to read to him from the Old Testament the account of Lot's wife, who was turned to a pillar of salt. Then he asked her, "What lesson do you gain from those verses?"
She answered, "The Lord will destroy the wicked."
"Not so!" President Smith said that the lesson for this repentant woman and for you is "Don’t look back!"
Strangely enough, it may be that the simplest and most powerful prevention and cure for pornography, or any unclean act, is to ignore and avoid it. Delete from the mind any unworthy thought that tries to take root. Once you have decided to remain clean, you are asserting your God-given agency. And then, as President Smith counseled, "Don’t look back."
~Elder Boyd K. Packer