A service providing method for preventing a hidden camera of a service providing apparatus communicating with a relay device which is disposed in the interior of a building to relay a communication network connection via a communication network, the service providing method comprising:
- a collection step of receiving and collecting detection information including connection information of a user device connected to the relay device and identification information of the relay device periodically or in real time from the relay device;
- a determination step of comparing the identification information of the user device included in the connection information according to the detection information with registration information by one or more exception devices pre-registered as a device other than a hidden camera for the building to determine whether the user device corresponds to the exception device;
- and
- a detection step of calculating traffic generated by the user device or a connection maintenance time of the user device based on the connection information for each detection information collected for the user device in the collection step when the user device does not correspond to the exception device in the determination step and then calculating a determining result by applying the calculated traffic or connection maintenance time to a predetermined determination reference to detect the hidden camera, and detecting whether the user device corresponds to the hidden camera according to the determining result,
- wherein the detection step includes detecting whether the user device corresponds to the hidden camera based on a setting time which is predetermined in response to the relay device or received or set from an external device and the connection maintenance time of the user device according to the connection information for each detection information collected for the user device in the collection step or calculating average traffic generated by the user device based on the traffic included in the connection information for each detection information and then detecting whether the user device corresponds to the hidden camera according to whether the average traffic exceeds a predetermined reference value.