I have struggled with masturbation and porn since I was 14, and it truly felt like it was a losing battle. I would try everything, limiting my porn intake, how often I masturbated, what I would do it to, asking God for strength and forgiveness each week at Church, but none of it worked and the latter only made it feel that much worse. At the end of 2019 I could see that my porn tastes were gradually getting worse, so I started a nofap streak that lasted for over a year, after a while it became fairly easy to control ("I've made it this far so let's keep going"), however I also discovered a darker side of me during that time, I would still watch porn, but not jerk off to it, which only agitated the beast in me and left it scrambling for other outlets of pleasure, including homosexual thoughts, finding a real woman to hook up with (which almost landed me in jail) and edging (which is ultimately what ended the streak, to the same type of porn that I had tried to kick no less). Last year I essentially fell into my old habits, masturbating less often but not really reducing my porn intake. I can now say for certain that my tastes are getting worse and leading into dangerous territory. Even when I close my eyes to pray my brain habitually projects the images in front of me, like some kind of sick joke.
As a result, I am now on week 3.5 of nofap and have made actual steps to curb my porn intake. I have completely deleted my porn collection across several drives (including anything in my shitposting folder that would be considered moderately risque) removed all the saved posts on my online porn account and changed the password to something completely random. Whenever I see anything moderatly lewd on other boards, I immediately hide it. I pray each night for forgiveness for anything that may have slipped through during the day, as well as that God may help me find a woman that will (in the end, hopefully) become my wife (for reasons other than sex, obviously).
However, my main question is how would I resist temptation in the interim? I have tried, and it is impossible for my brain not to play some porn clip on repeat in my head. It defaults to it when nothing else is happening, and it can be difficult to find something to do when I'm at work or trying to fall asleep.
Also, as odd as it sounds, I firmly believe I will be able to abstain from sex even if a girl is sleeping right next to me. I think the same logic that applied to my nofap streak applies as well, in that I've gone this long without sex so I might as well wait until it's right (after marriage). If she came on to me first, I truly believe I'd be able to turn her down. If she gets upset and leaves, oh well, she wasn't the one. If she understands and stays with me, that's a good sign. I had an opportunity last year to sleep with a girl, but I turned it down surprisingly easy by simply focusing on the negative aspects of her and how bad I would've felt afterwards.