This little script can detect fraud web sessions running via automatized spam-like softwares. Usually spammers emulate different browsers to create multiple accounts to avoid security system and to begin malicious activity.
Script can detect real connection parameters over the spoofed ones. So we can tell if the user is using real web browser (legit session) or the session is running via some shady software (fraud session).
By detecting such fraud connections we can help to prevent distribution of fake news, porn, drugs and other types of abusive and illegal content.