The invention relates to a method for controlling the access to an on-line service, the access to the service being requested, via a communications network, by a terminal designed to receive data broadcast by a data transmission device using modulation of visible light producing a light beam, the method being characterized in that it comprises steps for generation of a token for accessing the service, for sending a command for broadcasting the token for accessing the service by the data transmission device using modulation of visible light, and when the terminal is in range of the light beam, for receiving, via the communications network, a request for accessing the service comprising a token for accessing the service originating from the terminal, for verifying the validity of the access token, and for access authorization when the token is valid. In a correlated manner, the invention relates to a method for accessing a service and devices, servers and terminals implementing these methods.