How to prevent a user from accessing the site if he has a mobile OC?
This is determined by the User-Agent header in the HTTP request received from the client when he visited the site.
P.S. Change the difficulty of the question to easyAnonymous
To place the code, please use CodePen or similar tool. Thanks you!