如何禁用移动访问网站? [英] How to disable access to website for mobile?

查看:110
本文介绍了如何禁用移动访问网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页不适用于移动设备,因此我想禁用移动设备访问权限,至少目前是这样。
是否有jQuery / javascript脚本禁止访问智能手机和移动设备的网站?它可能被重定向到一个小的404页面(或类似的),我会设置说你必须在计算机上访问网站?
此外,您是否有任何关于设计移动访问网站的良好参考资料? 检测手机浏览器提供各种开源移动电话检测脚本(包括JavaScript和jQuery),您可能会发现它们很有用。



使用它:

下载移动浏览器重定向脚本并更改 http://detectmobilebrowser.com/手机添加到您的移动网站的网址。


My webpage doesn't work for mobile devices, so I want to disable mobile access, at least for now. Is there a jQuery/javascript script to disable access to a website for smartphones and mobile devices? Could it be redirected to a small 404 page (or similar) that I will setup saying that you have to visit the website on a computer? In addition, do you have any good references on designing a site for mobile access?

解决方案

Detect Mobile Browsers provides various open source mobile phone detection scripts (including JavaScript and jQuery) which you may find useful.

To use it:

"Download a mobile browser redirect script and change http://detectmobilebrowser.com/mobile to your mobile site's URL."

这篇关于如何禁用移动访问网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆