One thing that worked for me is to decide to stop having sexual thoughts altogether.
Don't look at porn, don't search for it, if you see something that's meant to be enticing, look away. Cultivate disinterest in general.
Also decide to simply not touch your thingie unless it's to piss or clean it (or to put it inside a girl).
Like, visualize your hands going down there and imagine it feels as if it were burning your hand.
Last time I got a two week streak of not cooming that's how I did it.
Also, download this gallery:
https://imgur.com/gallery/g4eGHOne thing's for sure, if you keep browsing imageboards you'll keep failing. Plenty of lewd stuff all over the place.
Stop using social media (this site counts) and get an exciting goal in real life to keep you busy.
It can be anything: working out every day, learning a new skill, earning more money with a side hustle... do something PRODUCTIVE.
Idle hands are the Devil's workshop. I'm not Christian, but this saying is extremely true. You wouldn't be jerking off if you had stuff to do 24/7.