Links: https://www.zhihu.com/question/20004700/answer/13678113
The first step in the server-side using the user agent to determine, first match the mobile device, this step can be counted the user agent list (can be obtained through the website access log or use their
IIS detection code Access Web site is PC-side or mobile-side users
The code is as follows
Copy Code
ASP check whether the Web site is PC-side or mobile-end user
The code is as follows
Copy Code
Dim u,b,vSet U=request.servervariables ("Http_user_agen
Through http_user_agent to determine whether the user is from the mobile phone access, or computer IE access.
ASP code Snippets: The main use of the regular matching mobile phone environment, we can add mobile platform.
Copy Code code as follows:
Set regex = new RegExp
Regex.ignorecase = True
Regex.glob
Let's take a look at how to use PHP to identify users through the PC, iPad or mobile phone to access the site?$uAgent = $_server[' http_user_agent '];$osPat = "mozilla|m3gate|winwap|openwave| Windows nt| Windows 3.1|95| blackcomb|98| me| xwindow|ubuntu| longhorn| Aix| Linux| amigaos| beos| Hp-ux| openbsd| freebsd| netbsd| os\/2| osf1| SUN ";if (Preg_match ("/($osPat)/i", $uAgent)){echo "PC Access";}Else{echo "Other terminal access";}?>The following is
With more and more remote users and more mobile users, the need for process access programs and network resources is increasing, which brings security challenges to the management of such users. This connection is a shock to network protection, but also brings financial risk to the enterprise, if the network is affected by next generation red code or Nimda virus, what kind of loss will suffer. The following 10 rules are effective for effectively manag
There is a small project that requires users to jump to different locations on the mobile side, but the data indicates that some users are based on the PC segment of the Chrome opera phone simulator, how do you block or jump to the PC page?
Reply content:
There is a small project that requires users to jump to different locations on the mobile side, but the data indicates that some users are based on t
Online shopping security: Home of Maternal and Child mobile APP involving hundreds of thousands of user ID card information
Review. Isn't it on the wall yet?
1. The Code is as follows:
POST http://app.api.muyingzhijia.com/v1/GetUserIdentity HTTP/1.1SystemType: 4SystemKey: 8ED7EC10-D105-49EA-9E7C-30275C51351FPhoneModel: m2 noteLanguage: zhClientIp: 192.168.1.100UserIdentity: 868017029187502Imei: 868017029187
and PC is connected to the same LAN, Samsung as an exampleEnter your phone's settings, click enter Wi-Fi settings, select the wireless network you are connected to, and press and hold the pop-up options Box:4 is shown below:Select Modify Network configuration:See Figure 5Select Show advanced Options, set the proxy to manual, fill in the IP address and port number obtained above, and click Save. This will make our phone set up successfully.Fourth step: Download the Fiddler security certificateUs
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.