Porn and kids

Ok so I know this is a weird topic or question but I’m asking bc I just don’t know what else to do. My son is 11 soon to be 12 in March and we have had this problem for a couple of yrs now. To give you a little bit of back story he was in a bad school and I work during the day so I can’t homeschool and private doesn’t work either bc he is one of three so not an option. The school was horrible he was having serious issues and I eventually pulled him due to his safety bc of bullying but he did have one friend or ally but the only problem with the one friend was he had a porn problem and now so does my kid even. We no longer have contact with that kid but question is, is my kid is like stupid smart and I mean that in a good way and seriously good at anything electronic to the point that I keep waiting for someone with fancy government people to show up at me door bc he hacked something he should’ve. So I guess my question is how do I get him to quit doing porn?