Method and device for router access control and router

The disclosure relates to a method and device for router access control and a router, the method comprising: obtaining a target website address and target post content; generating a post request on the basis of the target post content; transmitting to the target website address the post request; obtaining the return message returned by the target website address on the basis of the post request; determining whether the return message is a preset return message; if the return message is not the preset return message, continuing to transmit to the target website address the post request until the return message being the preset return message. With only once parameter (including the target website address and the target post request) reception, the method can automatically accomplish the transmission process of the subsequent post requests many times until the preset return message is returned, which can avoid the problem of the repeated input or operation of the user after a request fails once in the related art, and operates easily and conveniently.