I believe that while porn itself is not a spiritual attack, it is a tool for a spiritual attack.
From that perspective, it is better to deal with why you desire porn, and not focus on "not doing porn." For example if you decide not to think of the colour blue: feel how difficult it is to try and force yourself not to think of blue.
So rather focus on the sin in a way that will make porn repulsive.
For example when you go into a supermarket and pass a rack of men's magazines, look at the eyes, not their boobs. Is there a happy smile in their eyes, or can you detect sadness, embarrassment, insecurity, or some emotions along those lines? Look at the corners of the mouth and see if this is a genuine smile or a forced smile.
If you see any hurt there and you carry on looking, then you are a part of an abusive situation. This is a photo, but it is a recording of an abuse or a hurt.
If the woman does really smile, then think how regretful will she feel in a few years time when she has matured past this cheap money for nudity phase of her young life. And think about the souls of the women who don't regret posing for men to masturbate over.
How would you feel if that was your daughter or future wife?