A method for improving the security of the connection of a user device to WiFi networks, where the method comprises the following steps: a) receiving, by the user device a beacon signal from an access point belonging to a WiFi network; b) after receiving the beacon signal, if the user device has been never connected to said WiFi network going to step c), otherwise going to step e) c) the user device providing decision support information to the user through an user interface of the user device and, after providing said decision support information, if the user device receives from the user through the user interface a validation of the WiFi network, going to step d), otherwise the method ends; d) the user device sending a connection request to the access point and the user device providing to the user through the user interface the following list of parameters: position of the access point, set of neighbor networks to the WiFi network detected by the user device, signal strength of neighbor networks, identifier of the access point and user devices connected to the WiFi network, and the user device receiving from the user through the user interface, a selection of some or all of them as verification parameters to be verified for future connection attempts to the WiFi network and the method ends; e) the user device obtaining the current value of the verification parameters selected the first time the user device was connected to the network, comparing the current value of the verification parameters selected with a pre-established usual value of the verification parameters, determining whether the network verification is positive or negative based at least on said comparison and, only if the network verification is positive the user device sending a connection request to the access point. a) receiving, by the user device a beacon signal from an access point belonging to a WiFi network; b) after receiving the beacon signal, if the user device has been never connected to said WiFi network going to step c), otherwise going to step e) c) the user device providing decision support information to the user through an user interface of the user device and, after providing said decision support information, if the user device receives from the user through the user interface a validation of the WiFi network, going to step d), otherwise the method ends; d) the user device sending a connection request to the access point and the user device providing to the user through the user interface the following list of parameters: position of the access point, set of neighbor networks to the WiFi network detected by the user device, signal strength of neighbor networks, identifier of the access point and user devices connected to the WiFi network, and the user device receiving from the user through the user interface, a selection of some or all of them as verification parameters to be verified for future connection attempts to the WiFi network and the method ends; e) the user device obtaining the current value of the verification parameters selected the first time the user device was connected to the network, comparing the current value of the verification parameters selected with a pre-established usual value of the verification parameters, determining whether the network verification is positive or negative based at least on said comparison and, only if the network verification is positive the user device sending a connection request to the access point.