I'd guess you do it like bot detection.
An online coding platform is going to be all js. You can track key press and mouse events and probably get a good idea of what's obviously real and what's not.