Patent ID: 8370518

Claim:
A method for selectively installing a webpage plug-in, comprising: by a browser control, detecting a webpage plug-in in a webpage, obtaining information about the webpage plug-in, and invoking a CoGetClassObjectFromUrl API Function; by an auxiliary tool connected with the browser control, intercepting the invocation of the CoGetClassObjectFromUrl API function using an Application Program Interface Hook (API Hook) technique; by the auxiliary tool, replacing an IBindStatusCallback interface of the browser control by an IBindStatusCallback interface in the auxiliary tool; and by the IBindStatusCallback interface in the auxiliary tool, controlling download and installation of the webpage plug-in through steps of: obtaining the information about the webpage plug-in from the browser control, determining whether the webpage plug-in has been shielded by a subscriber according to the information about the webpage plug-in and a list of shielded plug-ins that records information about webpage plug-ins shielded by the subscriber; terminating the method of selectively downloading and installing the webpage plug-in if the webpage plug-in has been shielded by the subscriber; instructing the browser control to download and install the webpage plug-in if the webpage plug-in has not been shielded by the subscriber by returning control rights to the CoGetClassObjectFromUrl API function to the browser control; and by the browser control, downloading the webpage plug-in and installing the webpage plug-in.