I assume he means the 'Hack' that allows for spectator mode when using a Cheat Client. To my understanding, this is NOT a block-able hack, its purely client side, and not able to be stopped. Someone happily correct me if wrong, but I do believe it cannot be prevented.
oh yeah in that case im with you guys: i dont see how that would be blockable because its happening clientside. pieces of the world are always downloaded to the client and there's no way of stopping a hacked client from viewing the downloaded data however it pleases if this is about players finding resources using cheating like freecam, you maybe instead want to look into putting an AI on your server that observes player behaviour and can warn you if a player maybe cheating (or better that: if a player is behaving un-usually)
I believe some/many x-ray blocks will also affect the freecam too. Meaning the player can't really make use of the freecam for resources or underground activities.
Not, directly? I mean, if the loading chunk is outside of the nearest player's view, then that player can be suspected?
Well, you can combat some poorly made clients by teleporting the player to himself. But other than that, there's not much you can do to stop players from using freecam cheats.
Freecam only lets you change the position of your camera, but it doesnt move the player itself. if the player doesnt move = no additional chunks are loaded from the server
It makes blocks outside a player’s visible space garbage. So for instance if the player stands next to a cliff, then everythig on the other side of that cliff would becomes a mix of every block in the game, making free cam useless. It also hides chests that are not supposed to be visible.
You cannot block freecam: Freecam is a client mod that moves the player without sending movement packets. It can't be detected server wise. What you can do: You could limit the chunk render distance so the player has to move a lot to render the chunks he/she wants to freecam around in as freecam is only limited to the chunks that are the player have loaded. You could also detect players that sneak very often at the same location with no head movement (although this could be bypassed fairly easily).
For what purpose you wanna block a freecam? If your goal is preventing players seeing other players through walls, you can go the other way and after some logical checks, stop sending player packets to players who cannot see them. I remember that such a plugin already exists, but it is quite old: https://github.com/MkIIServer/NoMoreESP/releases However you can not block this exploit completely. It's impossible.