Patent ID: 9582584
Date: 2017-02-28
CPC Classifications: G06F

Claim:
1. A method for filtering data of a web page, comprising: receiving a data request message sent through a browser; invoking a corresponding Application Programming Interface based on the data request message, wherein the application programming interface comprises a HOOK function; and filtering the data request message with the HOOK function in the Application Programming Interface, wherein the step of filtering the data request message with the HOOK function in the Application Programming Interface comprises: blocking the data requested by the data request message in the case that it is determined through the HOOK function in the Application Programming Interface that the data requested by the data request message is a first type of data preset as to be intercepted; and returning, in response to the data request message, a blank file as the data requested by the data request message, in the case that it is determined through the HOOK function in the Application Programming Interface that the data requested by the data request message is a second type of data preset as to be intercepted, wherein, each of the first type of data preset as to be intercepted and the second type of data preset as to be intercepted is an advertisement link, a game link or a link to install an unknown plug-in, and the first type of the data preset as to be intercepted is different from the second type of the data preset as to be intercepted.