I am just trying to ban school internet connections from the game part of my site.
You will need the school network’s IP Address (which probably changes a lot) and then compare it to the current IP address - if it matches, show a forbidden site.
But why should you do that?
My site is gonna be used for many stuff, I want block the chat area, and the game area. It is gonna have a section for schools
Can you look up your schools IP on ipinfo.io and show/PM me the ASN?