Martin Luther said, “You cannot keep birds from flying over your head but you can keep them from building a nest in your hair.” You can't keep the Devil from suggesting thoughts, but you can choose not to dwell or act on them.
And so it is with thoughts of porn. Lusting after that beautiful...