Wow, it’s awesome you’ve solved the entirety of multiplayer gaming. Here I was thinking anti-cheating measures was a complex topic but it’s great you’ve elucidated me.
It isn't. If you play with people you don't know, some of them will cheat. If you don't want that, stop playing with strangers.