Method and device for intercepting advertisements

The invention discloses a method and device for intercepting advertisements, and belongs to the technical field of terminals. The method includes the steps that when it is detected that a network connected with a terminal is switched, a webpage access request is sent to a specific URL address; a webpage code of the webpage corresponding to the URL address is received, and whether the advertising information implanted by a network operator exists in the webpage code is detected; if yes, advertisement interception is carried out according to the advertising information implanted by the network operator. When it is detected that the network connected with the terminal is switched, a webpage obtaining request is sent to the specific URL address, whether the advertising information is implanted in the webpage code of the obtained webpage by the network operator is determined, and advertisement interception is carried out when the implanted advertising information is detected. Interception of the advertising information implanted by the network operator is realized, the interception efficiency for the advertising information is improved, and the reading efficiency that users have access to the network is improved.