Unless everyone is using iMessage, there's no way to remove yourself from a group text — you'll need to mute or block it.
It's possible to block websites on an iPad or only allow access to specific websites. Here's how to do it using Screen Time.