Abstract:
Disclosed is an authentication method applied to a wireless router, the wireless router being configured with a confirmation key. The method comprises: receiving a first wireless access request from a terminal, the first wireless access request carrying identification information uniquely identifying the terminal. If the identification information is not found in the wireless router, the terminal is determined to be performing a first-time access; upon receipt of a confirmation instruction triggered by a confirmation operation of the confirmation key within a preset time, the terminal is confirmed to be legitimate, and the identification information is stored, the identification information being used to verify the terminal legitimacy the next time the terminal requests access. Also disclosed are a wireless router and computer storage medium.

Description:
TECHNICAL FIELD 
       [0001]    The present disclosure generally relates to wireless router techniques, and more particularly to an authentication method, wireless router and computer storage medium. 
       BACKGROUND 
       [0002]    Conventionally, when a wireless network is established by a user, a Service Set Identifier (SSID) and a security key are manually set at a wireless access point. Then, the key is verified on a base station device so as to prevent intrusion of a malicious intruder. 
         [0003]    Currently, WiFi key cracking prevails. Some WiFi shareware make identity verification information for access to be useless once a terminal gets access to the wireless router, as the terminal may access the wireless router next time without performing verification on the terminal using the identify verification information. This may cause the wireless router to be vulnerable to illegal user access. 
         [0004]    Therefore, currently, there is no solution of accessing a wireless router safely and reliably. 
       SUMMARY 
       [0005]    In view of the above, it is desired to provide an authentication method, wireless router and computer storage medium in embodiments of the present disclosure. 
         [0006]    To this end, the technical solutions of the embodiments of the disclosure are implemented as follows. 
         [0007]    According to a first aspect, an embodiment of the disclosure provides an authentication method applied in a wireless router. A confirmation key is provided on the wireless router. The method includes the following steps: a first wireless access request from a terminal is received; the first wireless access request carries identification information identifying the terminal uniquely; when the identification information is not found by a query in the wireless router, it is determined that it is a first time that the terminal accesses the wireless router; when a confirmation instruction triggered by a confirmation operation on the confirmation key is received within a preset time period, it is confirmed that the terminal is legal and the identification information is stored. The identification information is used to verify legality of the terminal when the terminal requests to access the wireless router next time. 
         [0008]    According to an embodiment, after determining that it is the first time that the terminal accesses the wireless router, the method may further include the following step: it is determined that the terminal is illegal, when failing to receive the confirmation instruction triggered by the confirmation operation within the preset time period. 
         [0009]    According to an embodiment, after determining that it is the first time that the terminal accesses the wireless router, and before receiving the confirmation instruction triggered by the confirmation operation on the confirmation key within the preset time period, the method may further include the following step: a prompt message is output to prompt a user to perform the confirmation operation. 
         [0010]    According to an embodiment, after storing the identification information, the method may further include the following steps: a second wireless access request is received from the terminal; the second wireless access request carries the identification information; and when the identification information is found by the query in the wireless router, it is determined that it is not the first time that the terminal accesses the wireless router, to confirm that the terminal is legal. 
         [0011]    According to a second aspect, an embodiment of the disclosure provides a wireless router. The wireless router includes a reception unit, a determination unit, and a storage unit. The reception unit is arranged to receive a first wireless access request from a terminal. The first wireless access request carries identification information identifying the terminal uniquely. The determination unit is arranged to determine that it is a first time that the terminal accesses the wireless router, when the identification information is not found by a query in the wireless router. The determination unit is further arranged to confirm that the terminal is legal, upon reception of a confirmation instruction triggered by a confirmation operation on the confirmation key within a preset time period. The storage unit is arranged to store the identification information. The identification information is used to verify legality of the terminal when the terminal requests to access the wireless router next time. 
         [0012]    According to an embodiment, the determination unit is further arranged to determine that the terminal is illegal, when failing to receive the confirmation instruction triggered by the confirmation operation within the preset time period, after determining that it is the first time that the terminal accesses the wireless router. 
         [0013]    According to an embodiment, the wireless router may further include an output unit. The output unit is arranged to output a prompt message to prompt a user to perform the confirmation operation, after the determination unit determines that it is the first time that the terminal accesses the wireless router, and before receiving the confirmation instruction triggered by the confirmation operation on the confirmation key within the preset time period. 
         [0014]    According to an embodiment, the reception unit may be further arranged to receive a second wireless access request from the terminal after the storage unit stores the identification information. The second wireless access request carries the identification information. The determination unit may be further arranged to determine that it is not the first time that the terminal accesses the wireless router, to confirm that the terminal is legal, when the identification information is found by the query in the wireless router. 
         [0015]    According to a third aspect, an embodiment of the disclosure provides a computer storage medium including instructions, which, when executed by at least one processor, causes the at least one processor to perform the authentication method. 
         [0016]    According to the authentication method, the wireless router and the computer storage medium provided in the embodiments of the disclosure, a confirmation key is provided on the wireless router. When the wireless router receives a first wireless access request carrying identification information identifying a terminal uniquely from the terminal, the wireless router may determine that it is the first time that the terminal accesses the wireless router based on the identification information. Then, if the wireless router receives a confirmation instruction triggered by a confirmation operation on the confirmation key within a preset time period, the wireless router determines that the terminal is legal and stores the identification information. Thereby, when the terminal requests to access the wireless router next time, the wireless router may determine whether the terminal is legal based on the identification information. Due to limitation of placement of the wireless router, not all persons can get close to the wireless router and operate the confirmation key. Generally, users that can get close to the wireless router and operate the confirmation key are legal users, and thus terminals of the users are terminals which are allowed by the owner of the wireless router to access the wireless router. In this way, the legality of the terminals which request to access the wireless router are confirmed through the confirmation key. Accordingly, the security and reliability of the wireless router may be improved greatly, access of illegal users may be prevented and user experiences may be improved. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0017]      FIG. 1  is a schematic flowchart of an authentication method according to an embodiment of the disclosure; 
           [0018]      FIG. 2  is a schematic flowchart of a method by which a terminal accesses a wireless router according to an embodiment of the disclosure; and 
           [0019]      FIG. 3  is a structural schematic diagram of a wireless router according to an embodiment of the disclosure. 
       
    
    
     DETAILED DESCRIPTION 
       [0020]    The technical solutions of the embodiments of the disclosure will be described in detail and completely, in conjunction with the appended drawings of the embodiments of the disclosure. 
         [0021]    An embodiment of the disclosure provides an authentication method applied in a wireless router. A confirmation key is provided on the wireless router. The confirmation key may be a physical key, or may be a virtual key within a confirmation prompt interface displayed on a display screen of the wireless router. Of course, the confirmation key may have other forms, and is not limited to the embodiment. 
         [0022]    In practice, when the confirmation key is a physical key and some wireless routers enable a WiFi Protected Setup (WPS) function, a WPS key may be reused as the confirmation key. 
         [0023]      FIG. 1  is a schematic flowchart of an authentication method according to an embodiment of the disclosure. As shown in  FIG. 1 , the method includes the following steps. 
         [0024]    In step S 101 , a first wireless access request is received from a terminal. The first wireless access request carries identification information identifying the terminal uniquely. 
         [0025]    Specially, when it is a first time that a user uses a terminal to access the wireless router, the terminal may transmit, to the wireless router, the identification information identifying the terminal uniquely. 
         [0026]    In practice, the identification information may be a Media Access Control (MAC) address of a network card, a network port number or the like of the terminal. Of course, the identification information may have other forms as long as the identification information can identify the terminal uniquely, and the identification information is not limited in the embodiment. 
         [0027]    In practice, when it is the first time that the terminal accesses the wireless router, the user may need to input a SSID or a security key, and then the terminal may transmit, to the wireless router, the SSID, the security key and the identification information together in the first wireless access request. 
         [0028]    In step S 102 , when the identification information is not found by a query in the wireless router, it is determined that it is a first time that the terminal accesses the wireless router. 
         [0029]    Specially, after the wireless router receives the first wireless access request, the first wireless access request may be parsed to obtain the identification information. Then, whether the identification information is stored, is queried in the wireless router. Since it is the first time that the terminal accesses the wireless router and thus the wireless router does not store the identification information, it is determined that it is the first time that the terminal accesses the wireless router when the identification information is not found by the query in the wireless router. 
         [0030]    In practice, in order to prompt the user to perform a confirmation operation on the confirmation key, after step S 102 , the method may include a step of outputting a prompt message to prompt the user to perform the confirmation operation. 
         [0031]    Optionally, the wireless router may output the prompt message acoustically or visually. For example, the prompt message may be output by a voice prompt, a prompt sound, or flicking a light emitting diode (LED) light. Of course, there are other ways in which the prompt message is output, and this is not limited in the embodiment. 
         [0032]    In step S 103 , upon reception of a confirmation instruction triggered by a confirmation operation on the confirmation key within a preset time period, it is confirmed that the terminal is legal and the identification information is stored. The identification information is used to verify legality of the terminal when the terminal requests to access the wireless router next time. 
         [0033]    Specially, after it is determined that it is the first time that the terminal accesses the wireless router, the user may press the confirmation key on the wireless router manually. When the wireless router receives the confirmation instruction triggered by the confirmation operation within the preset time period, the wireless router determines that the terminal is legal and stores the identification information. 
         [0034]    In practice, in case that the user does not perform the confirmation operation within the preset time period, after step S 102 , the method may further include a step of determining that the terminal is illegal, when failing to receive the confirmation instruction triggered by the confirmation operation within the preset time period. At this time, the wireless router may forbid the access of the terminal. 
         [0035]    In practice, the preset time may be 10 seconds, 30 seconds, 1 minute or the like. The skilled in the art may set the preset time as required, and this is not limited to the embodiment. 
         [0036]    So far, the flow of the authentication method by which the terminal accesses the wireless router for the first time is completed. 
         [0037]    Thereafter, when the terminal accesses the wireless router for a second time or an Nth time, after step  103 , the method may further include the following steps. A second wireless access request is received from the terminal. The second wireless access request carries the identification information. When the identification information is found by the query in the wireless router, it is determined that it is not the first time that terminal accesses the wireless router, to confirm that the terminal is legal. Here, the N is an integer greater than or equal to 2. 
         [0038]    Specially, when the terminal accesses the wireless router again, the terminal may transmit, to the wireless router, the second wireless access request which still carries the identification information. Then, the wireless router queries whether the identification information is stored. Since the wireless router has stored the identification information of the terminal during the process of the terminal accessing the wireless router for the first time, the identification information of terminal may be found by the query of the wireless route. At this time, the wireless router can determine that it is not the first time that the terminal accesses the wireless router, to confirm that the terminal is legal. 
         [0039]    In practice, when the terminal accesses the wireless router not for the first time, the user still needs to input the SSID and the security key. Then, the terminal may transmit, to the wireless router, the SSID, the security key and the identification information together in the second wireless access request. 
         [0040]    According to the one or more embodiments, when the wireless router confirms that the terminal is legal, the wireless router may verify the SSID and the security key. When the verification succeeds, the terminal accesses the wireless router normally. When the verification fails, the terminal fails to access the wireless router. 
         [0041]    Hereinafter, a method of accessing the wireless router will be described, in which the authentication solution of the one or more embodiments are applied. 
         [0042]    For example, the terminal A is to access the wireless router B. The identification information identifying the terminal A uniquely is denoted by S. 
         [0043]      FIG. 2  is a schematic flowchart of the method by which the terminal accesses the wireless router according to the embodiment of the disclosure. As shown in  FIG. 2 , the method includes the following steps. 
         [0044]    In step S 201 , the wireless router B receives a wireless access request from the terminal A. The wireless access request carries the SSID, the security key and the identification information S. 
         [0045]    In step S 202 , the wireless router B queries, within the wireless router B, whether the identification information S is stored. When the identification information S is stored, the flow proceeds to a step S 204 . When the identification information S is not stored, the flow proceeds to a step S 203 . 
         [0046]    In step S 203 , the wireless router B determines that it is the first time that the terminal A accesses the wireless router B. The flow proceeds to step S 205 . 
         [0047]    In step S 204 , the wireless router B determines that it is not the first time that the terminal A accesses the wireless router B. The flow proceeds to step S 207 . 
         [0048]    In step S 205 , the wireless router B prompts the user to perform the confirmation operation through outputting a voice of “Please press the confirmation key”. Upon reception of the confirmation instruction triggered by the confirmation operation on the confirmation key within  30  seconds, the flow proceeds to step S 206 . In case that the confirmation instruction triggered by the confirmation operation on the confirmation key is not received within  30  seconds, the flow proceeds to step S 209 . 
         [0049]    In step S 206 , the wireless router B confirms that the terminal A is legal, and stores the identification information S. 
         [0050]    In step S 207 , the wireless router B verifies the SSID and the security key. In case that the verification succeeds, the flow proceeds to step S 208 . In case that the verification fails, the flow is ended. 
         [0051]    In step S 208 , the terminal A gets access to the wireless router B, and the flow is ended. 
         [0052]    In step S 209 , the wireless router B confirms that the terminal A is illegal, and the flow is ended. 
         [0053]    From the above description, due to limitation of placement of the wireless router, not all persons can get close to the wireless router and operate the confirmation key. Generally, users that can get close to the wireless router and operate the confirmation key are legal users, and thus terminals of the users are terminals which are allowed by the owner of the wireless router to access the wireless router. In this way, the legality of the terminals which request to access the wireless router are confirmed through the confirmation key. Accordingly, the security and reliability of the wireless router may be improved greatly, access of illegal users may be prevented and user experiences may be improved. 
         [0054]    Based on the same inventive concept, an embodiment of the disclosure provides a wireless router. The wireless router is consistent with the wireless router according to the above one or more embodiments. 
         [0055]      FIG. 3  is a structural schematic diagram of the wireless router according to the embodiment of the disclosure. As shown in  FIG. 3 , the wireless router includes a reception unit  31 , a determination unit  32  and a storage unit  33 . The reception unit  31  is arranged to receive a first wireless access request from a terminal. The first wireless access request carries identification information identifying the terminal uniquely. The determination unit  32  is arranged to determine that it is a first time that the terminal accesses the wireless router, when the identification information is not found by a query in the wireless router. The determination unit  32  is further arranged to confirm that the terminal is legal, upon reception of a confirmation instruction triggered by a confirmation operation on the confirmation key within a preset time period. The storage unit  33  is arranged to store the identification information. The identification information is used to verify legality of the terminal when the terminal requests to access the wireless router next time. 
         [0056]    In practice, the determination unit  32  may be further arranged to determine that the terminal is illegal, when failing to receive the confirmation instruction triggered by the confirmation operation within the preset time period, after determining that it is the first time that the terminal accesses the wireless router. 
         [0057]    In practice, the wireless router may further include an output unit. The output unit is arranged to output a prompt message to prompt the user that it is the first time that the terminal accesses the wireless router, after the determination unit determines that it is the first time that the terminal accesses the wireless router, and before receiving the confirmation instruction triggered by the confirmation operation on the confirmation key within the preset time period. 
         [0058]    In practice, the reception unit  31  may be further arranged to receive a second wireless access request from the terminal after the storage unit stores the identification information. The second wireless access request carries the identification information. The determination unit  32  may be further arranged to determine that it is not the first time that the terminal accesses the wireless router, to confirm that the terminal is legal, when the identification information is found by the query in the wireless router. 
         [0059]    All of the reception unit  31 , the determination unit  32 , the storage unit  33  and the output unit may be arranged in a processor such as a CPU, an ARM and the like of the wireless router, or may be arranged in a single chip, a system-level chip or an embedded controller. The disclosure is not limited thereto. 
         [0060]    Those skilled in the art shall understand that the embodiments of the disclosure may be provided as a method, a system or a computer program product. Thus, forms of hardware embodiments, software embodiments or embodiments integrating software and hardware may be adopted in the disclosure. Moreover, a form of the computer program product implemented on one or more computer available storage media (including but not limited to, a magnetic disk memory and an optical memory and the like) containing computer available program codes may be adopted in the disclosure. 
         [0061]    The disclosure is described with reference to flow charts and/or block diagrams of the method, the device (system) and the computer program product according to the embodiments of the disclosure. It will be appreciated that each flow and/or block in the flow charts and/or the block diagrams and a combination of the flows and/or the blocks in the flow charts and/or the block diagrams may be implemented by computer program instructions. These computer program instructions may be provided for a general computer, a dedicated computer, an embedded processor or processors of other programmable data processing devices to generate a machine, such that an apparatus for implementing functions designated in one or more flows of the flow charts and/or one or more blocks of the block diagrams is generated via instructions executed by the computers or the processors of the other programmable data processing devices. 
         [0062]    These computer program instructions may also be stored in a computer readable memory capable of guiding the computers or the other programmable data processing devices to work in a specific mode, such that a manufactured product including an instruction apparatus is generated via the instructions stored in the computer readable memory, and the instruction apparatus implements the functions designated in one or more flows of the flow charts and/or one or more blocks of the block diagrams. 
         [0063]    These computer program instructions may also be loaded to the computers or the other programmable data processing devices, such that processing implemented by the computers is generated by executing a series of operation steps on the computers or the other programmable devices, and therefore the instructions executed on the computers or the other programmable devices provide a step of implementing the functions designated in one or more flows of the flow charts and/or one or more blocks of the block diagrams. 
         [0064]    Based on this, an embodiment of the disclosure further provides a computer storage medium comprising instructions. The instructions, when executed by at least one processor, causes the at least one processor to perform any one of the authentication methods. 
         [0065]    The described embodiments above are merely preferred embodiments of the disclosure, and are not intended to limit the protection scope of the disclosure.