I want to be a student of knowledge and I try to study but almost every week I end up falling into pornography and masturbating. I make sincere tawbah each time and try to put blocks on my phone but I find a way around them when I sin. I can only seek ilm online I don't have any teachers irl.

Ustadh AbdulAziz al-Haqqan
Continue seeking knowledge and continue repenting and try your best not to fall into this, and if you do, don't tell anybody and increase in obeying Allah for hasanat remove sins. And do not watch this garbage akhi never. Even if you fall into the secret habit don't ever look at porn it really destroys you and you get used to it.