Use 51degrees.mobi 2.1.15.1 to check whether the useragent is a mobile phone and obtain the hardware model of the mobile phone.

Source: Internet
Author: User

Enter the subject directly ......

First from 51degrees.mobi'sSource codeOn the Management page, download all files of version 2.1.15.1.

Decompress the sample project

After opening the example project

Run detector Web Site 4 directly.

The running interface is as follows:

Now, we need to import the hardware library. The imported format is dat. I don't know why the GZ package cannot be imported.

Select detection and select the DAT path to upload the file.

You can also manually modify the path of 51degrees.mobi. config. Generally, the example project does not contain this file. In this case, all files need to be displayed and included in the project.

Modify the location:

Upload the file to the app_data folder.

After everything is done, let's test a mobile phone model and copy a useragent directly.

 

The system can detect whether a mobile phone is used for logon, but cannot detect specific hardware models !!!!!

The final check shows that the free version is officially provided. The free version can only be accurate to whether it is a mobile phone, but cannot detect the specific hardware model. Please refer to the official figure:

, Wipe, the original official still has such a hand.

So far, we can only use the new version to determine that it will be a mobile phone. The specific model can only be purchased through the official purchase of the latest library.

If you want to get the phone model, you can only go to version 1, because version 1 implements the wurfl interface to get the model.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.