Nginx Only Allows Mobile Phone Access Website Rules 0

Nginx Only Allows Mobile Phone Access Website Rules

set $mobile_request “0”;   if ($http_user_agent ~* (Android|webOS|iPhone|iPod|iPad|BlackBerry)) {   set $mobile_request “1”; }     if ( $request_uri ~* (error)) {   set $mobile_request “2”; }   if ($mobile_request = “0”) { rewrite...