Did you try Siam, fasting. One of the main benefits of Siam is learning self restraint (taqwa). If you can conquer hunger and thirst, you can conquer any emotion including sexual desires. You can survive without sexual activity but not without food and water. When really hungry or thirsty the body and mind go into survival mode forcing all other emotions into suspension.
Siam was used successfully to cancel sexual desire by some brothers who encountered continuous solicitations by prostitutes when performing Muslim missionary work in Africa. Siam will tame your "nefs" and put it on a leash. With the help of Allah, you become the master of your emotions, not the reverse.
Siam is obligatory during the month of Ramadan, but is "wajib" (recommended) at least twice a week outside of Ramadan, customarily Mondays and Thursdays. It is a blessing and a mercy from Allah to help us to restrain our emotions. Fast as much as you need to control your libido.
Fasting is difficult but has these great benefits mentioned. In fact the following aya was placed by Allah right in the middle of where fasting is prescribed in the Quran.
002.186 When My servants ask thee concerning Me, I am indeed close (to them): I listen to the prayer of every suppliant when he calleth on Me: Let them also, with a will, Listen to My call, and believe in Me: That they may walk in the right way.
Wa 'Idhā Sa'alaka Ibādī
Annī Fa'innī Qarībun ۖ 'Ujību Dawata Ad-Dā
i 'Idhā Daāni ۖ Falyastajībū Lī Wa Līu'uminū Bī La
allahum Yarshudūna
وَإِذَا سَأَلَكَ عِبَادِي عَنِّي فَإِنِّي قَرِيبٌ ۖ أُجِيبُ دَعْوَةَ الدَّاعِ إِذَا دَعَانِ ۖ فَلْيَسْتَجِيبُوا لِي وَلْيُؤْمِنُوا بِي لَعَلَّهُمْ يَرْشُدُونَ
This beautiful aya is the only one in the Quran where Allah sbth addresses us directly without first telling the Prophet pbuh "qul" (say). Most likely, this is to emphasize that the dua made during Siam is particularly heard and accepted.
Also, you must "lower your gaze", which includes not viewing much of the online Internet media. Very difficult these days, but InshAllah with Siam, you can succeed. I hope this helps you InshAllah.