ESP Potential Counter

I have zero experience in coding so this might not make sense but I thought of a potential counter to ESP

Use raycasting on a players eyesight that collides with every solid object in front of it and creates a point of collision (POC); a solid wall right in front of you should be the first point and something that is not visible and is behind it will be the second point and it continues for as many solid objects that are rendered in front of the players eyes.

Calculate the distance from the player to the TRUE POC and then measure it against an adjacent value which is a ‘no clip’ of the eyes which will be the FALSE POC. If the distance from the eyes to the resulting POC is greater than what the true POC should be then the player should be kicked from the server, and banned after multiple offenses with a potential of appeal in case the game has glitched.