This is a topic that many respected people avoid getting into as it indirectly implies that they are familiar with it - even though most if not all people of this audio visual age have encountered it and many have had to go through struggles to climb out of it.
From my personal experience

mg: (don't look at me like that - I've been through worse...). The less one thinks about pornography, the less of a problem they have in having to resist it.
Focusing on the injustices that take place around the earth increases a believer's reliance on Allah and thirst for justice and will to put things right, and if one risks their life and expends their time and efforts in Allah's path, and in struggling to think more broadly, they find it abominable to let all their efforts go to waste, and the thought of debauchery repels them. People hate to let go of what they strive hard for.
The more you think about fighting it, the more place it takes up in your mind, and since it is a hack on the most powerful basic instinct of a human being, it is essential to find better activities to elevate one's mind and draw near to Allah.
I noticed this Ramadan that I was diverting my glance more even on what is these days considered "normal" news bulletins, and I've noticed that even some muslim majority country news channels prefer to tart up their reporters in order to please the eyes (dunno if those dumb models are aware that the d#$k sometimes gets pleased too), and had to flick through even terminator movies out of repulsion (blow spit three times to the left lol) - again, apparently a result of the increased taqwa of Allah gained by sacrificing personal needs and desires for Allah's sake, since Allah takes priority and Master status in the mind and you don't want to do anything that might displease Him and render all your efforts vain.
So yes, again, I think it's about utmost focus and effort - not on resisting evil - but on doing good, since a craving mind can seek out multiple ways of finding trash if it sets itself on finding it, and the more effort it makes, the more center stage it takes in the mind.
يَا أَيُّهَا الَّذِينَ آمَنُوا إِن تَنصُرُوا اللَّهَ يَنصُرْكُمْ وَيُثَبِّتْ أَقْدَامَكُمْ {7
047:007
:
O you who believe! If you help (in the cause of) Allah, He will help you, and make your foothold firm.