Most reliable would be to use a zone detection like Zone+ on the server side. This will at least prevent teleporting out.
Exploiters could also anchor their character, set their hipheight, tp upwards immediately if they fall off, etc.
Is it really worth the effort to try to patch any cheating method when it doesn’t affect other players? Sounds like a time sink