in order to get rid of lust, you can’t simply “quit cold turkey”(as you have found out), because the lustful desires in you, once taken away, will leave a space open, one that, if you do not fill with good virtues, will be taken once again by some other sin, or some other form of lust…you have to replace the lust in order to remove it, and to do that you need to be very patient with yourself, it won’t happen over night, but in order to do it, you need lots of prayer, mortification, and penance, you need to make use of the sacraments, and then most importantly, you need to go to confession often, confess your sins of impurity when you have committed them, and even when you have not committed them, mention them in your confession, at the end of mentioning your sins, say “i am sorry for these and all the sins of my past, especially the sin of impurity” and you will receive the special graces necessary to overcome the habit of impurity and to overcome the temptation to it.
what my priest has told me to overcome sins of the flesh(in mind, heart, and body) is to say 3 Hail Mary’s in the morning and at night, for purity and holiness.
sins of the flesh are the most shameful and terrible sins, they send the most people to hell then any other sin, and is it any wonder that it is the most frequent sin in our world today? of course it is, because the devil knows it wins the most souls for him, so he temps us with it most relentlessly,
but you have a power inside of you that he is afraid of, one that he fears that you will discover, you have Jesus inside of you, and simply by telling satan to begone in the name of Jesus, sends him away, you should make use of this power inside of you, when you are tempted, first ask for help from Jesus and Mary, and then if your temptations persist, tell satan to leave you alone,
of course you must do your part to, try to find ways to distract yourself from these temptations, when you feel a temptation coming on, do not give it a chance, quickly turn your attention to something else, or even run out of the place you are in that you are being tempted(your bedroom for example)
the saints took great measures to fight temptation to impurity, throwing themselves into thorny bushes, throwing themselves naked into the snow(completely in private of course)
you need to take strong measures as well, take notice of what starts your temptations in the first place, and try to do what you can to avoid or remove those things from your life…
one thing you can do for example, if you wear glasses, and looking at woman tempts you to sin, then simply remove your glasses(my brother just learned that one :3 )
there is alot you can do to fight this, just be creative, and when you are really struggling, go to your priest for help, or just go to church and meditate(adoration would be especially helpful)
just be patient with yourself, read the writings of the saints, go to confession, and pray lots, that will help you the most.