Summary of the invention
The purpose of this invention is to provide a kind of internet key analytic method and system that is applicable to various browsers.
In order to achieve the above object, the analytic method of a kind of internet key provided by the invention comprises: set up system-level CBT Hook (Computer Base Training Hook), enter each Windows operation process; When the user clicked an input frame (being the Edit edit control of Windows) in certain program and it is focused on, described system-level CBT Hook intercepted and captured this input frame; Judge whether this input frame is browser's address bar; If this input frame is not a browser's address bar, then control to be returned to original program, original program continues operation, and continues to monitor input frame; If this input frame is a browser's address bar, then sets up thread-level Keyboard Hook, and, monitor the input of keyboard carriage return this input frame (i.e. this Edit control) SubClassing for this program process; The user intercepts and captures described bit string by Keyboard Hook in browser address bar input information string and carriage return; Judge whether described bit string is the internet key form; If described bit string is not the internet key form, but normal URL (Uni form Resource Locator, URL(uniform resource locator)) then returns control to browser and continues operation; If described bit string is the internet key form, then described bit string is sent to the internet key resolution server of rear end; Described internet key resolution server is resolved described bit string, obtains the URL result corresponding with described bit string, and this URL result is returned; URL result and control are given back user browser.
The present invention also provides a kind of resolution system of internet key, described system comprises: the input frame deriving means, be used to set up system-level CBT Hook (Computer Base TrainingHook), enter each Windows operation process, when the user clicked an input frame (being the Edit control of Windows) in certain program and it is focused on, described system-level CBT Hook intercepted and captured this input frame; The browser address bar library is used to store the characteristic information of various browser address bar; The browser address bar judgment means, whether be used for input frame characteristic information and described browser address bar library are complementary, be browser's address bar to judge this input frame, if this input frame is not a browser's address bar, then control is returned to original program, original program continues operation; Address field input information string deriving means, if being used for this input frame is browser's address bar, then set up thread-level Keyboard Hook for this program process, and this input frame of SubClassing (i.e. this Edit control), monitor the input of keyboard carriage return, the user intercepts and captures described bit string by Keyboard Hook in browser address bar input information string and carriage return; Input information string judgment means judges whether described bit string is the internet key form; Input information string manipulation device, if described bit string is not the internet key form, but normal URL (Uniform Resource Locator, URL(uniform resource locator)), then control is returned to browser and continued operation, if described bit string is the internet key form, then described bit string is sent to the internet key resolution server of rear end, and URL and the control returned are given back browser; Key word analysis service apparatus is used to resolve described internet key and obtains URL, and this URL is returned input information string manipulation device.
The present invention also provides a kind of method of utilizing key word to carry out internet access, and described method comprises: provide CWA plug-in unit on the particular webpage on the internet; The user selectes described CWA plug-in unit by the described website of computer access, and agrees to install; This subscriber computer is downloaded and be installed to described CWA plug-in unit automatically; Described CWA plug-in unit starts; Described CWA plug-in unit is set up system-level CBT Hook (Computer Base Training Hook), enters each Windows operation process; When the user clicks an input frame (being the Edit control of Windows) in certain program and it is focused on, intercepted and captured by described CWA plug-in unit; Described CWA plug-in unit judges whether this input frame is browser's address bar; If this input frame is not a browser's address bar, then described CWA plug-in unit returns control to original program, and original program continues operation, and continues to monitor input frame; If this input frame is a browser's address bar, then described CWA plug-in unit is set up thread-level Keyboard Hook for this program process, and this input frame of SubClassing (i.e. this Edit control), monitors the input of keyboard carriage return; The user is in browser address bar input information string and carriage return, and described CWA plug-in unit is intercepted and captured described bit string by Keyboard Hook; Described CWA plug-in unit judges whether described bit string is the internet key form; If described bit string is not the internet key form, but normal URL (Uniform Resource Locator, URL(uniform resource locator)), then described CWA plug-in unit is returned control to browser and is continued operation; If described bit string is the internet key form, then described CWA plug-in unit sends to described bit string the internet key resolution server of rear end; Described internet key resolution server is resolved described bit string, obtains the URL result corresponding with described bit string, and this URL result is returned described CWA plug-in unit; Described CWA plug-in unit is given back user browser with URL result and control; And the URL of user browser access internet key word correspondence.
Of the present inventionly judge that whether this input frame is that the step of browser's address bar comprises: set up the browser address bar library, this browser address bar library is used to preserve the characteristic information of various browser address bar; Collect the characteristic information of described input frame (being the Edit control of Windows); The characteristic information and the described browser address bar library of described input frame (being the Edit control of Windows) are mated; If described characteristic information and described browser address bar library do not match, then input frame (being the Edit control of Windows) is not a browser address bar; And if described characteristic information and described browser address bar library coupling, then input frame (being the Edit control of Windows) is a browser address bar.
In addition, the CWA plug-in unit can also be set up, safeguard and regular update browser address bar library
Internet key analytic method of the present invention and system are applicable to various browsers, by auto-update mechanism, can upgrade the browser address bar library according to the development of browser technology in addition.
The method according to this invention or system, the user is addressable required webpage by the real name (being InternetKeyword) of website, and needn't remember complicated URL address.
Embodiment
Figure 10 has showed a kind of existing internet key analytic method.Wherein, IE browser 1 judges that the network address that the user imports is a standard URL form in address field, or internet key, if the latter, IE browser 1 can pass to the real name Search Control server in station 2:auto.search.msn.com of Microsoft with this internet key, Microsoft's real name Search Control server in station 2 can redirect to this request the internet key server 3 of Realnames company and resolve, and the internet key server 3 of last Realnames company returns corresponding address (URL) to user IE browser 1.
The present invention is in conjunction with the advantage of prior art, and improves.In following examples, the analytic method of internet key of the present invention is realized by a genuine cyber identification plug-in unit (CWA plug-in unit hereinafter referred to as).
Fig. 1 a, 1b and 1c have showed the process that the CWA plug-in unit is installed.The page that user capture is specific, after the user agreed to install, the CWA plug-in unit will be downloaded and install to the IE browser automatically.Be exemplified below: as shown in Figure 1a, the user at first uses IE browser access 3721 website homepages (http://www.3721.com); Browser can eject a safety instruction frame, whether the prompting user installs the CWA plug-in unit, behind user's agreement and the click "Yes" button, the IE browser promptly can remove to download automatically the CWA plug-in unit, and at this moment, the IE browser can be installed in the CWA plug-in unit in the subscriber computer, and whether the prompting user enables genuine cyber identification function (being Internet Keyword analytical capabilities), shown in Fig. 1 c, the user can click " unlatching genuine cyber identification " button in the page, can reinstate the CWA plug-in unit:
Fig. 2 is the embodiment according to internet key analytic method of the present invention, has showed the input of CWA plug-in unit intercepting and capturing browser address bar among the figure, realizes the flow process that internet key is resolved.In this embodiment, the analytic method of internet key of the present invention is realized by a genuine cyber identification plug-in unit (CWA plug-in unit hereinafter referred to as).The task of CWA plug-in unit is user's input of intercepting and capturing browser address bar, communicates by letter with the internet key resolution server of rear end, finishes the visit of internet key.
At step S10, the CWA plug-in unit starts; At step S12, described CWA plug-in unit is set up system-level CBT Hook (Computer Base Training Hook), enters each Windows operation process; At step S14, when the user clicks an input frame (being the Edit control of Windows) in certain program and it is focused on, intercepted and captured by described CWA plug-in unit; At step S16, described CWA plug-in unit judges whether this input frame is browser's address bar; If this input frame is not a browser's address bar, then at step S18, described CWA plug-in unit returns control to original program, and original program continues operation, and continues to monitor input frame; If this input frame is a browser's address bar, then at step S20, described CWA plug-in unit is set up thread-level Keyboard Hook for this program process, and this input frame of SubClassing (i.e. this Edit control), monitors the input of keyboard carriage return; At step S22, the user is in browser address bar input information string and carriage return, and described CWA plug-in unit is intercepted and captured described bit string by Keyboard Hook; At step S24, described CWA plug-in unit judges whether described bit string is the internet key form; If described bit string is not the internet key form, but normal URL (Uniform Resource Locator, URL(uniform resource locator)), then at step S26, described CWA plug-in unit is returned control to browser and is continued operation; If described bit string is the internet key form, then at step S28, described CWA plug-in unit sends to described bit string the internet key resolution server of rear end by certain protocol, described internet key resolution server is resolved described bit string, obtain the URL result corresponding, and this URL result is returned described CWA plug-in unit with described bit string; At step S30, described CWA plug-in unit is given back user browser with URL result and control; And the URL of user browser access internet key word correspondence.
In said method, the CWA plug-in unit can be discerned the feature mode of browser address bar by a pattern match storehouse, thereby supports the intercepting and capturing to all browser address bar.The CWA plug-in unit has auto-update mechanism, and browser address bar pattern match storehouse can regularly be upgraded from server automatically, therefore makes browser plug-in can support follow-up browser version or new browser software automatically.What the CWA plug-in unit must determine the needs intercepting and capturing is the interior input of browser address bar, and any influence can not be arranged the input frame of other softwares.Whether this actual CWA of being exactly plug-in unit must be able to be discerned an input frame is browser's address bar.
The CWA plug-in unit can judge whether an input frame (Edit control) is browser address bar.To the Edit control in the Windows program, the characteristic information of various existing browser address bar (Edit control) finds at present in advance, and they are got up as some pattern storage.When the CWA control has been intercepted and captured the focusing incident of certain Edit control, obtain the characteristic information of this Edit control, its browser address bar pattern with storage is mated, if with certain pattern match, illustrate that then this Edit control is exactly corresponding browser's address bar.
A lot of interface elements in the Windows program, for example button (Button), input frame (Edit), combo box (ComboBox) etc. all are window (Window), belong to different window class (Window Class) respectively, and be a kind of tree-shaped hierarchical structure between each different windows in program with set membership.For example the top layer main window of a Windows program can comprise a painting canvas subwindow (Canvas), and this painting canvas subwindow can comprise an input frame subwindow, or the like.For any one Edit window, can obtain its affiliated window class name by the api function GetClassName () of Windows, can obtain its parent window in addition by Windows api function GetParent ().In layer upwards review like this, we just can obtain the window class name of each window of the ancestor windows from this Edit window to its top layer, and these window class names are combined, and just can be used as the characteristic information of this Edit window.In most cases, the input frame in the different Windows programs, their present window class levels are different.Obtain the characteristic information of Edit window in this way, can satisfy the demands.
For instance, according to the method described above, in Windows 2000 operating systems and have under the situation of active desktop (Active Desktop), the characteristic information of IE5 address field is:
ComboBox\ComboBoxEx32\ReBarWindow32\WorkerW\IEFrame
To present existing every kind of browser,, just can be used as the library that the CWA plug-in unit is judged browser address bar under the different versions, under the different operating system (Windows 95/97/98/2000/NT/Me), obtain its characteristic information according to the method described above.
Fig. 3 judges whether input frame is the process flow diagram of browser address bar.The CWA plug-in unit is at first set up the browser address bar library, and this browser address bar library is used to preserve the characteristic information (not shown) of various browser address bar; At step S32, when certain Edit control of Windows focuses on, intercepted and captured by the CWA plug-in unit, and collect the characteristic information of this Edit control; At step S34, the CWA plug-in unit mates the characteristic information of this input frame (being the Edit control of Windows) and the browser address bar library of preservation; At step S36, whether judging characteristic information mates; At step S38,, judge that then input frame (being the Edit control of Windows) is not a browser address bar if described characteristic information and described browser address bar library do not match; At step S40, if described characteristic information and described browser address bar library coupling judge that then this input frame (being the Edit control of Windows) is a browser address bar.
In addition, resolution server is set up, is safeguarded and regular update web browser address field library 100 that the CWA plug-in unit has the auto-update module.In step 42, the auto-update module of CWA plug-in unit is regularly communicated by letter with resolution server, upgrades local browser address bar pattern match storehouse.
Fig. 4 is for to judge whether an input string is the process flow diagram of internet key.At step S52, judge whether the input string A in the browser address bar is empty string; If empty string then judges that at step S53 input string A is not an internet key; If not empty string,, continue to judge that whether described input string A starts with character ' ', if then described input string A is not an internet key then at step S54; If not, then at step S56, continue to judge whether described input string A comprises character ': ' or '/', if then described input string A is not an internet key; If not, then judge further at step S58 whether described input string A comprises Chinese; If then continue to judge that at step S59 described input string A is an internet key; If not, then continue to judge whether described input string A comprises character '. ' at step S60; If then judge that at step S62 described input string A is not an internet key; If not, then described input string A is an internet key.
Fig. 5 has showed the internet key of display access in the browser drop-down list.The CWA plug-in unit can be kept at the internet key of user capture in the drop-down history list of browser address bar, merge with the address field drop-down list function of browser itself, be convenient to the user and directly choose the internet key visit of importing in the past.When user's click browser address field drop-down list, intercepted and captured by the CWA plug-in unit; The CWA plug-in unit is enumerated nearest used 50 internet keys in the buffer memory, is presented in chronological order in the drop-down history list of browser's address bar, selects for the user.
Fig. 6 has showed the auto-complete function (Auto-Complete) of internet key input.As shown in the figure, when the user imported internet key in browser address bar, the internet key that the CWA plug-in unit can once be visited according to the user replenished user's input automatically and finishes.Auto-complete function when IE, netscape browser itself also have the English URL of input, this function of CWA plug-in unit and the function of browser own merge, the user's use of being more convenient for.It is as follows that the CWA plug-in unit supports that internet key is imported automatic complete process: as user during at the address field input of character string, the CWA plug-in unit is intercepted and captured this character string in real time.Character of the every input of user, whether the CWA plug-in unit all has the internet key that partly mates with input of character string in the respective queries buffer memory, if having, then it is presented in the address field.
The CWA plug-in unit can also provide the load balancing of server end and fault tolerance.The CWA plug-in unit is preserved an internet key resolution server tabulation at subscriber computer, comprises the address of Servers-all.The CWA plug-in unit utilizes the free time timer access to survey all resolution servers on the backstage, according to the response time to resolution server tabulation sort.When the CWA plug-in unit is intercepted and captured the internet key input, will preferentially select to come the fastest resolution server of top response speed, and communicate with.When the resolution server that comes the front for a certain reason, become when unavailable, the CWA plug-in unit will select to come resolution server thereafter successively, and the internet key that needs are resolved sends to selected resolution server.
Fig. 7 has showed the address field input prompt function of CWA plug-in unit.When user's click browser address field, the CWA plug-in unit can show an information bar, and the prompting user is internet usage key word accesses network how.For example, when user's click browser address field, as shown in FIG., can point out user " input ' Sina ', ' sina ' through Sina website " etc.
Fig. 8 has showed the function that in the option of browser the CWA plug-in unit is provided with.When the selected CWA plug-in unit of user and after finishing installation automatically, the CWA plug-in unit is set up the function setting option of CWA plug-in unit in the option of browser.The user can be in the advanced property page or leaf of the option of IE browser, and the function of CWA plug-in unit is provided with.As shown in Figure 8, the user can be provided with and whether enable genuine cyber identification (being the internet key function).Whether the user can also be provided with which function of using genuine cyber identification, need be at address field place display reminding bar as.
Fig. 9 a and Fig. 9 b are the examples of CWA plug-in unit use-pattern.Install after the CWA plug-in unit, user's browser has just had the function of internet key visit.CWA plug-in unit of the present invention can be supported various browser versions such as IE, Netscape, NetCaptor, Opera.The concrete using method of CWA plug-in unit is exemplified below: 1. input Chinese or the English internet key targeted website of promptly can going directly in browser address bar, these Keyword can be the titles of enterprise, website, product, brand etc., also can be the telephone number or the stock code of enterprise.Shown in Fig. 9 a, after the input " Coca-Cola ", can arrive the website of Coca-Cola by internet key analytic method of the present invention or system.2. the Chinese phonetic alphabet of the Chinese Keyword of input or Chinese phonetic alphabet abbreviation in browser address bar, for example " xin lang " or " xl " can find all the most similar websites, shown in Fig. 9 b.The internet key of 3. visiting can be pointed out in the drop-down list of browser address bar, is convenient to the user and directly therefrom selects, and need not import once more, with reference to prior figures 5.4. input during Keyword in browser address bar, the CWA plug-in unit can be according to the automatic completion input string of Keyword of the visit of buffer memory, with reference to prior figures 6.5. when user's click browser address bar, the CWA plug-in unit can show some about using the information of CWA plug-in unit, with reference to prior figures 7 in turn.6. in " senior " page or leaf of " internet option " of IE browser the Tools menu, the user can be directly be provided with every function of CWA, as whether enable CWA, whether at the Keyword of address field place display reminding bar, whether display access in the address field drop-down list, remove Keyword in the address field drop-down list etc., with reference to prior figures 8.
Protection domain of the present invention is illustrated in the appended claims.But every conspicuous modification within aim of the present invention is also due within protection scope of the present invention.