For those who are religious to a degree or at least do have a belief in a God, any god, I know of one thing that actually helped me stay off matsurbating for one month. I made a pact with god and I swore with my life that I would not masturbate to completion for one month. With that fear I actually made it a month. I knew I wouldn’t be able to go the whole month without occasionally looking at some porn or touching myself, so I made clear my intention was completion. It does work if you have the fear of God.