Stop gazing at immodest images on the internet.
Ben Azai says: Run to do an easy commandment as to a difficult one, and flee from sin; since a commandment leads to another commandment, and a sin leads to another sin; since the reward for a commandment is another commandment, and the reward for a sin is another sin.
Pirkei Avot 4:2
Every time you do it, you deepen a channel that desires to do it. You strengthen a negative habit.
Rabbi [Yehuda haNasi] said: Which is the straight path that a person should choose for himself? Whichever [path] that is [itself] praiseworthy for the person adopting [it], And praiseworthy to him from [other] people.
Pirkei Avot 2:1
You owe it to yourself and the people close to you to take care of yourself so that both can live the best possible life.
... And be as careful with a light commandment as with a weighty one, for you do not know the reward given [for the fulfillment] of [the respective] commandments. Also, weigh the loss [that may be sustained through the fulfillment] of a commandment against the reward [that may be obtained] for [fulfilling] it. And [weigh] the gain [that may be obtained through the committing] of a transgression against the loss [that may be sustained] by [committing] it. Keep your eye on three things, and you will not come to sin: Know what is above you: An Eye that sees, and an Ear that hears, and all your deeds are written in a book.
Pirkei Avot 2:1
To give up on so much for a few moments of cheap, fake pleasure that the body can (and wants to ) do without. The mind cannot defend this. You become irresponsible, you lose self-esteem , health. It causes weaknesses of character.
If it is such an obviously negative action that can cause much destruction why do we continue?!?
The answer: it is very difficult, uncomfortable, and painful to quit. A person who forms these strong negative habits can find it next to impossible to quit.
The Talmud gave the solution to this problem:
Talmud Kidushin 30b. Even so did the Holy One, blessed be He, speak unto Israel: ‘My children! I created the Evil Desire, but I [also] created the Torah, as its antidote; if you occupy yourselves with the Torah, you will not be delivered into his hand."
Gazing at immodest internet is really an expression of the evil inclination which we all have . One whose heart and mind are occupied with Torah and wisdom has protection from the evil inclination.
The Rambam wrote that the way to acquire a habit is to repeat and the repeat the action over and over again. Studying Torah daily is way of both acquiring the habit of daily Torah study and distancing oneself from the terrible and damaging habit of immodest internet.
Every new thing you want to do , grow into or out off, requires effort: it can be difficult. At the same time we all have to do it many times during our lives.
Rabbi Noach Weinberg obm gives the example of children first learning to ride a bike. Most do not think they can do it but in the end most do. Learn from children.
A good attitude to have is to pretend you are preparing for a marathon. Live with the mentality of a person excited, disciplined, not too lazy or comfortable. A person that is determined to run this race.
Even if you do not succeed, it is still a success. Children that learn to ride bicycles do not succeed the first time , or the second time. They fall off quite a bit , and learn from each fall. Eventually they do succeed.
Proverbs 3:18 It is a tree of life for those who grasp it, and those who draw near it are fortunate.
Once you finally succeed your gain will have been infinite. Infinite because this is the distance between being a slave to immodest internet and a life that includes Torah study .
Rabban Gamliel the son of Rabbi Yehudah HaNasi said: Excellent is the study of the Torah together with a worldly occupation; for the exertion [expended] in both of them causes sin to be forgotten....
Pirkei Avot 2:2