Discipline yourself to focus on what you know is good for you. You have a list of habits already that you probably follow — like exercise, reading, leisure time, meditation — and you can focus your time there and get far better returns than the endless porn-fuelled addictions of meaningless nonsense.