Anti-cheats are a lie, they don’t belong on your computer, and I’ll prove it in this 10min read
I have gathered from many sources and many game developers, including myself, what the supposed purpose of anti-cheats, how it’s implemented, and how it should actually be implemented. This is regarding the client-server networking model for multiplayer games.
The following will be discussed:
- How it looks
- What it means to cheat in a multiplayer games.
- Why is almost every multiplayer game implementing anti-cheats THE WRONG WAY
- What anti-cheats actually look like
- The solution and examples
CLIENT = the player, on their own computer, using their own copy of the player-side of the game SERVER = hardware game server used to host some parts of the multiplayer side, depends on the implementation of multiplayer CHEATER = the CLIENT who manipulates or otherwise exploits their own side of things, their own computer, on which the game and anti-cheat reside. HACKER = the person, who used many skills to illegally infultrate the SERVER, and therefor have (probably UNLIMITED) access to everything that’s on that SERVER, including everything game-related.
1. How an anti-cheat looks like in most games In most multiplayer games, an anti-cheat looks like this: an entirely separate software on the CLIENT’s computer, that checks the computer, the game for any changes in number of sophisticated ways, but this is a very bullet-prone vest, and it’s proprietary, it can’t even, really be open source.
2. What it means to cheat in a multiplayer games. This means bypassing the anti-cheat (if any) and editing variables or functions in memory to whatever the CHEATER wants to. How can a CHEATER - a player, in a multiplayer game even influence the entire game that is hosted on another computer (SERVER)? The simple answer is - they can’t. They don’t affect their abbilities and entire multiplayer game on/from the SERVER, they do it ON THE CLIENT, on their own computer!! How can that even be possible?
3. Why is almost every multiplayer game implementing anti-cheats THE WRONG WAY I don’t know, they dumb? Perhaps they don’t how programming works? Or they just think that’s how it works and they don’t question it or they’re ordered to do it the way everyone else does?
4. What anti-cheats actually look like Anti-cheats should just be what they’re meant to do: prevent any CLIENT from exploiting the game, in other words: stop the CLIENT from changing the values which they shouldn’t have power over in the 1st place! The actual anti-cheat isn’t some separate proprietary piece of shit program, it’s the way the entire game is implemented and logic that checks I/O.
A multiplayer game in a CLIENT-SERVER networking model (not peer-to-peer, for example) which is what most games are using - should be doing this: Since the SERVER wants the game to be fair and for all CLIENTs to play according to SERVER’s rules (think of walking speed, the weapons you have, your health, etc.), the SERVER in this networking model HAS TO be authoritive. The SERVER HAS TO dictate to every CLIENT what they should do, not the other way around.
5. The solution and examples In the past and sometimes even today - without a game engine, the developer had to implement their own networking for the game to get maximum performance out of it, have it customized the way they want to, or game engines simply didn’t exist yet. This was done by serialization and deserialization of data received by CLIENT/SERVER, the 1st variable extracted was usually the number, which was then correlated with a list of functions - each function was assigned a number.
None of that is necessary today, really, because some game engines have good implementations of networking (such as Godot, I think).
Okay, how about we make a few examples which will be the solution: So let’s take movement and rotation of the player for example: var position: Vector3(x, y, z) and var rotation: Vector3(x, y z)
The way CLIENTs walk around a map isn’t by telling the SERVER where they’re at, it’s by spamming the SERVER with inputs from the user (WSAD, mouse). Then the SERVER decides many things actually, before doing anything with that information:
- is the CLIENT a legit connection and stuff?
- is the CLIENT sending a number that correlates with any function (if custom networking implementation)?
- is the CLIENT sending data that’s of valid type and value?
- is the CLIENT alive?
- is the CLIENT allowed to move? ( the following can be implemented in various ways, this is one of them )
- okay, then move CLIENT that’s a copy on the SERVER, in that direction at the speed and velocity the SERVER dictates *this already eliminates possibility to teleport, speedwalk and clipping trough walls and the entire map
- anything that the CLIENT collides with, run corresponding collision logic, triggers, signals, etc.
- send the new position and rotation and exact time to ALL CLIENTs
- the CLIENTs interpret this new message at that exact time, then CLIENTs can use interpolation and extrapolation to smoothly move and rotate to the new position and rotation directed by the SERVER (not the CLIENT)
This is uncheatable if done correctly. You know some of world biggest and most expensive games such as Battlefield 6 still don’t understand this. This, what you read, is worth more than the entire worth of Battlefield which is probably many millions of $$$. Why instead not create a better game?
Even AAA games such as Battlefield 6 don’t do this, they have anti-cheat spyware they put on your computer, just like most games do.
You can follow a game I’m creating, it will not be some slop put together under a overlord boss at a evil slave corporation, here: https://blorpblorp.xyz/home/c/[email protected]
EDIT 1 SECTION A lot of game-dev-incapable people attacked me, ridiculed me and just wasted my time, explaining to me how this and this isn’t possible, but they didn’t even know what it was called. What most of them were referring to is wall-hacking. It’s easy to solve. I already code that does this, actually. I just use it for a sanity system.
For instance, in Blazium(Godot) I have a system for sanity, and when you look towards a enemy that is from horror you can calculate the distance (pitch/yaw) and the depth, and your sanity decreases, for example.
There is some complicated math involved, but you can easily convert that part of code to C++.
The only thing we need to change (ON THE SERVER) in here is make this for all players, and if the pitch/yaw and/or distance depth, see if there’s any players nearby… AND ONLY THEN transmit the other player’s position to the player.
Then add a raycast towards that player, and if it hits anything else before the player - there’s a wall or something blocking the view - DO NOT SEND enemy location.
Wall-hacking solved.
EDIT 2 SECTION I’m saying all of this with latency and such and such distance and roundtrip (to server and back or vice-versa) in mind. And packet-loss.
This is an interesting post to say the least. If anyone is interested how things actually work this is a pretty good read on multiplayer client server architecture, without touching cheating. https://www.gabrielgambetta.com/client-server-game-architecture.html
I don’t have time to read everything, but it seems to be not only what I’m saying, but also what’s planned. Including ms from server to each client, approximate processing on each, etc.
I’d like if you could join my MY LIFE community on here (the link is in the post itself), we also have the more important Matrix space, too!
In case anyone’s wondering, this person has no idea what they’re talking about.
Yes I do, this isn’t my 1st game. You are a troll and blocked.
For everyone that upvoted, I suggest you either invest 10-15 minutes of ACTUALLY READING what I wrote and thinking about it, or getting the fuck out, because you are incredibly rude and come off as too lazy to think. I spent 4 hours writing this, and you can’t spend 15 minutes reading my post and writing a proper comment instead of agreeing with a lazy person? I have a pretty good idea who has no idea of what they’re talking about.
And like I said, I talked with many pretty talented developers… so who the fuck are you, exactly, mister oh-so-mighty-im-smartest-person-alive-I-dont-even-need-to-prove-it. Stop attacking me, please find something better to do in life.
At moments I feel like Charlie, seing patterns everywhere: 1-3d old accounts with first posts about either a brand new repo, or about proposing final solutions to complex themes they obviously don’t know much about.
“Pepe Silvia, Pepe Silvia!” 😵

I love how he thinks he solved a billion dollar problem. Everyone else is doing it wrong.
If only they had asked this random guy instead of getting a ton of smart people to work on it!
Anti-cheat companies, are they stupid??
Thanks, saved me from reading all that

Sending player inputs over the network would use a lot of data, and make the server do significantly more work.
Latency would make server side movement horrible to play on, any dropped packets would cause the player to not move. You’d also have issues with handling late packets.
Server side movement also doesnt solve wall hacks/esp, unless you want to render every client to determine what they can see before sending the player positions to each client. Also doesnt solve trigger hacks, or any modern aim assist that moves the mouse in a sane way.
There is a reason this isnt done server side, its not as simple as you think it is.
You mention issues. Yes But you mention 0 solutions. Nobody said this is going to be easy, I just said it’s very much possible and gave a bunch examples. Please check out the post edit I made. I’m responding to you only because you actually spent 2 minutes of effort in your comment. I gave an example on how to solve wallhacking in another reply to someone else’s comment, find it if u wanna.
I never said it was simple, I said it was doable, but worth it.
You haven’t proven that its doable or even possible. Its definitely possible to do some anti-cheat server-side, which many games already do. But there are very useful hacks that server side simply cannot detect or mitigate.
I’d like a complete list of those “hacks”. And no, I am not joking.
Off the top of my head, and I dont think this exhaustive either, cheat developers are a clever lot:
- Increasing contrast of enemys at render time. Especially in a horror game, making the enemy bright green will make them stand out, easier to spot and attack. Completely impossible to detect from the server side.
- Trigger bot - As soon as the mouse passes over the enemy, automatically click. The movement will look human, the shots are just really well timed.
- There are other ways to do ESP/Wallhacks without knowing the direct location. Any sound effects will give them away, which you (or someone else) addressed with server side audio, but that would be a latency nightmare. But also any “tracer round” like effects will effectively be a vector pointing right back towards an enemy.
But the main problem you have is latency. I am guessing you are developing your game on your local PC, and the server is either on your LAN or your PC. Which means your testing with 1-2ms of latency, and 0% packet loss, which your anti-cheat probably excels at. I’d encourage you to run your server on a server in a different country and test that way, or if your on Linux, use
tcto induce latency and packet loss. Typical multiplayer latencies can be anywhere from 15ms up to 200ms, and sometimes beyond that.There are other ways to do ESP/Wallhacks without knowing the direct location. Any sound effects will give them away, which you (or someone else) addressed with server side audio, but that would be a latency nightmare. But also any “tracer round” like effects will effectively be a vector pointing right back towards an enemy.
Any sound effects will give them away, which you (or someone else) addressed with server side audio, but that would be a latency nightmare.
Not if the audio player is on the player itself, the client needs to play the sound if they get that player’s location, and stop otherwise (because no reason to play it as they don’t get the new location).
Although sound will have to be actually different than movement… yeah because you could still hear behind walls even if you don’t get the pos (so clients can’t wallhack) hmmmm probably a separate sending of the audio player… perhaps just not as frequent as the movement coz sound isn’t AS important? We’ll see lots of testing to do on that part.
Don’t you worry, I’m saying all of this with latency and such and such distance and roundtrip (to server and back or vice-versa) in mind. And packetloss
To avoid man in the middle attacks we should first encrypt those inputs. A server could also be cheating, so each client should verify each other’s clients’ positions.
Encryption further adds latency,degrading the experience even more. And mitm attacks are still very possible, you just drop the traffic, or route it poorly
Sending player inputs over the network would use a lot of data, and make the server do significantly more work.
Inputs are very little data, literally just a few bytes per frame. And many game genres are already doing this, look at rollback in fighting games for example.
Delay and rollback are both examples of client-side prediction which has been a core component of any fast paced online game since Quake 1/Quakeworld. Pushing that to the client-side allows online games to work with internet latency at all but also makes client-side cheat detection more important.
By having each client calculate the game state independently, any attempt at cheating simply results in a desync.
Then you wrap those inputs in headers and it adds up. There is 16ish mouse movements between two frames at 60fps, for a 1000hz mouse. And in OPs model, every one of them needs to go to the server for validation. Compared to sending the players current location and view, ~16 mouse inputs plus a couple of keyboard inputs each frame is going to be a lot more traffic.
Fighting games are typically 2-5 players right? So completely different scale to a 64+ player server, they can get away with doing things differently.
If you’re calculating sub-frame inputs, those can be batched. Even if we multiply a few bytes by 64, that’s still not much.
Batch the inputs breaks OPs anticheat, the server has to tell the client what the result of every input was. So if you batch them up, the client is frozen until the server responds, and for mouse inputs that would result in crazy rubber banding.
And if your gonna batch them, why not just send the resultant new location? The server can still validate that the position hasn’t moved too far
As long as each input is timestamped, rollback can work the exact same way it does in a 60fps game, the actual tickrate doesn’t matter. There’s no need to freeze either, the point of rollback is to run ahead independently.
This post is nigh unintelligible, but I think the tl;dr is that you should only need to validate what the client tells you.
Which is incredibly naive. How do you identify wallhacks server-side, for example?
For instance, in Godot I have a system for sanity, and when you look towards a enemy that is from horror you can calculate the distance (pitch/yaw) and the depth, and your sanity decreases, for example.
There is some complicated math involved, but you can easily convert that part of code to C++.
The only thing we need to change in here is make this for all players, and if the pitch/yaw and/or distance depth, see if there’s any players nearby… AND ONLY THEN transmit the other player’s position to the player.
Edit: then add a raycast towards that player, and if it hits anything else before the player - there’s a wall or something blocking the view - DO NOT SEND enemy location.
Wallhacking solved.
You put slightly more effort in your response than most comments in here, so thanks for that.
my mind is a mess… and I was writing that for 3-4 hours while doing 10 other things I said 1/10th of what I wanted, but if I were to overdo it, nobody would bother to read it.
You would need to raycast to every single point of the enemy. If you did center of mass then you wouldn’t be able to see a partially obscured enemy, it would appear as if they teleported around a corner.
Not every single, but I do get the point, don’t worry. Raycasts are very cheap in Blazium(Godot). And even if it were expensive - that’s preferred, because quality of anything is usually preferred compared to quantity. You can quote me on that one.
Please join MY LIFE community (link is in the post) and/or the Matrix space we have. We could use your deduction skills.
Don’t send the client information about objects on the other side of a wall?
Fair enough, if you want to do all those visibility calculations on the server side all the time.
How about highlighting? For example, Counter-Strike, where a barely-visible character might be off in the distance, in shadow, or behind a smokescreen. How do you prevent a malicious client from highlighting a teammate in blue or an enemy in bright red?
Not to mention footsteps or noise that they can make off screen. The server needs to be able to tell the client which direction the sound is coming from so your audio device can process it.
Few systems support true directional sound, so you could get close enough with “footstep 60% volume in the left channel, 10% in the right”.
Again, if you wanted to do all those calculations server side. It’s expensive enough doing it for one, but in a large deathmatch?
Seeing more and more how gnarly cheats are getting, I’ve lost all hope of there ever being a surefire way to stop it.
I just literally disproven the necessity of anti-cheats even being on your computer. Every other game is just ignorant about this. I’m sorry
No you didnt. You have a gross misunderstanding of 1)how multiplayer games work and 2) how cheating works.
So, one popular cheat is to highlight where other players are. This has nothing to do with talking to the server at all. You can have your client not render any walls so you can see through everything.
Heres another. The client automates everything. Bullet comming your way well you step to the side. Your client tells rhe server you mkved last second to dodge it. Server tells client that the player you are shooting at is moving right, ok now lets move the cursor to the right and shoot. Thats called auto aiming.
You don’t even know what the cheat’s name is. It’s wall-hacking. I solved it already in my game, but you can read another reply to someone else’s comment, which I made. You don’t make effort to post, so I won’t post here either go find it.
There are also cheats that increase the contrast for enemies. Not a wall hack, just make the enemy easier to see, which gives an edge.
The wall-hacking is already cheat-proofed, in concept, and in code, I already have code for that but I’m using it for something else since I have 0% of multiplayer code written, I’d like to have some sort of singleplayer game ready before the multiplayer implementation even starts.
But you’re PROBABLY right for the horror/steath/shadow/hidden enemies… unless we come up with something abso-fucking-lutely genius… but that’s a hard one to beat, same with aimbot since you could not only use software but also hardware to do it… I have a theory or 2 on how to try to prevent that, we’ll see, I’m counting aim-botting as on the “probably-unstoppable” list
I love how i explain the cheat and the other fuy just names it and you think he put more effort in it. You are a fucking child. You pick up godot and you think you are suddenly a game developer.
By the way, genius, the game client diesnt run on the server, you cant raycast. Do you even have a concept of how expensive rhat is.
The authoritive server runs not only a copy of the game, but it’s the game master, the game manager, the game server. You can have 1000 raycasts if you want to. This isn’t my 1st game
It is more resource intensive/expensive than regular multiplayer games. But guess what I’d rather have that than incomplete games with spyware programs (separate anti-cheats) that don’t even work on Linux and can be broken increasingly easier (with AI reverse-engineering, etc.)
I am blocking you for wasting my time and not using 2 brain cells.
Please put more effort in your comment next time. My post doesn’t solve everything, I have just tapped the surface of a proper anti-cheat, because otherwise nobody would even bother to read it. You didn’t even bother to read this much text, let alone more of it.
OPs solution protects against a single type of cheat, movement speed/teleportation. Its also the only cheat that no one actually uses…
It doesn’t matter where the detection system lies; there are far too many ways to cheat that no automated system could possibly detect.
Exactly. There is no “automated system”, it’s just A LOT of IF checks, NULL checks, checking if input from CLIENTs is valid and as expected, then doing A LOT OF COMPLICATED math, etc.
Fun part: optimizing all of that.
Way back in the day, games used to be peer to peer with one acting as server. Being the client sucked because you would warp all over the place as your computer anticipates following your key inputs, but it finds out 400ms later that those commands didn’t make it to the server in the same time and order. You run towards a gap and leap over it and keep runn— nope you fell down the cliff and died. You sneak up from behind and knife the enemy from stealth— nope, you’re done some kind of dance in front of— nope he killed you three seconds ago.
Making all players experience the client side of this just leans the game sucks for everyone. You would not have AAA games because they would all suck for multiplayer.
I’m against anti-cheat but my solution is just not to play games that require it.







