Method and device for connection management
A method for a wireless router to perform connection management, includes: when a device tries to establish a wireless connection with the wireless router, counting a number of times of authentication failure of the device in a preset time period; and when the number of times of authentication failure is larger than or equal to a preset number threshold, performing a preset operation of risk treatment.
1. A method for a wireless router to perform connection management, comprising:
when a request for establishing a connection transmitted by a device is received, acquiring identification information of the device;
if the identification information of the device is identified in a preset blacklist, ignoring the request for establishing the connection;
if the identification information of the device is not identified in the preset blacklist, performing an operation of a wireless connection with the device;
when the device tries to establish the wireless connection with the wireless router, counting, by the wireless router, a number of times of authentication failure of the device in a preset time period; and
when the number of times of authentication failure is larger than or equal to a preset number threshold, performing, by the wireless router, a preset operation of risk treatment;
wherein the performing of the preset operation of risk treatment comprises:
transmitting risk reminding information to a preset management terminal;
after the transmitting of the risk reminding information and before receiving a control instruction from the preset management terminal, setting all authentication results with regard to the device in the preset time period to authentication failure; and
according to the control instruction received from the preset management terminal, adding the identification information of the device to the blacklist.
2. The method according to claim 1 , wherein the performing of the preset operation of risk treatment further comprises:
after the transmitting of the risk reminding information and before the receiving of the control instruction, pausing an operation of authentication with regard to the device.
3. A first device, comprising:
a hardware processor; and
a memory for storing instructions executable by the hardware processor,
wherein the hardware processor is configured to:
when a request for establishing a connection transmitted by a second device is received, acquire identification information of the second device;
if the identification information of the second device is identified in a preset blacklist, ignore the request for establishing the connection;
if the identification information of the second device is not identified in the preset blacklist, perform an operation of a wireless connection with the second device;
when the second device tries to establish the wireless connection with the first device, count a number of times of authentication failure in a preset time period, and
when the number of times of authentication failure is larger than or equal to a preset number threshold, perform a preset operation of risk treatment;
wherein, in performing the preset operation of risk treatment, the hardware processor is further configured to:
transmit risk reminding information to a preset management terminal;
after transmitting the risk reminding information and before receiving a control instruction from the preset management terminal, set all authentication results with regard to the second device in the preset time period to authentication failure; and
according to the control instruction received from the preset management terminal, add the identification information of the second device to the blacklist.
4. The first device according to claim 3 , wherein the hardware processor is further configured to:
after the transmitting of the risk reminding information and before the receiving of the control instruction, pause an operation of authentication with regard to the second device.
5. A non-transitory storage medium having stored therein instructions that, when executed by one or more processors of a wireless router, cause the wireless router to perform a method for connection management, the method comprising:
when a request for establishing a connection transmitted by a device is received, acquiring identification information of the device;
if the identification information of the device is identified in a preset blacklist, ignoring the request for establishing the connection;
if the identification information of the device is not identified in the preset blacklist, performing an operation of a wireless connection with the device;
when the device tries to establish the wireless connection with the wireless router, counting, by the wireless router, a number of times of authentication failure of the device in a preset time period; and
when the number of times of authentication failure is larger than or equal to a preset number threshold, performing, by the wireless router, a preset operation of risk treatment;
wherein the performing of the preset operation of risk treatment comprises:
transmitting risk reminding information to a preset management terminal;
after the transmitting of the risk reminding information and before receiving a control instruction from the preset management terminal, setting all authentication results with regard to the device in the preset time period to authentication failure; and
according to the control instruction received from the preset management terminal, adding the identification information of the device to the blacklist.