CN104391880A - Method for intercepting business object and client - Google Patents

Method for intercepting business object and client Download PDF

Info

Publication number
CN104391880A
CN104391880A CN201410602675.3A CN201410602675A CN104391880A CN 104391880 A CN104391880 A CN 104391880A CN 201410602675 A CN201410602675 A CN 201410602675A CN 104391880 A CN104391880 A CN 104391880A
Authority
CN
China
Prior art keywords
browser
business object
unit
interception
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410602675.3A
Other languages
Chinese (zh)
Inventor
宗小斌
李海亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410602675.3A priority Critical patent/CN104391880A/en
Publication of CN104391880A publication Critical patent/CN104391880A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/575Secure boot

Abstract

The invention provides a method for intercepting a business object and a client. The method of intercepting the business object comprises the following steps of registering a set plug-in unit for a system and injecting the registered set plug-in unit into a browser of an IE (Internet Explorer) kernel through BHO (Browser Helper Objects), wherein the set plug-in unit is used for obtaining a URL (Uniform Resource Locator) and/or CSS (Cascading Style sheets) information corresponding to a new webpage loaded by the browser of the IE kernel; judging whether the URL is in a business object intercept list, and/or judging whether the CSS information is in the business object intercept list; if the URL is in the business object intercept list, and/or the CSS information is in the business object intercept list, intercepting the URL and/or CSS information; transmitting an intercepting result to allow the browser to load the new webpage according to the intercepting result. Through the method for intercepting the business object and the client, the business object can be effectively intercepted when the browser loads the webpage.

Description

The method of interception service object and client
Technical field
The application relates to networking technology area, particularly relates to a kind of method and client of interception service object.
Background technology
As everyone knows, browsed web content be unable to do without browser on the internet, and, the IE browser based on IE kernel that the Dou Shi Microsoft that present most users uses provides.User can be subject to the interference of the business objects such as advertisement unavoidably when being browsed webpage by IE browser, such as: play window advertisement.In order to avoid user to be interfered when browsing webpage as far as possible, therefore, when browsing webpage by IE browser, it is necessary for tackling business objects such as advertisements.
At present, the Ad blocking function of IE browser is all the bullet window interception of the bullet window advertisement carried based on IE browser.When tackling, needing user that the website of needs interception is manually set in the Ad blocking bullet window ejected, being stoped when being loaded into the website be set up by IE browser, to complete the interception to business object.
And the existing this hold-up interception method being carried out business object by IE browser, on the one hand, because needs user manually arranges website, add burden for users, and intercepting efficiency is low; On the other hand, all websites comprising business object all can not be arranged on and play in window by user, therefore, also there is the situation that partial service object cannot be blocked.In a word, the existing scheme by IE browser interception service object cannot be tackled business object effectively.
Summary of the invention
Cannot effectively to the problem that business object is tackled in view of existing in the scheme of above-mentioned existing interception service object, propose the present invention to provide a kind of overcoming the problems referred to above or the method for interception service object solved the problem at least in part and client.
According to one aspect of the present invention, provide a kind of method of interception service object, comprising: to system registry setting plug-in unit, and by browser auxiliary object, the described setting plug-in unit after registration is injected the browser of IE kernel; Wherein, uniform resource position mark URL corresponding to new web page that load for the browser obtaining described IE kernel of described setting plug-in unit and/or Cascading Style Sheet CSS information; Judge whether described URL tackles in list in business object, and/or, judge whether described CSS information tackles in list in described business object; If described URL is in described business object interception list, and/or described CSS information in described business object interception list, is then tackled described URL and/or described CSS information; Interception result is sent to described browser and loads described new web page for described browser according to described interception result.
According to another aspect of the present invention, provide a kind of client, comprising: plug-in registration module, for setting plug-in unit to system registry; Plug-in unit injection module, for injecting the browser of IE kernel by the described setting plug-in unit after registration by browser auxiliary object; Wherein, uniform resource position mark URL corresponding to new web page that load for the browser obtaining described IE kernel of described setting plug-in unit and/or Cascading Style Sheet CSS information; Judge whether described URL tackles in list in business object, and/or, judge whether described CSS information tackles in list in described business object; If described URL is in described business object interception list, and/or described CSS information in described business object interception list, is then tackled described URL and/or described CSS information; Interception result is sent to described browser and loads described new web page for described browser according to described interception result.
The scheme of interception service object of the present invention, setting plug-in unit is injected to browser by the application program independent of browser, browser is when Web page loading, URL (the Uniform Resource Locator that the webpage that setting plug-in unit passes through to load is corresponding, URL(uniform resource locator)) and/or CSS (CascadingStyle Sheets, Cascading Style Sheet) information and business object tackle list and compare, if URL is in business object interception list, and/or, CSS information is in business object interception list, by tackling URL and/or CSS information, the interception to business object is realized with this.The scheme of interception service object provided by the invention, on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, the scheme of interception service object provided by the invention, by setting plug-in unit to perform, can also alleviate the working load of browser.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention one;
Fig. 2 is the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention two;
Fig. 3 is the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention three;
Fig. 4 is the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention four;
Fig. 5 is that the business object in embodiment illustrated in fig. 4 four tackles the setting of list and business object interception rule, the flow chart of steps of renewal;
Fig. 6 is the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention five;
Fig. 7 is the menu page of the icon adopting the method in embodiment five to load;
Fig. 8 is the advertisement interface under the icon adopting the method in embodiment five to load;
Fig. 9 is the structured flowchart of a kind of browser client according to the embodiment of the present invention six;
Figure 10 is the structured flowchart of a kind of browser client according to the embodiment of the present invention seven;
Figure 11 is the structured flowchart of a kind of client application according to the embodiment of the present invention eight;
Figure 12 is the structured flowchart of a kind of client application according to the embodiment of the present invention nine.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
With reference to Fig. 1, show the flow chart of steps of the method for a kind of interception service object of the embodiment of the present invention one.
Be described from browser side to the method for interception service object of the present invention in the present embodiment, in the present embodiment, the method for interception service object comprises the following steps:
Step S102: URL and/or the CSS information that the new web page loaded by the setting plug-in unit acquisition browser of the browser of IE kernel is corresponding.
In the present embodiment, setting plug-in unit is injected into the browser of IE kernel by BHO (BrowserHelper Objects, browser auxiliary object) by the application program independent of browser.
It should be noted that, in actual mechanical process, when those skilled in the art can be arranged in and obtain information corresponding to new web page, only obtain URL or the CSS information of webpage, certainly, also can be arranged to obtain URL and CSS information corresponding to webpage simultaneously.
Step S104: judge whether URL tackles in list in business object by setting plug-in unit, and/or, judge whether CSS information tackles in list in business object by setting plug-in unit.
The acquisition of business object interception list can be obtained by setting plug-in unit, and be sent to setting plug-in unit after can being obtained by application program, the application does not do concrete restriction to this yet.
It should be noted that, when only obtaining URL corresponding to webpage in step S102, then only judging URL whether in business object interception list.When only obtaining CSS information corresponding to webpage in step S102, then judge whether CSS information tackles in list in business object by means of only setting plug-in unit.And when obtaining URL and CSS information corresponding to webpage in step S102 simultaneously, judge URL whether in business object interception list by setting plug-in unit, and judge whether CSS information tackles in list in business object by setting plug-in unit.
Step S106: if the URL of webpage is in business object interception list, and/or the CSS information of webpage in business object interception list, is then tackled URL and/or CSS information by setting plug-in unit.
Setting plug-in unit can be set by those skilled in the art according to the actual requirements to the specific rules that URL and/or CSS information is tackled.Such as: by interception rule settings be: when judging that URL is in business object interception list, then directly stop the URL of this webpage, if when the CSS information of webpage is in business object interception list, then directly stop the loading of this webpage.Or if when the CSS information of webpage is in business object interception list, the CSS information only in business object interception list is tackled, and the CSS information not in business object interception list is loaded into new web page in a browser.In the present embodiment, concrete restriction is not done to this.
Step S108: load new web page according to interception result in the browser of IE kernel.
The method of the interception service object provided by the present embodiment, setting plug-in unit is injected to browser by the application program independent of browser, browser is when Web page loading, setting plug-in unit is compared by URL and/or CSS information corresponding for the webpage of loading and business object are tackled list, if URL is in business object interception list, and/or CSS information is in business object interception list, then by tackling URL and/or CSS information, realize the interception to business object with this.The scheme of interception service object provided by the invention, on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, the method for the interception service object that the present embodiment provides, by setting plug-in unit to perform, can also alleviate the working load of browser.
Embodiment two
With reference to Fig. 2, show the flow chart of steps of the method for a kind of interception service object of the embodiment of the present invention two.
The method of the interception service object in the present embodiment is realized by the setting plug-in unit be injected in the browser of IE kernel, and the method below from IE kernel browser side to interception service object of the present invention is described.
The method of the interception service object in the present embodiment specifically comprises the following steps:
Step S202: browser receives the request that application program detects the attribute information of browser, is sent to by the attribute information of browser application program to carry out the detection of identification information.
Browser in the present embodiment is the browser of IE kernel.Wherein, this request is used for application program and detects in the attribute information of browser whether have identification information, and the corresponding identification information of each setting plug-in unit, includes the identification information of the setting plug-in unit injecting browser in the attribute information of browser.
In this step, application program can detect in browser whether be injected with setting plug-in unit by the attribute information detecting browser host process.If testing result is do not have identification information in the attribute information of browser, then illustrate and do not inject setting plug-in unit, then application program needs to obtain system information corresponding to browser to browser, with the system information by browser for the setting plug-in unit that browser generates or injection is mated with browser version.If testing result is for existing identification information, then illustrates in browser and be injected with this setting plug-in unit, so just without the need to reinjecting.
Be do not have identification information in the attribute information of browser below with testing result, needing application program to inject setting plug-in unit to browser is that the subsequent step of example to the present embodiment is described.
Step S204: the system information of the browser of IE kernel is sent to application program by browser, and the setting plug-in unit receiving the browser information that is adapted to that application program is injected to the browser of IE kernel by BHO.
Wherein, system information comprises: the operating system version of the browser place terminal of IE kernel and/or, the version information of the browser of IE kernel.As everyone knows, there is multiple version in the browser of IE kernel, in the present embodiment, the version of the setting plug-in unit that the browser of different editions is installed is also different, and it is that it generates the setting plug-in unit of the version matched with its version that application program needs according to the version information of browser.
In the present embodiment, be no matter the version that the operating system version of terminal or the version information of browser all can embody browser, therefore, in specific implementation process, need to arrange application program and obtain at least one information in two.
Browser auxiliary object is called for short BHO, is the industrywide standard opening interactive interface to third party programmer as browser that Microsoft releases, just can be entered the interactive interface of browser by simple code.By this interface, programmer can write the behavior of Code obtaining browser, such as: retrogressing, advance, current page etc., utilize the interaction characteristic of BHO, programmer can also control the behavior of browser with code, such as: amendment is replaced the toolbar of browser, added the program pushbutton etc. of oneself.The effect of BHO is exactly provide interactive interface for programmer makes personalized browser.In the present embodiment, just by the setting plug-in unit that third party application is injected in browser by BHO, and this plug-in unit injected is used for the interception webpage that browser loads being carried out to business object.
Step S206: browser loads to be used to indicate in address field tackles to business object the icon arranged.
Be injected into after in browser at setting plug-in unit, in the address field of browser, corresponding being loaded with can tackle for user the icon arranged to business object.The application does not do concrete setting for the pattern of described icon and the particular location that loads in address field, word and/or image can be comprised in icon, the shape of icon also can be arranged by those skilled in the art according to the actual requirements, such as: circular, square etc.Meanwhile, the icon loaded after setting plug-in unit is injected in browser is not limited to and is carried in the address field of browser, can be carried in any appropriate location of browser, such as: in menu bar, in search column, collection hurdle is medium.
Preferably, browser loads icon in the following manner in address field: browser obtains address field handle; To load at address field according to address field handle and be used to indicate the icon arranged is tackled to business object.
Step S208: browser receives the operation to icon, according to operation loaded with traffic object interception setting options.
Wherein, setting options comprise first setting options of the new web page loaded being carried out to business object interception, and, cancel second setting options of the new web page loaded being carried out to business object interception.Preferably, setting options can also comprise and tackle to business object the 3rd setting options that the icon that arranges hides to being used to indicate.
The concrete function of three setting options is as follows:
When the first setting options are set up, then URL and/or CSS information corresponding for the new web page of loading is added in business object interception list; When the second setting options are set up, then URL and/or CSS information corresponding for the new web page of loading is deleted from business object interception list; When the 3rd setting options are set up, are then used to indicate described in hiding and the icon arranged is tackled to business object.Visible, three setting options under icon can carry out dynamic conditioning for user to information in business object interception list, also can be supplied to the interface of user's hidden icons.
Step S210: browser obtains by setting plug-in unit URL and/or CSS information corresponding to new web page that browser loads.
By being successfully injected with the credible setting plug-in unit of registration in above-mentioned steps S202 to step S208 browser.Now, when there being new web page to load in browser, the setting plug-in unit injected in browser can carry out business object interception to the new webpage loaded.
Step S212: by setting plug-in unit, browser judges whether URL tackles in list in business object, and/or, judge whether CSS information tackles in list in business object by setting plug-in unit.
Wherein, business object interception list can be obtained by least one approach following, specifically comprises:
First approach: obtain business object by browser invokes application from cloud server and/or this locality and tackle list and business object interception rule, the business object interception list that browser reception application program obtains and business object tackle rule.
Second approach: directly tackle list and business object interception rule from cloud server and/or the local business object that obtains by setting plug-in unit.
It should be noted that, can be arranged to comprise blacklist and white list in business object interception list, wherein, blacklist comprises URL and/or the CSS information of needs interception, is then URL and/or the CSS information no longer needing to tackle of deleting from blacklist in white list.Certainly, the blacklist of URL and the CSS information comprising needs interception also can be only set in business object interception list.The application does not do concrete restriction for the concrete setting in business object interception list.
For the interception rule of business object, can arrange with reference to the relevant interception rule in existing security guard, also can be arranged according to the actual requirements by those skilled in the art.Such as: if be arranged to judge that URL is in business object interception list, then directly tackle this URL, the application does not do concrete restriction to this.
Step S214: URL and/or the CSS information that browser is corresponding to the new webpage loaded according to judged result is tackled.
It is as follows that a kind of preferably corresponding to the new webpage loaded according to judged result URL and/or CSS information carries out interception mode:
If URL is in business object interception list, then tackle webpage corresponding to rule interception URL by setting plug-in unit according to the business object of setting, and/or, if CSS information is in business object interception list, then by the business object interception rule of setting plug-in unit according to correspondence, CSS information is modified, the information deletion of business object will be used to indicate in CSS information, and amended CSS information is back to the browser of IE kernel.
Step S216: browser receives the amended CSS information that setting plug-in unit returns, and loads new web page according to amended CSS information in the browser of IE kernel.
After above-mentioned judgement, when setting plug-in unit is tackled business object according to URL, when whether the URL determining the new webpage loaded is the URL needing interception, setting plug-in unit directly interrupts the loading to this webpage, or the loading to this webpage cancelled by notice browser, now, browser then can not load new web page.And if URL corresponding to the new webpage loaded not in business object interception list namely this URL be the URL not needing to tackle, so now, setting plug-in unit can send instruction browser and load the instruction of this webpage to load this webpage in a browser.
And set plug-in unit when carrying out the interception of business object according to the CSS information of webpage, setting plug-in unit is determining CSS information in business object interception list, so set plug-in unit to modify to CSS information, by CSS information deletion corresponding for business object, make in CSS information, to comprise CSS information corresponding to business object again, now, setting plug-in unit returns amended CSS information to browser, loads new web page to make browser according to amended CSS information in the browser of IE kernel.
The method of the interception service object provided by the present embodiment, setting plug-in unit is injected to browser by the application program of the browser independent of IE kernel, browser is when Web page loading, URL and/or the CSS information corresponding with the new webpage loaded according to business object interception list by setting plug-in unit is tackled business object.The scheme of the interception service object that the present embodiment provides, on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; And, information in business object interception list can also carry out dynamic conditioning by user by corresponding setting options, the interception to non-traffic object webpage can be cancelled in time, timely increase is to the newly-increased intercept information comprising the webpage of business object, and business object interception list has more real-time; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, the method for the interception service object that the present embodiment provides, by setting plug-in unit to perform, can also alleviate the working load of browser.
Embodiment three
With reference to Fig. 3, show the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention three.
The setting plug-in unit be injected into by application program in the present embodiment in the browser of IE kernel carries out the interception of business object, and be described from application program side to the method for interception service object of the present invention below, the method comprises the following steps:
Step S302: application program sets plug-in unit to system registry.
Application program, can to this setting plug-in unit of system registry after the browser for IE kernel generates the setting plug-in unit of the version matched with browser version.After succeeding in registration, system is the identification information that this setting plug-in unit generates this setting plug-in unit identity of unique identification in registration table, such as: No. CLSID (class identifier).When the host process of browser starts, then can call this setting plug-in unit, identification information corresponding to this setting plug-in unit will be comprised in the attribute information of browser.
Step S304: the setting plug-in unit after registration is injected the browser of IE kernel by application program by BHO.
Wherein, URL and/or CSS information corresponding to new web page that plug-in unit loads for the browser obtaining IE kernel is set; Judge whether URL tackles in list in business object, and/or, judge whether CSS information tackles in list in business object; If URL is in business object interception list, and/or CSS information in business object interception list, is then tackled URL and/or CSS information; Interception result is sent to browser and loads new web page for browser according to interception result.
As described in embodiment two, browser auxiliary object is called for short BHO, is the industrywide standard opening interactive interface to third party programmer as browser that Microsoft releases, just can be entered the interactive interface of browser by simple code.In the present embodiment, setting plug-in unit is injected in browser by this interface by application program just.
The browser of step S306:IE kernel uses the setting plug-in unit injected to carry out business object interception.
After injecting setting plug-in unit by step S302 and step S304 success in the browser of IE kernel, when loading new web page in the browser of IE kernel, by this setting plug-in unit, business object interception is carried out to the new web page loaded in the browser of IE kernel.Concrete intercept process can refer to corresponding part in aforementioned multiple embodiment, does not repeat them here.The method of the interception service object provided by the present embodiment, application program sets plug-in unit to system registry, and will set plug-in unit injection browser by BHO, when browser loads new web page, carries out business object interception by the setting plug-in unit injected.Setting plug-in unit is compared by URL and/or CSS corresponding for the webpage of loading and business object are tackled list, if URL is in business object interception list, and/or, CSS information is in business object interception list, then by tackling URL and/or CSS information, realize the interception to business object with this.The scheme of the interception service object that the present embodiment provides, on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, the scheme of the interception service object that the present embodiment provides, by setting plug-in unit to perform, can also alleviate the working load of browser.
Embodiment four
With reference to Fig. 4, show the flow chart of steps of the method for a kind of interception service object according to the embodiment of the present invention four.
The setting plug-in unit be still injected in the browser of IE kernel by application program in the present embodiment carries out the interception of business object, and be still described from application program side to the method for interception service object of the present invention below, the method comprises the following steps:
Step S402: application program obtains the system information of the browser of IE kernel.
Wherein, system information comprises: the operating system version of the browser place terminal of IE kernel and/or, the version information of the browser of IE kernel.Browser version can be embodied by above-mentioned any one information.Application program by the object of browser version is, for browser generates the setting plug-in unit with this edition of its version match.
When obtaining the system information of browser, those skilled in the art can be arranged the system information obtained according to demand, can be arranged to the operating system version information only obtaining browser place terminal; Or, be arranged to the version information only obtaining browser; Can also be arranged to obtain the operating system version of browser place terminal and the version information of browser simultaneously.In any case arrange, ensure to get the system information that can embody browser version.Certainly, if there is other information to embody browser version, then also can arranges and obtain this category information.The application does not do concrete restriction to this.
Step S404: application program generates the setting plug-in unit and identification information that adapt with system information.
As mentioned above, the different editions of browser is to the setting plug-in unit that should have different versions, and each setting plug-in unit is to there being an identification information.Therefore, application program can determine the version of browser from the browser information obtained, and then for browser generates the setting plug-in unit of the version matched with its version, and is the identification information of this its identity of setting plug-in unit generating identification.It should be noted that, the acquisition of setting plug-in unit is not limited thereto, and also can be obtained from network side download by application program.
For this identification information, if be filled with setting plug-in unit in browser, so, in the attribute information of browser, identification information corresponding to this setting plug-in unit is then comprised.Visible, whether comprising this identification information in the attribute information of browser can as the foundation judging whether to be injected with in browser this setting plug-in unit.
Step S406: application program sets plug-in unit to system registry.
When application program is to system registry setting plug-in unit, operating system can be the identification information that this setting plug-in unit generates this setting plug-in unit identity of unique identification in registration table, such as: No. CLSID (class identifier).Once to this setting plug-in unit success of system registry, and setting plug-in unit is successfully injected in browser, so, when browser master routine starts, then together can starts the setting plug-in unit of injection.
Step S408: application program detects the attribute information of browser.
Step S410: application program judges whether to have in the attribute information of browser the identification information being used to indicate and there is setting plug-in unit in browser; If so, then step S414 is performed; If not, then step S412 is performed.
Set forth in the related description of above-mentioned steps S404, if be filled with setting plug-in unit in browser, in the attribute information of so browser, then stored identification information corresponding to this setting plug-in unit.In this step, the attribute information of application program to browser judges, is to judge the setting plug-in unit whether be injected with in browser for carrying out business object interception.
Step S412: if there is not identification information in attribute information, the setting plug-in unit after registration is injected the browser of IE kernel by application program by BHO, continue to perform step S414.
Wherein, the setting plug-in unit injecting the browser of IE kernel has been the plug-in unit trusty of registration.
When setting plug-in unit is successfully injected in the browser of IE kernel, when browser host process starts, then the setting plug-in unit injected can be loaded.When browser Web page loading, setting plug-in unit can carry out business object interception to the webpage loaded.
Step S414: application program is when detecting that browser loads new web page, tackle list and/or business object interception rule from cloud server and/or the local business object that obtains, the business object of acquisition interception list and business object interception rule are sent to setting plug-in unit.
Application program is when detecting that browser loads new web page, obtain business object interception list and business object interception rule, then the business object got interception list and business object interception rule are sent to setting plug-in unit, setting plug-in unit can carry out business object interception according to the business object interception list got and business object interception rule to the new web page that browser loads.
It should be noted that, this step is optional step, in actual applications, business object interception list and/or business object interception rule also can be set directly in setting plug-in unit, then browser is when using setting plug-in unit to carry out business object interception, again from cloud server and/or local obtain business object interception list and business object interception rule, setting plug-in unit directly need not be used to carry out business object and to tackle.
Step S416: browser uses setting plug-in unit to carry out business object interception to the webpage that browser newly loads.
URL and/or the CSS information that the new web page that the browser that setting plug-in unit obtains IE kernel loads is corresponding; Judge whether URL tackles in list in business object, and/or, judge whether CSS information tackles in list in business object; If URL is in business object interception list, and/or CSS information in business object interception list, is then tackled URL and/or CSS information; Interception result is sent to browser and loads new web page for described browser according to interception result.
Above-mentioned browser uses setting plug-in unit to obtain comparatively simple to the process prescription that the webpage that browser newly loads carries out business object interception, in actual applications, can refer to the associated description in above-mentioned multiple embodiment.
The method of the interception service object provided by the present embodiment, application program sets plug-in unit to system registry, and plug-in unit injection browser will be set by BHO, when browser loads new web page, obtain business object by application program and tackle list, the business object got interception list is sent to the setting plug-in unit injecting browser, carries out business object interception by setting plug-in unit.The method of the interception service object that the present embodiment provides, on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, the method for the interception service object that the present embodiment provides, by setting plug-in unit to perform, can also alleviate the working load of browser.
Below, composition graphs 5, tackles the setting of list and business object interception rule to the business object in embodiment four, the idiographic flow of renewal is described.
The setting of this business object interception list and business object interception rule, the idiographic flow of renewal comprise:
Step S502: by BHO the setting plug-in unit after registration to be injected the browser of IE kernel in application program after, browser loads to be used to indicate in address field tackles to business object the icon arranged.
In the present embodiment, to load in browser address bar, the icon arranged is tackled to business object, but it should be understood by those skilled in the art that other appropriate location in a browser, as the position such as menu bar, toolbar loads the flow process that this icon is suitable for the present embodiment too.
Preferably, browser loads icon in the following manner in address field: browser obtains address field handle; To load at address field according to address field handle and be used to indicate the icon arranged is tackled to business object.
Step S504: browser receives the operation to icon, according to operation loaded with traffic object interception setting options.
Wherein, setting options comprise first setting options of the new web page loaded being carried out to business object interception, and, cancel second setting options of the new web page loaded being carried out to business object interception.Preferably, setting options can also comprise and tackle to business object the 3rd setting options that the icon that arranges hides to being used to indicate.
The concrete function of three setting options is as follows:
When the first setting options are set up, then URL and/or CSS information corresponding for the new web page of loading is added in business object interception list; When the second setting options are set up, then URL and/or CSS information corresponding for the new web page of loading is deleted from business object interception list; When the 3rd setting options are set up, are then used to indicate described in hiding and the icon arranged is tackled to business object.Visible, three setting options under icon can be arranged information in business object interception list for user, can also by icon hiding.
In this step, after user operates (as clicked) in browser address bar to icon, browser will in corresponding position loaded with traffic object interception setting options.As, below icon, show a wicket, loaded with traffic object interception setting options in this wicket.
Step S506: the setting plug-in unit in browser obtains the operation of user to the business object interception setting options loaded, and generates corresponding business object interception configuration information according to this operation.
Wherein, comprise in business object interception configuration information: add the information of the new web page loaded being carried out to business object interception, or, cancel the information of the new web page loaded being carried out to business object interception.Usually, URL and/or CSS information corresponding to new web page is included in above-mentioned information.
Preferably, business object interception configuration information can also comprise the information that the icon corresponding to setting plug-in unit is hidden.
Step S508: the setting plug-in unit in browser sends business object interception configuration information to application program.Step S510: application program receives the business object interception configuration information that setting plug-in unit sends, and upgrade cloud server and/or the local business object interception list stored according to the business object interception configuration information received.
A kind of preferred implementation is: according to the business object interception configuration information received, and upgrades URL and/or the CSS information that the new web page of the loading in cloud server and/or the local business object interception list stored is corresponding.
The setting of the business object interception list provided by the present embodiment and business object interception rule, update method, setting plug-in unit can user in real to load business object interception setting options operation, corresponding business object interception configuration information is generated according to this operation, and these business objects interception configuration information is sent to application program, the information that the business object that application program can store local and/or server end according to these business objects interception configuration information is tackled in list carries out dynamic conditioning, timely cancellation is to the interception of non-traffic object webpage, or increase in time the newly-increased intercept information comprising the webpage of business object, make business object tackle list and have more real-time.
Embodiment five
With reference to Fig. 6, show the flow chart of steps of the method for a kind of interception service object of the embodiment of the present invention five.
To be injected the BHO plug-in unit for carrying out business object interception in the browser of IE kernel by fail-safe software in the present embodiment, be described from the method for mutual angle to the interception service object the present embodiment of fail-safe software, browser and BHO plug-in unit.
In the present embodiment, why select fail-safe software (such as: net shield) in the browser of IE kernel, inject setting plug-in unit for carrying out business object interception, be because the installation popularity rate of fail-safe software is high, every like this system being provided with fail-safe software all can realize the setting plug-in unit injected in the browser of IE kernel for carrying out business object interception.Further, the setting plug-in unit of injection is injected by BHO, therefore, the setting plug-in unit of injection is called business object interception BHO plug-in unit in subsequent descriptions.
The method of the interception service object in the present embodiment specifically comprises the following steps:
Step S602: net shield is the browser registration business object interception BHO plug-in unit of IE kernel.
Wherein, arranging inner being increased in advance at net shield has IE to strengthen function choosing-item, and this option acquiescence is opened.Like this, net shield just can carry out registration and the injection of business object interception BHO plug-in unit to the browser of IE kernel.
Net shield can when the host process of the browser of IE kernel starts, check in the attribute information of the browser of IE kernel and whether have business object to tackle identification information corresponding to BHO plug-in unit, such as: No. CLSID (class identifier), if there is the identification information that this BHO plug-in unit is corresponding in the attribute information of browser, then the browser registration for this IE kernel in expression system has business object to tackle BHO plug-in unit.If the identification information that in the attribute information of browser, this BHO plug-in unit is not corresponding, the installation kit of the business object interception BHO of the version that the browser version that net shield then downloads this IE kernel from network side matches tackles BHO plug-in unit for this browser generates business object, and to this business object of system registry interception BHO plug-in unit.
After business object interception BHO plug-in unit is registered, in the registration table of operating system, namely can be this BHO plug-in unit generate corresponding registry value, namely generate one unique No. CLSID.Like this, when the host process of the browser of IE kernel starts, then can call is successfully the business object interception BHO plug-in unit of its registration.
Visible, this step is optional step, when only having business object to tackle BHO plug-in unit not to system registry, just need perform this step.
The browser of step S604:IE kernel calls registered business object interception BHO plug-in unit.
In the present embodiment, started the injection of the business object interception BHO plug-in unit for the Development of Web Browser of IE kernel by net shield, in the browser of the browser of IE kernel, namely injected the business object interception BHO plug-in unit of successful registration by net shield.Meanwhile, because BHO plug-in unit is an in-process plug-in unit, therefore, along with the startup of the host process of the browser of IE kernel, the BHO plug-in unit of registration can be called.After the browser of IE kernel calls the success of business object interception BHO plug-in unit, load to be used to indicate in the address field of the browser of IE kernel and the icon arranged is tackled to business object, such as: the security guard's icon loaded in the present embodiment, and the business object of tackling is advertisement.
As shown in Figure 7, browser can receive the clicking operation of user to security guard's icon, corresponding menu page is loaded according to described operation, the page comprises and specifically comprising the setting options of each pair of business object interception: Ad blocking option i.e. the first setting options, no longer tackle this advertiser web site option and the second setting options, hidden address hurdle option and the 3rd setting options, in addition, feedback opinion option can also be comprised.
What Ad blocking inherited existing browser advertisement filter arranges rule, as rules such as Top Site advertisement filter, animation class website programming.As long as any one rule is opened, so namely business object interception opens.Meanwhile, being provided with IE in net shield and strengthening menu Ad blocking switch, whether in a browser advertisement being tackled for arranging, the IE in this net shield strengthen Ad blocking option in menu Ad blocking switch and browser arrange in Ad blocking switch synchronous.
After the Ad blocking switch open of business object interception BHO plug-in unit, when user opens " no longer tackling this advertiser web site " option, can current site be added in white list after click, namely Ad blocking not carried out to this website.Meanwhile, refreshed web page, word becomes " again tackling this advertiser web site ".And when clicking " again tackling this advertiser web site ", then website will be removed from white list, then refreshed web page, word will become " no longer tackling this advertiser web site ".
Click the setting options under Ad blocking, adjust corresponding advertisement that interface is set, as shown in Figure 8.Now, interface becomes the interception of three grades, picture and arranges, and only retains the setting of prompting bar.Further, open advertisement and arrange, acquiescence opens " advertisement of interceptor window ".It should be noted that, only point out that the IE version of new advertisement filter just can show newly-installed interface, the IE version do not supported then shows old edition interface.
Step S606: when the request of load page being detected, the browser of IE kernel sends to business object interception BHO plug-in unit the request webpage loaded being carried out to business object interception.
URL and the CSS information that the webpage of loading is corresponding is carried in request.
The request webpage loaded being carried out to business object interception of the browser transmission of step S608: business object interception BHO plug-in unit response IE kernel, mates with the interception rule of the business object in ADB rule base browser feedback URL and the CSS information corresponding according to webpage of IE kernel.
Step S610: business object interception BHO plug-in unit carries out the result judged to browser feedback URL and the CSS information corresponding according to webpage of IE kernel.
Business object interception BHO plug-in unit comprises ADB rule base and business object interception engine, and wherein, ADB rule base is used for the interception rule of storage service object.URL and the CSS information that the browser of IE kernel sends by business object interception engine is mated with the interception rule in ADB rule base, and the browser then to IE kernel returns judged result.
It should be noted that, ADB rule base also can not be arranged in BHO plug-in unit, is arranged in other local position or cloud server.
Business object interception BHO plug-in unit is when URL and the CSS information corresponding to webpage judges, the business object URL needing interception is that is to say if the URL that webpage is corresponding is the URL in blacklist, so, business object interception BHO plug-in unit feeds back to the browser of IE kernel by this judged result, the browser of IE kernel then tackles this URL according to feedback result, does not send the request loading this URL.If the CSS information that webpage is corresponding is the CSS needing the business object of interception corresponding, then business object interception BHO plug-in unit feeds back to the browser of IE kernel by this judged result, browser does not show the business object of needs interception according to the result of feedback, only shows other content in webpage corresponding to this URL.Like this, when the webpage that URL is corresponding is advertisement webpage, then this advertisement webpage can not be loaded in a browser; And when the webpage that URL is corresponding is the normal webpage including advertisement, then corresponding advertisement in a shielding web page, and the loading not affecting other content in webpage, thus achieve the browser of IE kernel effective interception of business object.
The browser of step S612:IE kernel tackles the result of BHO plug-in unit feedback, Web page loading according to business object.
In the present embodiment, utilize the advantage that the installation popularity rate of fail-safe software is high, carry out arranging to load the business object interception BHO plug-in unit that is directed to the browser of IE kernel in fail-safe software, also load this BHO plug-in unit when IE browser starts, and realize the interception of business object by this BHO plug-in unit.
Embodiment six
With reference to Fig. 9, show the structured flowchart of a kind of browser client of the embodiment of the present invention six.
The browser client of the present embodiment comprises: info web acquisition module 902, setting plug-in unit for the browser by IE kernel obtains URL and/or CSS information corresponding to new web page that described browser loads, wherein, plug-in unit is injected into IE kernel by browser auxiliary object browser by the application program independent of browser is set; Judge module 904, for judging whether URL tackles in list in business object by setting plug-in unit, and/or, judge whether CSS information tackles in list in business object by setting plug-in unit; Blocking module 906, if for URL in business object interception list, and/or CSS information in business object interception list, is then tackled URL and/or CSS information by setting plug-in unit; Webpage load-on module 908, for loading new web page in a browser according to interception result.
By the browser client that the present embodiment provides, application program can be made to inject setting plug-in unit to browser, when browser is at Web page loading, setting plug-in unit is compared by URL and/or CSS corresponding for the webpage of loading and business object are tackled list, if URL is in business object interception list, and/or CSS information is in business object interception list, then by tackling URL and/or CSS information, realize the interception to business object with this.There is provided browser client when carrying out business object interception by the present embodiment, on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, by setting plug-in unit to perform when the browser client that the present embodiment provides carries out business object interception, the scheme of carrying out business object interception relative to existing dependence browser alleviates the working load of browser.
Embodiment seven
With reference to Figure 10, show the structured flowchart of a kind of browser client of the embodiment of the present invention seven.
The present embodiment has carried out further optimization to the browser client in embodiment six, browser client after optimization comprises: info web acquisition module 1002, the uniform resource position mark URL corresponding for the new web page of the setting plug-in unit acquisition browser loading of the browser by IE kernel and/or Cascading Style Sheet CSS information, wherein, plug-in unit is injected into IE kernel by BHO browser by the application program independent of browser is set; Judge module 1004, for judging whether URL tackles in list in business object by setting plug-in unit, and/or, judge whether CSS information tackles in list in business object by setting plug-in unit; Blocking module 1006, if for URL in business object interception list, and/or CSS information in business object interception list, is then tackled URL and/or CSS information by setting plug-in unit; Webpage load-on module 1008, for loading new web page in a browser according to interception result.
Preferably, browser client in the present embodiment also comprises: intercept information acquisition module 1010, for judging whether URL tackles in list in business object at judge module 1004 by setting plug-in unit, and/or, before judging that described CSS information is whether in described business object interception list by setting plug-in unit: invokes application is from cloud server and/or locally obtain business object interception list and business object interception rule, and receive the business object interception list and business object interception rule that application program obtains; Or, directly tackle list and business object interception rule from cloud server and/or the local business object that obtains by setting plug-in unit.
Preferably, blocking module 1006 comprises: the first blocking module 10062, for when URL is in business object interception list, then tackles webpage corresponding to rule interception URL by setting plug-in unit according to the business object of setting; And/or, second blocking module 10064, for when CSS information is in business object interception list, then by the business object interception rule of setting plug-in unit according to correspondence, CSS information is modified, the information deletion of business object will be used to indicate in CSS information, and amended CSS information is back to the browser of IE kernel; When CSS information is in business object interception list, when webpage load-on module 1008 loads described new web page in a browser according to interception result, receive the amended CSS information that setting plug-in unit returns, in the browser of IE kernel, load new web page according to amended CSS information.
Preferably, the browser client in the present embodiment also comprises: icon load-on module 10012, tackles the icon arranged for loading to be used to indicate in the address field of the browser of IE kernel to business object.
Preferably, icon load-on module 10012 comprises: address field handle acquiring module 100122, for obtaining the address field handle of the browser of IE kernel; Load-on module 100124, is used to indicate and tackles to business object the icon arranged for loading at the address field of the browser of IE kernel according to address field handle.
Preferably, browser client in the present embodiment also comprises: load setting options module 10014, after loading in the address field of the browser of IE kernel at icon load-on module 10012 and being used to indicate the icon arranged is tackled to business object, receive the operation to icon, according to operation loaded with traffic object interception setting options, wherein, setting options comprise first setting options of the new web page loaded being carried out to business object interception, with, cancel second setting options of the new web page loaded being carried out to business object interception; When the first setting options are set up, then URL and/or CSS information corresponding for the new web page of loading is added in business object interception list; When the second setting options are set up, then URL and/or CSS information corresponding for the new web page of loading is deleted from business object interception list.
Preferably, business object interception setting options also comprise and tackle to business object the 3rd setting options that the icon that arranges hides to being used to indicate; When the 3rd setting options are set up, then hide to be used to indicate and the icon arranged is tackled to business object.
Preferably, browser client in the present embodiment also comprises: setting plug-in unit receiver module 10016, for to be obtained URL and/or CSS information corresponding to the new web page that loads by the setting plug-in unit of browser at info web acquisition module 1002 before, receive the setting plug-in unit that the application program independent of browser is injected to browser by browser auxiliary object.
Preferably, plug-in unit receiver module 10016 is set when receiving the setting plug-in unit that the application program independent of browser injected to browser by browser auxiliary object: the system information of the browser of IE kernel is sent to application program; Receive the setting plug-in unit of the browser information that is adapted to that application program is injected to the browser of IE kernel by BHO; Wherein, system information comprises: the operating system version of the browser place terminal of IE kernel and/or, the version information of the browser of IE kernel.
Preferably, the corresponding identification information of each setting plug-in unit, browser client in the present embodiment also comprises: the first request receiving module 10018, before the system information of the browser of IE kernel being sent to application program at setting plug-in unit receiver module 10016, receive the request that application program detects the attribute information of host process, wherein, request is used for whether having identification information in the attribute information of application program detection browser; Sent to by the attribute information of browser application program to carry out the detection of identification information; Second request receiving module 10020, if for testing result for not having identification information, then receives the request of the system information of the acquisition browser that application program sends.
Preferably, the trusted plug-in unit that plug-in unit has been registration is set.
The browser client of the present embodiment is for realizing the method for carrying out interception service object in previous embodiment one, embodiment two and embodiment three accordingly in browser client, and there is the beneficial effect of corresponding embodiment of the method, do not repeat them here.
Embodiment eight
With reference to Figure 11, show the structured flowchart of a kind of client of the embodiment of the present invention eight.
Client in the present embodiment comprises: plug-in registration module 1102, for setting plug-in unit to system registry; Plug-in unit injection module 1104, for injecting the browser of IE kernel by the setting plug-in unit after registration by browser auxiliary object; Wherein, URL and/or CSS information corresponding to new web page that plug-in unit loads for the browser obtaining IE kernel is set; Judge whether URL tackles in list in business object, and/or, judge whether CSS information tackles in list in business object; If URL is in business object interception list, and/or CSS information in business object interception list, is then tackled URL and/or CSS information; Interception result is sent to browser and loads new web page for browser according to interception result.
Plug-in unit is set to system registry by the client provided in the present embodiment, and plug-in unit injection browser will be set by BHO, when browser loads new web page, obtain business object by application and tackle list, the business object got interception list is sent to the setting plug-in unit injecting browser, carries out business object interception by setting plug-in unit.The interception of business object is carried out in the application provided by the present embodiment, and on the one hand, the quantity of information of the business object interception list that setting plug-in unit can obtain is very large, and scope of therefore tackling is wider; And, information in the business object interception list that application can also store local and/or server end carries out dynamic conditioning, the interception to non-traffic object webpage can be cancelled in time, timely increase is to the newly-increased intercept information comprising the webpage of business object, and business object interception list has more real-time; On the other hand, not only considering the comparison to webpage URL, also comparing to the CSS information of webpage when tackling, the information of interception is more concrete, therefore, it is possible to effectively tackle business object when browser Web page loading.Meanwhile, the method for the client executing interception service object interception that the present embodiment provides, is performed by setting plug-in unit, can alleviate the working load of browser.
Embodiment nine
With reference to Figure 12, show the structured flowchart of a kind of client of the embodiment of the present invention nine.
The present embodiment has carried out further optimization to the application in embodiment eight, and the application after optimization specifically comprises: plug-in registration module 1202, for setting plug-in unit to system registry; Plug-in unit injection module 1204, for injecting the browser of IE kernel by the setting plug-in unit after registration by browser auxiliary object; Wherein, URL and/or CSS information corresponding to new web page that plug-in unit loads for the browser obtaining IE kernel is set; Judge whether URL tackles in list in business object, and/or, judge whether CSS information tackles in list in business object; If URL is in business object interception list, and/or CSS information in business object interception list, is then tackled URL and/or CSS information; Interception result is sent to browser and loads new web page for browser according to interception result.
Preferably, plug-in unit injection module 1204 comprises: detection module 12042, for detecting the attribute information of browser; Judge module 12044, for judge browser attribute information in whether have the identification information being used to indicate and there is setting plug-in unit in browser; Injection module 12046, for when the judged result of judge module is not for existing identification information, injects the browser of IE kernel by the setting plug-in unit after registration by BHO.
Preferably, the client in the present embodiment also comprises: system information acquisition module 1206, before setting plug-in unit in plug-in registration module to system registry 1202, obtains the system information of the browser of IE kernel; Wherein, system information comprises: the operating system version of the browser place terminal of IE kernel and/or, the version information of the browser of IE kernel; Generation module 1208, for generating the setting plug-in unit and identification information that adapt with system information; Wherein, the corresponding identification information of each setting plug-in unit.
Preferably, client in the present embodiment also comprises: intercept information acquisition module 1210, for by BHO the setting plug-in unit after registration to be injected IE kernel in plug-in registration module 1204 browser after, when detecting that browser loads new web page, tackle list and business object interception rule from cloud server and/or the local business object that obtains, the business object of acquisition interception list and business object interception rule are sent to setting plug-in unit.
Preferably, client in the present embodiment also comprises: configuration information receiver module 1212, after the business object of acquisition interception list and business object interception rule being sent to setting plug-in unit at intercept information acquisition module 1210, receive the business object interception configuration information that setting plug-in unit sends, wherein, the information of adding and the new web page loaded being carried out to business object interception is comprised in business object interception configuration information, or, cancel the information of the new web page loaded being carried out to business object interception; Information updating module 1214, for upgrading cloud server and/or the local business object interception list stored according to the business object interception configuration information received.
Preferably, information updating module 1214, when the business object interception configuration information renewal cloud server that foundation receives and/or the local business object stored tackle list: tackle configuration information according to the business object received, upgrade URL and/or the CSS information that the new web page of the loading in the business object interception list of cloud server and/or local storage is corresponding.
Preferably, the trusted plug-in unit that plug-in unit has been registration is set.
The client of the present embodiment for realizing the method for corresponding interception service object in previous embodiment three, embodiment four, and has the beneficial effect of corresponding embodiment of the method, does not repeat them here.
For said apparatus embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of corresponding embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment in the scheme of this interception service object provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure required by system that there is the present invention program is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as the following claims reflect, all features of inventive aspect disclosed single embodiment before being to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the scheme of the interception service object of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The embodiment of the invention discloses a kind of method of A1, interception service object, comprising:
To system registry setting plug-in unit, and by browser auxiliary object, the described setting plug-in unit after registration is injected the browser of IE kernel;
Wherein, uniform resource position mark URL corresponding to new web page that load for the browser obtaining described IE kernel of described setting plug-in unit and/or Cascading Style Sheet CSS information; Judge whether described URL tackles in list in business object, and/or, judge whether described CSS information tackles in list in described business object; If described URL is in described business object interception list, and/or described CSS information in described business object interception list, is then tackled described URL and/or described CSS information; Interception result is sent to described browser and loads described new web page for described browser according to described interception result.
A2, method according to A1, wherein, describedly to be comprised the step that the described setting plug-in unit after registration injects the browser of IE kernel by browser auxiliary object:
Detect the attribute information of described browser;
Judge whether to have in the attribute information of described browser the identification information being used to indicate and there is setting plug-in unit in described browser;
If there is not described identification information in the attribute information of described browser, then by browser auxiliary object, the described setting plug-in unit after registration is injected the browser of IE kernel.
A3, method according to A2, wherein, described before system registry setting plug-in unit step, also comprise:
Obtain the system information of the browser of described IE kernel; Wherein, described system information comprises: the operating system version of the browser place terminal of described IE kernel and/or, the version information of the browser of described IE kernel;
Generate the setting plug-in unit and identification information that adapt with described system information; Wherein, the corresponding identification information of each setting plug-in unit.
A4, method according to any one of A1-A3, wherein, described by browser auxiliary object the described setting plug-in unit after registration injected the browser step of IE kernel after, also comprise:
When detecting that described browser loads new web page, tackle list and business object interception rule from cloud server and/or the local business object that obtains, the described business object interception list obtained and business object are tackled rule and is sent to described setting plug-in unit.
A5, method according to A4, wherein, described the described business object interception list obtained and business object interception rule be sent to described setting plug-in unit step after, also comprise:
Receive the business object interception configuration information that described setting plug-in unit sends, wherein, the information of adding and the new web page of described loading being carried out to business object interception is comprised in described business object interception configuration information, or, cancel the information of the new web page of described loading being carried out to business object interception;
Described cloud server and/or the local described business object interception list stored is upgraded according to the described business object interception configuration information received.
A6, method according to A5, wherein, the step upgrading described cloud server and/or the local described business object interception list stored according to the described business object interception configuration information received comprises:
According to the described business object interception configuration information received, upgrade URL and/or the CSS information that the new web page of the described loading in described cloud server and/or the local described business object interception list stored is corresponding.
A7, method according to A1, wherein, described setting plug-in unit has been the trusted plug-in unit of registration.
The embodiment of the invention also discloses B8, a kind of client, comprising:
Plug-in registration module, for setting plug-in unit to system registry;
Plug-in unit injection module, for injecting the browser of IE kernel by the described setting plug-in unit after registration by browser auxiliary object;
Wherein, uniform resource position mark URL corresponding to new web page that load for the browser obtaining described IE kernel of described setting plug-in unit and/or Cascading Style Sheet CSS information; Judge whether described URL tackles in list in business object, and/or, judge whether described CSS information tackles in list in described business object; If described URL is in described business object interception list, and/or described CSS information in described business object interception list, is then tackled described URL and/or described CSS information; Interception result is sent to described browser and loads described new web page for described browser according to described interception result.
B9, client according to B8, wherein, described plug-in unit injection module comprises:
Detection module, for detecting the attribute information of described browser;
Judge module, for judge described browser attribute information in whether have the identification information being used to indicate and there is setting plug-in unit in described browser;
Injection module, for when the judged result of described judge module is not for existing described identification information, injects the browser of IE kernel by the described setting plug-in unit after registration by browser auxiliary object.
B10, client according to B8, wherein, described client also comprises:
System information acquisition module, before setting plug-in unit in described plug-in registration module to system registry, obtains the system information of the browser of described IE kernel; Wherein, described system information comprises: the operating system version of the browser place terminal of described IE kernel and/or, the version information of the browser of described IE kernel;
Generation module, for generating the setting plug-in unit and identification information that adapt with described system information; Wherein, the corresponding identification information of each setting plug-in unit.
B11, according to the arbitrary described client of B8-B10, wherein, described client also comprises:
Intercept information acquisition module, for passing through browser auxiliary object in described plug-in registration module by after the browser of the described setting plug-in unit injection IE kernel after registration, when detecting that described browser loads new web page, tackle list and business object interception rule from cloud server and/or the local business object that obtains, the described business object interception list obtained and business object are tackled rule and is sent to described setting plug-in unit.
B12, client according to B11, wherein, described client also comprises:
Configuration information receiver module, after the described business object interception list obtained and business object interception rule being sent to described setting plug-in unit at described intercept information acquisition module, receive the business object interception configuration information that described setting plug-in unit sends, wherein, the information of adding and the new web page of described loading being carried out to business object interception is comprised in described business object interception configuration information, or, cancel the information of the new web page of described loading being carried out to business object interception;
Information updating module, for upgrading described cloud server and/or the local described business object interception list stored according to the described business object interception configuration information received.
B13, client according to B12, wherein, described information updating module, according to the described business object interception configuration information received upgrade described cloud server and/or local store described business object interception list time:
According to the described business object interception configuration information received, upgrade URL and/or the CSS information that the new web page of the described loading in described cloud server and/or the local described business object interception list stored is corresponding.
B14, client according to B8, wherein, described setting plug-in unit has been the trusted plug-in unit of registration.

Claims (10)

1. a method for interception service object, is characterized in that, comprising:
To system registry setting plug-in unit, and by browser auxiliary object, the described setting plug-in unit after registration is injected the browser of IE kernel;
Wherein, uniform resource position mark URL corresponding to new web page that load for the browser obtaining described IE kernel of described setting plug-in unit and/or Cascading Style Sheet CSS information; Judge whether described URL tackles in list in business object, and/or, judge whether described CSS information tackles in list in described business object; If described URL is in described business object interception list, and/or described CSS information in described business object interception list, is then tackled described URL and/or described CSS information; Interception result is sent to described browser and loads described new web page for described browser according to described interception result.
2. method according to claim 1, is characterized in that, the described step by browser auxiliary object, the described setting plug-in unit after registration being injected the browser of IE kernel is comprised:
Detect the attribute information of described browser;
Judge whether to have in the attribute information of described browser the identification information being used to indicate and there is setting plug-in unit in described browser;
If there is not described identification information in the attribute information of described browser, then by browser auxiliary object, the described setting plug-in unit after registration is injected the browser of IE kernel.
3. method according to claim 2, is characterized in that, described before system registry setting plug-in unit step, also comprises:
Obtain the system information of the browser of described IE kernel; Wherein, described system information comprises: the operating system version of the browser place terminal of described IE kernel and/or, the version information of the browser of described IE kernel;
Generate the setting plug-in unit and identification information that adapt with described system information; Wherein, the corresponding identification information of each setting plug-in unit.
4. the method according to any one of claim 1-3, is characterized in that, described by browser auxiliary object the described setting plug-in unit after registration injected the browser step of IE kernel after, also comprise:
When detecting that described browser loads new web page, tackle list and business object interception rule from cloud server and/or the local business object that obtains, the described business object interception list obtained and business object are tackled rule and is sent to described setting plug-in unit.
5. method according to claim 4, is characterized in that, after the described described business object by acquisition tackles list and business object interception rule is sent to described setting plug-in unit step, also comprises:
Receive the business object interception configuration information that described setting plug-in unit sends, wherein, the information of adding and the new web page of described loading being carried out to business object interception is comprised in described business object interception configuration information, or, cancel the information of the new web page of described loading being carried out to business object interception;
Described cloud server and/or the local described business object interception list stored is upgraded according to the described business object interception configuration information received.
6. a client, is characterized in that, comprising:
Plug-in registration module, for setting plug-in unit to system registry;
Plug-in unit injection module, for injecting the browser of IE kernel by the described setting plug-in unit after registration by browser auxiliary object;
Wherein, uniform resource position mark URL corresponding to new web page that load for the browser obtaining described IE kernel of described setting plug-in unit and/or Cascading Style Sheet CSS information; Judge whether described URL tackles in list in business object, and/or, judge whether described CSS information tackles in list in described business object; If described URL is in described business object interception list, and/or described CSS information in described business object interception list, is then tackled described URL and/or described CSS information; Interception result is sent to described browser and loads described new web page for described browser according to described interception result.
7. client according to claim 6, is characterized in that, described plug-in unit injection module comprises:
Detection module, for detecting the attribute information of described browser;
Judge module, for judge described browser attribute information in whether have the identification information being used to indicate and there is setting plug-in unit in described browser;
Injection module, for when the judged result of described judge module is not for existing described identification information, injects the browser of IE kernel by the described setting plug-in unit after registration by browser auxiliary object.
8. client according to claim 6, is characterized in that, described client also comprises:
System information acquisition module, before setting plug-in unit in described plug-in registration module to system registry, obtains the system information of the browser of described IE kernel; Wherein, described system information comprises: the operating system version of the browser place terminal of described IE kernel and/or, the version information of the browser of described IE kernel;
Generation module, for generating the setting plug-in unit and identification information that adapt with described system information; Wherein, the corresponding identification information of each setting plug-in unit.
9. the client according to any one of claim 6-8, is characterized in that, described client also comprises:
Intercept information acquisition module, for passing through browser auxiliary object in described plug-in registration module by after the browser of the described setting plug-in unit injection IE kernel after registration, when detecting that described browser loads new web page, tackle list and business object interception rule from cloud server and/or the local business object that obtains, the described business object interception list obtained and business object are tackled rule and is sent to described setting plug-in unit.
10. client according to claim 9, is characterized in that, described client also comprises:
Configuration information receiver module, after the described business object interception list obtained and business object interception rule being sent to described setting plug-in unit at described intercept information acquisition module, receive the business object interception configuration information that described setting plug-in unit sends, wherein, the information of adding and the new web page of described loading being carried out to business object interception is comprised in described business object interception configuration information, or, cancel the information of the new web page of described loading being carried out to business object interception;
Information updating module, for upgrading described cloud server and/or the local described business object interception list stored according to the described business object interception configuration information received.
CN201410602675.3A 2014-10-31 2014-10-31 Method for intercepting business object and client Pending CN104391880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410602675.3A CN104391880A (en) 2014-10-31 2014-10-31 Method for intercepting business object and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410602675.3A CN104391880A (en) 2014-10-31 2014-10-31 Method for intercepting business object and client

Publications (1)

Publication Number Publication Date
CN104391880A true CN104391880A (en) 2015-03-04

Family

ID=52609784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410602675.3A Pending CN104391880A (en) 2014-10-31 2014-10-31 Method for intercepting business object and client

Country Status (1)

Country Link
CN (1) CN104391880A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592086A (en) * 2015-12-22 2016-05-18 Tcl集团股份有限公司 Method and apparatus of managing firewall specific to Android platform
CN106790589A (en) * 2016-12-28 2017-05-31 北京奇虎科技有限公司 Advertisement filter method and device in mobile terminal client terminal
CN109729137A (en) * 2018-05-15 2019-05-07 平安普惠企业管理有限公司 Page data display methods, display terminal and storage medium
CN110286956A (en) * 2019-05-22 2019-09-27 百度在线网络技术(北京)有限公司 Operation method, device and the electronic equipment of plug-in unit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080281564A1 (en) * 2004-07-08 2008-11-13 International Business Machines Corporation System, method and program product for forecasting the demand on computer resources
CN102663050A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for processing electronic book data
CN102739679A (en) * 2012-06-29 2012-10-17 东南大学 URL(Uniform Resource Locator) classification-based phishing website detection method
CN102999636A (en) * 2012-12-19 2013-03-27 北京奇虎科技有限公司 Method and browser for carrying out interception treatment on popup window in webpage
CN104035984A (en) * 2014-05-29 2014-09-10 北京奇虎科技有限公司 Method for blocking popup windows in browser and device for blocking popup windows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080281564A1 (en) * 2004-07-08 2008-11-13 International Business Machines Corporation System, method and program product for forecasting the demand on computer resources
CN102663050A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for processing electronic book data
CN102739679A (en) * 2012-06-29 2012-10-17 东南大学 URL(Uniform Resource Locator) classification-based phishing website detection method
CN102999636A (en) * 2012-12-19 2013-03-27 北京奇虎科技有限公司 Method and browser for carrying out interception treatment on popup window in webpage
CN104035984A (en) * 2014-05-29 2014-09-10 北京奇虎科技有限公司 Method for blocking popup windows in browser and device for blocking popup windows

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592086A (en) * 2015-12-22 2016-05-18 Tcl集团股份有限公司 Method and apparatus of managing firewall specific to Android platform
CN105592086B (en) * 2015-12-22 2019-09-17 Tcl集团股份有限公司 A kind of method and device for Android platform managing firewall
CN106790589A (en) * 2016-12-28 2017-05-31 北京奇虎科技有限公司 Advertisement filter method and device in mobile terminal client terminal
CN109729137A (en) * 2018-05-15 2019-05-07 平安普惠企业管理有限公司 Page data display methods, display terminal and storage medium
CN110286956A (en) * 2019-05-22 2019-09-27 百度在线网络技术(北京)有限公司 Operation method, device and the electronic equipment of plug-in unit
CN110286956B (en) * 2019-05-22 2022-07-05 百度在线网络技术(北京)有限公司 Plug-in operation method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104346457A (en) Method for intercepting business object and browser client
CN106406961B (en) Method and device for loading and providing application program based on browser
CN104484585A (en) Application program installation package processing method and device, and mobile apparatus
CN104375861A (en) Installation-free operation method and device for application programs based on Android platform and terminal
CN104572114A (en) Binding device, application updating device and method and application
CN105631355A (en) Data processing method and device
CN106294372A (en) Application program page quick access method and apply its mobile terminal
CN104731625A (en) Method, device and mobile terminal for loading plugin
CN106708557A (en) Update processing method and device capable of aiming at terminal application
CN104573515A (en) Virus processing method, device and system
CN111796799B (en) Sub-application development method and device, computer equipment and storage medium
KR20160120733A (en) Data proxy service
CN104517054A (en) Method, device, client and server for detecting malicious APK
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN104462583A (en) Browser device for advertisement blocking processing and mobile terminal
Adetunji et al. Dawning of progressive web applications (pwa): Edging out the pitfalls of traditional mobile development
US20230106266A1 (en) Indexing Access Limited Native Applications
CN104598806A (en) Method and device for registering detecting
CN106569856A (en) Method and device of loading application view resource file
CN104391880A (en) Method for intercepting business object and client
CN102867147A (en) File scanning method and device
CN102938766A (en) Vicious website prompt method and device
CN106250761B (en) Equipment, device and method for identifying web automation tool
CN105550596A (en) Access processing method and apparatus
CN106487793A (en) application installation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150304

RJ01 Rejection of invention patent application after publication