the best means in overcoming sins of the flesh, is prayer, and confession,
and i know by my own experiences, if you do reveal this sin to your confessor, that alone will be a great help in overcoming it, for one because the dread of confessing it again will really make you think twice, and also because by confessing, you will receive the special and necessary graces to overcome this sin,
one devotion that helped me greatly was saying 3 Hail Marys in the morning and at night for the intentions of purity and holiness, although it’s not an instant cure, but when i began that devotion, i noticed myself rapidly overcoming my sins, and i reached a point which i have since not sinned in that way again,
i know it’s humiliating and embarrassing, but your priest is there to help you, he became a priest to tend to wounded souls, and by revealing this to him, he will not be angry or repulsed, he will instead be glad, because then he can begin to work on your soul, he will pray for you and help you overcome this,
also keep in mind, your priest has more then likely heard this sin hundreds, if not thousands of times, and has also heard sins much more shameful, but do you think he is upset at people coming to him with these sins? not at all, it is a great joy when souls come to the confessional dead, but when absolved, they leave new and alive,
perhaps next time you see your priest, ask him if he can help you with a problem, but that you are afraid to say it out loud, because you are very embarrassed at the sin you have been committing, and it is very likely that he will know what you are talking about, or atleast it will not take him long to figure it out,
and other then that, just be patient with yourself, don’t let this cause you to be angry or bitter with yourself, because if you are going to overcome it, you need to do it by a calm and steady repentance, and not by violent passionate displeasure, because you can’t easily pick yourself up again by beating yourself down,
of course we should be sorry for our sins, but to get angry with ourselves over our sins is also a hidden pride, because it is not regarding ourselves as the weak creatures we truly are,
the best protection against these sins, and every other sin, is by praying for help at the moment of temptation, or even before being tempted, meaning throughout the day to ask for protection from falling into temptation,
well…that’s all for now, i hope this helps you, if you have any other questions please ask,
ok take care and i will be praying for you.