Wireless network security protection method, mobile terminal and computer readable storage medium
By determining whether a wireless network belongs to a whitelist and meets preset conditions, the security and convenience of wireless networks in public places are improved, information leakage is prevented, and data traffic is saved.
Patent Information
- Application Number
- CN202011464440.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-14
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2040-12-14
AI Technical Summary
When using wireless networks in public places, mobile terminals can easily connect to password-free networks, leading to personal information leakage and data traffic waste. Existing technologies cannot effectively improve security and convenience.
By obtaining information about the wireless network to be connected, it is determined whether it belongs to the whitelist, and the user is directly connected when it is turned on, or prompted to connect after determining whether the preset conditions are met when it is turned off, including steps such as trust score sorting, MAC address comparison and location comparison.
Improves wireless network security and user convenience, prevents information leakage and saves data traffic.
Smart Images

Figure CN112654045B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless network technology, and in particular to a wireless network security protection method, a mobile terminal, and a computer-readable storage medium. Background Art
[0002] Currently, users can access the Internet via wireless networks (WIFI) using mobile terminals (such as mobile phones), greatly facilitating user experience. Typically, the wireless network switch on a mobile terminal is always on by default. When the wireless network switch is always on, the mobile terminal can proactively connect to password-free public wireless networks in public places. During this time, when performing payment activities or logging into applications, personal contact information, location information, and other personal information may be leaked, and passwords may be stolen. Furthermore, after connecting to a password-free public wireless network in public, some users may need to enter their phone number to obtain a verification code before using the service. Furthermore, they may need to view an advertisement or play a video before using the service, significantly wasting the user's time.
[0003] If the wireless network switch is turned off in a public place, but the user switches to home, he or she generally does not turn it on in time or remembers to turn it on. With the current popularity of 5G networks, a large amount of data traffic may be consumed in a short period of time, causing a certain degree of loss to the user. Summary of the Invention
[0004] The main purpose of this application is to propose a wireless network security protection method, a mobile terminal and a computer-readable storage medium, which can improve the security of the wireless network and the convenience of user use.
[0005] To achieve the above objectives, the present application provides a wireless network security protection method, which is applied to a mobile terminal. The wireless network security protection method includes:
[0006] Acquire network information of a wireless network to be connected, and determine whether the wireless network to be connected belongs to a whitelist based on the network information;
[0007] When the wireless network to be connected belongs to the white list and the wireless network switch is in the on state, controlling the mobile terminal to access the wireless network to be connected;
[0008] When the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, determining whether the wireless network to be connected meets a preset condition based on the network information;
[0009] When the wireless network to be connected meets the preset condition, prompt information is output to prompt the user to access the wireless network to be connected.
[0010] Optionally, the wireless network security protection method further includes:
[0011] Acquiring historical network information of wireless networks historically accessed by the mobile terminal, and classifying the historically accessed wireless networks according to the historical network information;
[0012] Configuring corresponding weights for each type of wireless network, and calculating a trust score for each type of wireless network based on the weights;
[0013] ranking the wireless networks based on the trust scores;
[0014] The historical network information includes network name, network address, password information and location data.
[0015] Optionally, after the step of sorting the wireless networks based on the trust scores, the method further includes:
[0016] The wireless network ranked before the preset position is added to the whitelist.
[0017] Optionally, the network information includes a first MAC address, and the wireless network security protection method further includes:
[0018] Obtaining a second MAC address of each wireless network in the whitelist;
[0019] comparing the first MAC address with each of the second MAC addresses;
[0020] When the first MAC address is the same as one of the second MAC addresses, it is determined that the wireless network to be connected belongs to the whitelist.
[0021] Optionally, the wireless network security protection method further includes:
[0022] Obtaining first location information of each wireless network in the whitelist and second location information of the mobile terminal;
[0023] comparing the second position information with each piece of the first position information;
[0024] When the difference between the second location information and one of the first location information is less than a preset threshold and the wireless network switch is in the off state, the output prompt information is output to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold.
[0025] Optionally, the network information includes network signal strength, and the wireless network security protection method further includes:
[0026] Determining whether the network signal strength is greater than a preset strength;
[0027] When the network signal strength is greater than the preset strength, it is determined that the wireless network to be connected meets the preset condition.
[0028] Optionally, when the network signal strength is greater than the preset strength, the step of determining whether the wireless network to be connected meets the preset condition includes:
[0029] When the network signal strength is greater than the preset strength and the mobile network of the mobile terminal is in an on state, it is determined that the wireless network to be connected meets the preset condition.
[0030] Optionally, the wireless network security protection method further includes:
[0031] When the network information includes a preset link, adding the wireless network to be connected to a blacklist;
[0032] The preset links include advertising links and links for obtaining basic user information.
[0033] The present application also provides a mobile terminal, which includes: a touch screen; a processor; a memory connected to the processor, the memory containing control instructions, and when the processor reads the control instructions, it controls the mobile terminal to implement the above-mentioned wireless network security protection method.
[0034] The present application also provides a computer-readable storage medium, which has one or more programs, and the one or more programs are executed by one or more processors to implement the above-mentioned wireless network security protection method.
[0035] The wireless network security protection method, mobile terminal, and computer-readable storage medium provided in the present application first obtain network information of a wireless network to be connected, and determine whether the wireless network to be connected belongs to a whitelist based on the network information; secondly, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, control the mobile terminal to access the wireless network to be connected; further, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, determine whether the wireless network to be connected meets a preset condition based on the network information; finally, when the wireless network to be connected meets the preset condition, output a prompt message to prompt a user that the user can access the wireless network to be connected. In this way, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal can directly access the wireless network to be connected, thereby improving the security of wireless network use. When the wireless network to be connected belongs to the whitelist, the wireless network switch is in the off state, and the wireless network to be connected meets the preset condition, a prompt message can be output to prompt the user that the user can access the wireless network to be connected, thereby improving user convenience.
[0036] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the hardware structure of an optional mobile terminal for implementing various embodiments of the present application;
[0038] Figure 2 For example Figure 1 Schematic diagram of the communication network system of the mobile terminal shown;
[0039] Figure 3 A flowchart of a wireless network security protection method provided in one embodiment of the present application;
[0040] Figure 4 A schematic diagram of the structure of a mobile terminal provided in one embodiment of the present application.
[0041] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0043] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are only used to facilitate the description of the present invention and have no specific meaning. Therefore, "module," "component," or "unit" can be used interchangeably.
[0044] The terminal can be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0045] The following description will be made by taking a mobile terminal as an example. It will be understood by those skilled in the art that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed type terminals.
[0046] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation to the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0047] The following combination Figure 1 The following describes the various components of the mobile terminal 100:
[0048] The RF unit 101 can be used to send and receive information or receive signals during calls. Specifically, it receives downlink information from the base station and transmits it to the processor 110 for processing. It also transmits uplink data to the base station. Typically, the RF unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and more. Furthermore, the RF unit 101 can communicate with the network and other devices via wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.
[0049] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0050] The audio output unit 103 can convert audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Furthermore, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, or the like.
[0051] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos captured by an image capture device (e.g., a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the GPU 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the RF unit 101 or the WiFi module 102. The microphone 1042 may receive sound (audio data) in operating modes such as a phone call mode, a recording mode, and a voice recognition mode, and may process such sound into audio data. In the phone call mode, the processed audio (voice) data may be converted into a format that can be transmitted to a mobile communication base station via the RF unit 101. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0052] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0053] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0054] The user input unit 107 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using a finger, stylus, or any other suitable object or accessory on or near the touch panel 1071) and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 110. It can also receive commands sent by the processor 110 and execute them. In addition, the touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, a joystick, etc., and are not specifically limited here.
[0055] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, which is not limited here.
[0056] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0057] Memory 109 can be used to store software programs and various data. Memory 109 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 109 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0058] Processor 110 is the control center of the mobile terminal, connecting all components of the mobile terminal using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 109 and accessing data stored in memory 109, it executes various functions of the mobile terminal and processes data, thereby providing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, processor 110 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 110.
[0059] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption.
[0060] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0061] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0062] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an Evolved UMTS Terrestrial Radio Access Network (E-UTRAN) 202, an Evolved Packet Core (EPC) 203, and an operator's IP service 204, which are sequentially connected in communication.
[0063] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.
[0064] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 via a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .
[0065] EPC 203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035, and PCRF (Policy and Charging Rules Function) 2036. MME 2031 is the control node that handles signaling between UE 201 and EPC 203, providing bearer and connection management. HSS 2032 provides registers for managing functions such as the Home Location Register (not shown) and stores user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, and it selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0066] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services.
[0067] Although the above description is based on the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and is not limited here.
[0068] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0069] Figure 3 This is a flowchart of an embodiment of the wireless network security protection method provided by the present application. Once the method of this embodiment is triggered by the user, the process in this embodiment is automatically executed by the mobile terminal 100. During the execution, each step can be performed in the order shown in the flowchart, or multiple steps can be performed simultaneously according to the actual situation, which is not limited here. The wireless network security protection method provided by the present application includes the following steps:
[0070] Step S310, obtaining network information of a wireless network to be connected, and determining whether the wireless network to be connected belongs to a whitelist based on the network information;
[0071] Step S330: When the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, controlling the mobile terminal 100 to access the wireless network to be connected;
[0072] Step S350: When the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, determining whether the wireless network to be connected meets a preset condition based on the network information;
[0073] Step S370: When the wireless network to be connected meets the preset condition, output prompt information to prompt the user to access the wireless network to be connected.
[0074] Through the above implementation, when the wireless network to be connected belongs to the white list and the wireless network switch is in the on state, the mobile terminal 100 can directly access the wireless network to be connected, thereby improving the security of wireless network use; and when the wireless network to be connected belongs to the white list, the wireless network switch is in the off state and the wireless network to be connected meets the preset conditions, a prompt message can be output to prompt the user that the user can access the wireless network to be connected, thereby improving the convenience of user use.
[0075] The above steps will be described in detail below with reference to specific embodiments.
[0076] In step S310, network information of a wireless network to be connected is obtained, and based on the network information, it is determined whether the wireless network to be connected belongs to a whitelist.
[0077] In this embodiment, the network information may include the first MAC address, network signal strength, IP address, etc., which are not limited here. The wireless networks in the whitelist may be highly secure networks, and the whitelist may be set in advance.
[0078] In this embodiment, the wireless network security protection method further includes:
[0079] Step S3101: Acquire historical network information of wireless networks that the mobile terminal 100 has historically accessed, and classify the historically accessed wireless networks according to the historical network information;
[0080] Step S3102: configuring corresponding weights for each type of wireless network, and calculating a trust score for each type of wireless network based on the weights;
[0081] Step S3103: sorting the wireless networks based on the trust scores;
[0082] The historical network information includes network name, network address (such as MAC address), password information and location data.
[0083] In this embodiment, the historical network information may include network name, network address, password information, location data, etc., which is not limited here.
[0084] In this embodiment, the mobile terminal 100 can record the network information of the wireless network accessed in real time, such as the network name, network address, password information, location data, etc., so that the historical network information of the wireless network historically accessed by the mobile terminal 100 within a preset time period can be directly obtained when needed in the future, and the availability of the historically accessed wireless networks is classified according to the network name, network address, password information, and location data in the historical network information, and a corresponding weight is configured for each type of wireless network. The trust score of each type of wireless network is calculated based on the weight using an optimization algorithm, and the wireless networks are sorted in descending order or ascending order based on the trust score, preferably in descending order to form a ranking table.
[0085] In this embodiment, the preset period can be customized by the user, such as one month, two months, one year, etc. The mobile terminal 100 can set completely different, partially the same, or completely the same weights for each type of wireless network.
[0086] For example, the mobile terminal 100 may classify the wireless networks into three categories based on the network name, network address, password information, and location data in the historical network information: the first category being wireless networks without passwords, the second category being wireless networks requiring authentication, and the third category being commonly used wireless networks. The mobile terminal 100 may assign corresponding weights to the three categories of wireless networks, such as a weight of 0.1 for wireless networks without passwords, a weight of 0.2 for wireless networks requiring authentication, and a weight of 0.7 for commonly used wireless networks. The mobile terminal 100 then calculates a trust score for each category of wireless networks and ranks the wireless networks based on the trust scores.
[0087] In this embodiment, after the step of sorting the wireless networks based on the trust scores, the method further includes:
[0088] Step S3104: Add the wireless network ranked before the preset position to the whitelist.
[0089] In this embodiment, the preset position can be set by the system by default or can be set by the user. The preset position can refer to the 5th or 7th position in the ranking list.
[0090] In this embodiment, after ranking the wireless networks in descending order to form a ranking list, the mobile terminal 100 can add the wireless networks ranked before a preset position to the whitelist. For example, if the preset position is the fifth position in the ranking list, all wireless networks ranked in the top five trust scores are added to the whitelist. It will be appreciated that the user can also modify the whitelist at any time through the settings unit of the mobile terminal 100, for example, by deleting or adding new wireless networks.
[0091] In this embodiment, the wireless network security protection method further includes:
[0092] Step S3105, obtaining a second MAC address of each wireless network in the whitelist;
[0093] Step S3106, comparing the first MAC address with each of the second MAC addresses;
[0094] Step S3107: When the first MAC address is the same as one of the second MAC addresses, it is determined that the wireless network to be connected belongs to the whitelist.
[0095] In this embodiment, the mobile terminal 100 can obtain the first MAC address of the wireless network to be connected and the second MAC address of each wireless network in the whitelist, compare the first MAC address with each second MAC address, and when the first MAC address is the same as one of the second MAC addresses, determine that the wireless network to be connected belongs to the whitelist; when the first MAC address is different from all the second MAC addresses, determine that the wireless network to be connected does not belong to the whitelist.
[0096] In step S330 , when the wireless network to be connected belongs to the white list and the wireless network switch is in the on state, the mobile terminal 100 is controlled to access the wireless network to be connected.
[0097] In this embodiment, when the wireless network to be connected belongs to the white list and the wireless network switch is in the on state, the mobile terminal 100 is controlled to access the wireless network to be connected. In this way, when the security level of the wireless network to be connected is high and the wireless network switch is in the on state, the connection is made directly, which ensures the security of the wireless network while also ensuring the convenience of user use.
[0098] In step S350, when the wireless network to be connected belongs to the white list and the wireless network switch is in the off state, it is determined based on the network information whether the wireless network to be connected meets a preset condition.
[0099] In this embodiment, when the wireless network to be connected belongs to the white list and the wireless network switch is in the off state, the mobile terminal 100 can determine whether the wireless network to be connected meets the preset condition based on the network information.
[0100] In this embodiment, the network information includes network signal strength, and the wireless network security protection method further includes:
[0101] Step S3501, determining whether the network signal strength is greater than a preset strength;
[0102] Step S3502: When the network signal strength is greater than the preset strength, it is determined that the wireless network to be connected meets the preset condition.
[0103] In this embodiment, the preset condition may be that the network signal strength is greater than a preset strength. The preset strength may refer to the minimum strength required for Internet access after connecting to the network. The greater the network signal strength, the better the wireless network signal and the smoother the Internet access. The preset strength may be set in advance.
[0104] In this embodiment, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, the mobile terminal 100 can obtain the network signal strength of the wireless network to be connected and compare the network signal strength with the preset strength. When the network signal strength is greater than the preset strength, it is determined that the wireless network to be connected meets the preset condition.
[0105] In this embodiment, when the network signal strength is greater than the preset strength, the step of determining whether the wireless network to be connected meets the preset condition includes:
[0106] When the network signal strength is greater than the preset strength and the mobile network of the mobile terminal 100 is in an on state, it is determined that the wireless network to be connected meets the preset condition.
[0107] In this embodiment, the preset condition may also be that the network signal strength is greater than the preset strength and the mobile network of the mobile terminal 100 is in an on state.
[0108] In step S370, when the wireless network to be connected meets the preset condition, prompt information is output to prompt the user to access the wireless network to be connected.
[0109] In this embodiment, the prompt information may be text information and / or voice information. The prompt information may include information such as the name of the wireless network to be connected.
[0110] In this embodiment, when the network signal strength is greater than the preset strength, the mobile terminal 100 may output a prompt message to prompt the user to access the wireless network to be connected. When the network signal strength is greater than the preset strength and the mobile network of the mobile terminal 100 is in an on state, the mobile terminal 100 may also output a prompt message to prompt the user to access the wireless network to be connected, thereby saving data traffic.
[0111] In this embodiment, the wireless network security protection method further includes:
[0112] Step S3701, obtaining first location information of each wireless network in the whitelist and second location information of the mobile terminal 100;
[0113] Step S3702, comparing the second location information with each piece of the first location information;
[0114] Step S3703, when the difference between the second location information and one of the first location information is less than a preset threshold and the wireless network switch is in the off state, the output prompt information is output to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold.
[0115] In this embodiment, the preset threshold may refer to the maximum distance from the wireless network that can be connected. The preset threshold may be set in advance, such as 1 meter, 2 meters, etc., and is not limited here.
[0116] In this embodiment, the first location information of each wireless network in the whitelist and the second location information of the mobile terminal 100, that is, the current location of the user, can be obtained, and the second location information can be compared with each of the first location information. When the difference between the second location information and one of the first location information is less than a preset threshold, that is, the user's current location is close to one of the wireless networks in the whitelist and the wireless network switch is in the off state, the mobile terminal 100 can output the output prompt information to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold.
[0117] In other embodiments, when the difference between the second location information and one of the first location information is less than a preset threshold, the wireless network switch is in the off state and the mobile network of the mobile terminal 100 is in the on state, the output prompt information can be output to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold, thereby saving data traffic and improving user experience.
[0118] In this embodiment, the wireless network security protection method further includes:
[0119] Step S3704: When the network information includes a preset link, add the wireless network to be connected to a blacklist;
[0120] The preset links include advertising links and links for obtaining basic user information.
[0121] In this embodiment, the wireless networks in the blacklist may be wireless networks with low security that are not recommended for connection. The blacklist may be set in advance, and after setting the blacklist, the user may also modify the blacklist at any time through the setting unit of the mobile terminal 100, such as deleting or adding new wireless networks.
[0122] In this embodiment, when the network information includes preset links, such as an advertisement link and a link for obtaining basic user information, the mobile terminal 100 may add the wireless network to be connected to a blacklist to ensure the security of wireless network use.
[0123] In other implementations, when the wireless network to be connected requires a series of verification operations or acquisition of important user information, the mobile terminal 100 may also add the wireless network to be connected to the blacklist.
[0124] Through the above embodiment, first, network information of the wireless network to be connected is obtained, and based on the network information, it is determined whether the wireless network to be connected belongs to the whitelist; secondly, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal 100 is controlled to access the wireless network to be connected; thirdly, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, it is determined whether the wireless network to be connected meets the preset conditions based on the network information; finally, when the wireless network to be connected meets the preset conditions, a prompt message is output to prompt the user that the user can access the wireless network to be connected. In this way, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal 100 can directly access the wireless network to be connected, thereby improving the security of wireless network use. When the wireless network to be connected belongs to the whitelist, the wireless network switch is in the off state, and the wireless network to be connected meets the preset conditions, a prompt message can be output to prompt the user that the user can access the wireless network to be connected, thereby improving user convenience.
[0125] Figure 4 This is a schematic diagram of the structure of a mobile terminal 100 provided in an embodiment of the present application. The mobile terminal 100 includes: a touch panel 1071; a processor 110; and a memory 109 connected to the processor 110. The memory 109 contains control instructions. When the processor 110 reads the control instructions, it controls the mobile terminal 100 to implement the following steps:
[0126] Obtain network information of a wireless network to be connected, and determine whether the wireless network to be connected belongs to a whitelist based on the network information; when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, control the mobile terminal 100 to access the wireless network to be connected; when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, determine whether the wireless network to be connected meets a preset condition based on the network information; when the wireless network to be connected meets the preset condition, output a prompt message to prompt the user that the wireless network to be connected can be connected.
[0127] Optionally, it also includes:
[0128] Acquire historical network information of wireless networks that the mobile terminal 100 has historically accessed, and classify the historically accessed wireless networks according to the historical network information;
[0129] Configuring corresponding weights for each type of wireless network, and calculating a trust score for each type of wireless network based on the weights;
[0130] ranking the wireless networks based on the trust scores;
[0131] The historical network information includes network name, network address, password information and location data.
[0132] Optionally, after the step of sorting the wireless networks based on the trust scores, the method further includes:
[0133] The wireless network ranked before the preset position is added to the whitelist.
[0134] Optionally, the network information includes a first MAC address, and the wireless network security protection method further includes:
[0135] Obtaining a second MAC address of each wireless network in the whitelist;
[0136] comparing the first MAC address with each of the second MAC addresses;
[0137] When the first MAC address is the same as one of the second MAC addresses, it is determined that the wireless network to be connected belongs to the whitelist.
[0138] Optionally, it also includes:
[0139] Obtaining first location information of each wireless network in the whitelist and second location information of the mobile terminal 100;
[0140] comparing the second position information with each piece of the first position information;
[0141] When the difference between the second location information and one of the first location information is less than a preset threshold and the wireless network switch is in the off state, the output prompt information is output to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold.
[0142] Optionally, the network information includes network signal strength, and the wireless network security protection method further includes:
[0143] Determining whether the network signal strength is greater than a preset strength;
[0144] When the network signal strength is greater than the preset strength, it is determined that the wireless network to be connected meets the preset condition.
[0145] Optionally, when the network signal strength is greater than the preset strength, the step of determining whether the wireless network to be connected meets the preset condition includes:
[0146] When the network signal strength is greater than the preset strength and the mobile network of the mobile terminal 100 is in an on state, it is determined that the wireless network to be connected meets the preset condition.
[0147] Optionally, it also includes:
[0148] When the network information includes a preset link, adding the wireless network to be connected to a blacklist;
[0149] The preset links include advertising links and links for obtaining basic user information.
[0150] Through the above-mentioned mobile terminal 100, network information of the wireless network to be connected is first obtained, and based on the network information, it is determined whether the wireless network to be connected belongs to the whitelist; secondly, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal 100 is controlled to access the wireless network to be connected; further, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, it is determined whether the wireless network to be connected meets the preset conditions based on the network information; finally, when the wireless network to be connected meets the preset conditions, a prompt message is output to prompt the user that the wireless network to be connected can be connected. In this way, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal 100 can directly access the wireless network to be connected, thereby improving the security of wireless network use. When the wireless network to be connected belongs to the whitelist, the wireless network switch is in the off state, and the wireless network to be connected meets the preset conditions, a prompt message can be output to prompt the user that the wireless network to be connected can be connected, thereby improving user convenience.
[0151] The present application also provides a computer-readable storage medium having one or more programs, which are executed by one or more processors to implement the following steps:
[0152] Obtain network information of a wireless network to be connected, and determine whether the wireless network to be connected belongs to a whitelist based on the network information; when the wireless network to be connected belongs to the whitelist and the wireless network switch is in an on state, control the mobile terminal to access the wireless network to be connected; when the wireless network to be connected belongs to the whitelist and the wireless network switch is in an off state, determine whether the wireless network to be connected meets a preset condition based on the network information; when the wireless network to be connected meets the preset condition, output a prompt message to prompt a user that the user can access the wireless network to be connected.
[0153] Optionally, it also includes:
[0154] Acquiring historical network information of wireless networks historically accessed by the mobile terminal, and classifying the historically accessed wireless networks according to the historical network information;
[0155] Configuring corresponding weights for each type of wireless network, and calculating a trust score for each type of wireless network based on the weights;
[0156] ranking the wireless networks based on the trust scores;
[0157] The historical network information includes network name, network address, password information and location data.
[0158] Optionally, after the step of sorting the wireless networks based on the trust scores, the method further includes:
[0159] The wireless network ranked before the preset position is added to the whitelist.
[0160] Optionally, the network information includes a first MAC address, and the wireless network security protection method further includes:
[0161] Obtaining a second MAC address of each wireless network in the whitelist;
[0162] comparing the first MAC address with each of the second MAC addresses;
[0163] When the first MAC address is the same as one of the second MAC addresses, it is determined that the wireless network to be connected belongs to the whitelist.
[0164] Optionally, it also includes:
[0165] Obtaining first location information of each wireless network in the whitelist and second location information of the mobile terminal;
[0166] comparing the second position information with each piece of the first position information;
[0167] When the difference between the second location information and one of the first location information is less than a preset threshold and the wireless network switch is in the off state, the output prompt information is output to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold.
[0168] Optionally, the network information includes network signal strength, and the wireless network security protection method further includes:
[0169] Determining whether the network signal strength is greater than a preset strength;
[0170] When the network signal strength is greater than the preset strength, it is determined that the wireless network to be connected meets the preset condition.
[0171] Optionally, when the network signal strength is greater than the preset strength, the step of determining whether the wireless network to be connected meets the preset condition includes:
[0172] When the network signal strength is greater than the preset strength and the mobile network of the mobile terminal is in an on state, it is determined that the wireless network to be connected meets the preset condition.
[0173] Optionally, it also includes:
[0174] When the network information includes a preset link, adding the wireless network to be connected to a blacklist;
[0175] The preset links include advertising links and links for obtaining basic user information.
[0176] Through the above-mentioned computer-readable storage medium, first, network information of the wireless network to be connected is obtained, and based on the network information, it is determined whether the wireless network to be connected belongs to a whitelist; secondly, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal is controlled to access the wireless network to be connected; thirdly, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, it is determined whether the wireless network to be connected meets a preset condition based on the network information; finally, when the wireless network to be connected meets the preset condition, a prompt message is output to prompt a user that the user can access the wireless network to be connected. In this way, when the wireless network to be connected belongs to the whitelist and the wireless network switch is in the on state, the mobile terminal can directly access the wireless network to be connected, thereby improving the security of wireless network use. When the wireless network to be connected belongs to the whitelist, the wireless network switch is in the off state, and the wireless network to be connected meets the preset condition, a prompt message can be output to prompt the user that the user can access the wireless network to be connected, thereby improving user convenience.
[0177] The present application also provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs. The computer-readable storage medium may include volatile memory, such as random access memory; non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid-state drive; or a combination of the aforementioned types of memory.
[0178] The corresponding technical features in the above-mentioned embodiments can be used interchangeably without causing contradiction or impracticality of the solutions.
[0179] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0180] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0182] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are protected by this application.
Claims
1. A wireless network security protection method, applied to a mobile terminal, characterized in that: The wireless network security protection method includes: Acquire network information of a wireless network to be connected, and determine whether the wireless network to be connected belongs to a whitelist based on the network information; When the wireless network to be connected belongs to the white list and the wireless network switch is in the on state, controlling the mobile terminal to access the wireless network to be connected; When the wireless network to be connected belongs to the whitelist and the wireless network switch is in the off state, determining whether the wireless network to be connected meets a preset condition based on the network information; When the wireless network to be connected meets the preset condition, outputting prompt information to prompt the user to access the wireless network to be connected; The wireless network security protection method further includes: Acquiring historical network information of wireless networks historically accessed by the mobile terminal, and classifying the historically accessed wireless networks according to the historical network information; Configuring corresponding weights for each type of wireless network, and calculating a trust score for each type of wireless network based on the weights; ranking the wireless networks based on the trust scores; in, The historical network information includes network name, network address, password information and location data; Classifying the wireless networks into three categories according to the network name, the network address, the password information, and the location data: the first category is wireless networks without passwords, the second category is wireless networks that require authentication, and the third category is commonly used wireless networks; After the step of ranking the wireless networks based on the trust scores, the method further includes: Adding the wireless network ranked before the preset position to the whitelist; The network information includes a first MAC address, and the wireless network security protection method further includes: Obtaining a second MAC address of each wireless network in the whitelist; comparing the first MAC address with each of the second MAC addresses; When the first MAC address is the same as one of the second MAC addresses, determining that the wireless network to be connected belongs to the whitelist; The wireless network security protection method further includes: Obtaining first location information of each wireless network in the whitelist and second location information of the mobile terminal; comparing the second position information with each piece of the first position information; When the difference between the second location information and one of the first location information is less than a preset threshold and the wireless network switch is in the off state, outputting the output prompt information to prompt the user to access the wireless network corresponding to the first location information whose difference with the second location information is less than the preset threshold; The network information includes network signal strength, and the wireless network security protection method further includes: Determining whether the network signal strength is greater than a preset strength; When the network signal strength is greater than the preset strength, determining that the wireless network to be connected meets the preset condition; When the network signal strength is greater than the preset strength, the step of determining that the wireless network to be connected meets the preset condition includes: When the network signal strength is greater than the preset strength and the mobile network of the mobile terminal is in an on state, it is determined that the wireless network to be connected meets the preset condition.
2. The wireless network security protection method according to claim 1, wherein: The wireless network security protection method further includes: When the network information includes a preset link, adding the wireless network to be connected to a blacklist; The preset links include advertising links and links for obtaining basic user information.
3. A mobile terminal, characterized in that: The mobile terminal includes: touchscreen; processor; and A memory is connected to the processor, and the memory contains control instructions. When the processor reads the control instructions, it controls the mobile terminal to implement the wireless network security protection method according to claim 1 or 2.
4. A computer-readable storage medium, characterized in that The computer-readable storage medium has one or more programs, and the one or more programs are executed by one or more processors to implement the wireless network security protection method according to claim 1 or 2.
Citation Information
Patent Citations
Mobile terminal and method for connecting wireless network based on mobile terminal
CN103024929A
Internet of things equipment network distribution method and device, equipment and medium
CN110392412A