I had suffered from a pornography addiction for many years as well. I know what deeply helped me was fighting it with good media. When I had a temptation, I would go on youtube to the mormonchannel and watch tons of videos or conference talks. It became really hard for me to continue and give in to my temptations after watching these good men speak.
What also comes to mind is Alma 49:18, the story of where the Lamanites were unable to get into the fortified walls put up by Captain Moroni and his men. You need to build walls between you and your addiction, there is a lot of great software that can help you fight it.