An automatic switching method for an intrusion detection function, suitable for a wireless detection system with the intrusion detection function, wherein the wireless detection system comprises a wireless router and a detector set in an intrusion detection range, the intrusion detection function of the wireless router is enabled, the automatic switching method comprising:
- detecting, by the detector set, a wireless signal of at least one target mobile device in a whitelist to generate a detection result;
- controlling, by the wireless router, the detector set to start transmitting the detection result to the wireless router;
- determining, by the wireless router, whether the at least one target mobile device is within the intrusion detection range according to the detection result;
- in response to determining that one of the at least one target mobile device is within the intrusion detection range, automatically disabling the intrusion detection function of the wireless router;
- and
- in response to determining that none of the at least one target mobile device is within the intrusion detection range, automatically maintaining the intrusion detection function of the wireless router.