To resist temptation to view pornography, a person needs to seek Jehovah’s help in prayer before starting to go down that route on the Internet.
فَإِذَا شَعَرَ ٱلْمَرْءُ بِرَغْبَةٍ فِي مُشَاهَدَةِ ٱلْفَنِّ ٱلْإِبَاحِيِّ ،‏ فَعَلَيْهِ أَنْ يَتَوَقَّفَ وَيُصَلِّيَ قَبْلَ دُخُولِ تِلْكَ ٱلْمَوَاقِعِ .‏