Disabling the Mobile or Tablet UI
On occasion, there may be a need to prevent access to the Mobile UI on an instance. While the Mobile UI plugin cannot be uninstalled, there are some options available to block access to these interfaces.
UI Agent Properties
The following system properties determine which devices are directed to the Mobile or Tablet UI. These work by checking the user agent string of the browser that accesses an instance. If the User Agent String contains a keyword that is found in the property’s value, the browser is directed to the indicated UI. Here is some info on these properties.
|glide.ui.m_agents||This property controls which browser is directed to the Mobile UI.||iphone,android_phone,IEMobile,Windows Phone,iPod,Windows CE,BlackBerry,BB10|
|glide.ui.mobile_agents||This property was used for the legacy Mobile UI. It serves the same purpose as glide.ui.m_agents, but have no effect on access to the current Mobile UI.||iPod,Windows CE,BlackBerry,Android,Opera Mini,IEMobile,Windows Phone,iphone|
|glide.ui.tablet_agents||This serves the same purpose as glide.ui.m_agents but instead controls access to the Tablet UI.||ipad,android_tablet|
|Mozilla/5.0 (iPhone; CPU iPhone OS 10_9_5 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12D508 Safari/600.1.4|
UI page override
To completely eliminate access to the Mobile or Tablet UI, you need to override the $m or $tablet pages. This can be done by creating a UI Page named $m or $tablet. Users who are directed to either the Mobile or Tablet UI is instead directed to these new pages. These new pages do not actually overwrite the mobile or tablet UI, so you can remove the created UI Page, and access to the mobile interfaces is immediately be restored.