Code to detect requests from mobile devices