CN105574190A - Webpage access method and device - Google Patents
Webpage access method and device Download PDFInfo
- Publication number
- CN105574190A CN105574190A CN201510983225.8A CN201510983225A CN105574190A CN 105574190 A CN105574190 A CN 105574190A CN 201510983225 A CN201510983225 A CN 201510983225A CN 105574190 A CN105574190 A CN 105574190A
- Authority
- CN
- China
- Prior art keywords
- key
- target registered
- table key
- information
- registry
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses a webpage access method and a webpage access device, and relates to the technical field of computer software, wherein the method comprises the following steps: monitoring a webpage access request; under the condition that a webpage access request is monitored, obtaining an access type aiming at a registry; judging whether the access type is a preset access type or not; if so, acquiring an opened source registry key which is recorded in the registry and aims at the browser; under the condition that the source registry key meets a preset redirection condition, acquiring information of a target registry key corresponding to the source registry key according to a preset redirection rule; and feeding back the information of the target registry key to an operating system so that the operating system calls a browser to access the webpage according to the information of the target registry key. By applying the scheme provided by the embodiment of the application to access the webpage, the target browser is ensured to be the default browser when the webpage is accessed on the basis that the normal use of the terminal of the user is not influenced.
Description
Technical field
The application relates to computer software technical field, particularly a kind of Web access method and device.
Background technology
Along with the fast development of network technology, increasing user selects to obtain information by network.When user obtains information by network, a kind of common mode is, by web page access network, therefore, user need install browser in its terminal.Each businessman is contention user resources, is proposed respective browser one after another, in light of this situation, may be provided with multiple browser in user terminal.
Although multiple browser may be provided with in user terminal; but browser browser by default can only be had in these browsers; and the configuration information of default browser is recorded in registration table usually; therefore; each browser, for increasing liveness, striving for the reasons such as more user resources, can select the mode of the key assignments of the registry key for browser recorded in edit the registry that self is set to default browser usually.In addition; each browser is that the relative information preventing from recording in registration table is modified; ensure himself to be default browser; whether the key assignments that usually can detect by a circulation thread timing registry key for browser recorded in registration table is modified to the information of other browsers; be modified to the information of other browsers if find, then this key assignments be revised as the information of himself.
Under normal circumstances, each browser can ensure himself to be default browser by the way, but when information in multiple browser all repeatedly edit the registry, easily causes operating system to occur Caton phenomenon, affect user and normally use its terminal.
Summary of the invention
The embodiment of the present application discloses a kind of Web access method and device, normally to use on the basis of its terminal not affecting user, ensures default browser when objective browser is accessed web page.
For achieving the above object, the embodiment of the present application discloses a kind of Web access method, and described method comprises:
Monitoring web access requests;
When monitoring web access requests, obtain the access type for registration table;
Judge whether described access type is default access type;
If yes, the Login table key opened for browser recorded in described registration table is obtained;
When described Login table key meets default redirected condition, according to the redirected rule preset, obtain the information of target registered table key corresponding to described Login table key;
Feed back the information of described target registered table key to operating system, carry out web page access with the objective browser making operating system call described target registered table key corresponding according to the information of described target registered table key.
In a kind of specific implementation of the application, described default access type is:
Open registry key type or inquiry registry key type.
In a kind of specific implementation of the application, when described default access type is for opening registry key type, the redirected rule that described basis is preset, obtains the information of target registered table key corresponding to described Login table key, comprising:
According to the redirected rule preset, search the target registered table key whether existing and mate with the described Login table key opened, wherein, described default redirected rule, for specifying the corresponding relation between described Login table key and described target registered table key;
If exist, call the first preset function and open described target registered table key;
According to the described target registered table key opened, obtain the handle of described target registered table key;
The described information feeding back described target registered table key to operating system, comprising:
Obtain the handle of described registration table;
The handle of described target registered table key is defined as the handle value of the handle of described registration table.
In a kind of specific implementation of the application, described first preset function, comprising: ZwOpenKeyEx.
In a kind of specific implementation of the application, when described default access type is inquiry registry key type, the redirected rule that described basis is preset, obtains the information of target registered table key corresponding to described Login table key, comprising:
According to the redirected rule preset, search the target registered table key whether existing and mate with the key assignments name of the described Login table key opened and described Login table key, wherein, described default redirected rule, for specifying the corresponding relation between both key assignments names of described Login table key and this Login table key and described target registered table key;
If exist, obtain rule according to the key assignments preset, obtain the key assignments of described target registered table key;
The described information feeding back described target registered table key to operating system, comprising:
Obtain the mark of the registry information to be checked for representing operating system;
The key assignments of described target registered table key is defined as the value of described mark.
In a kind of specific implementation of the application, the described key assignments according to presetting obtains rule, obtains the key assignments of described target registered table key, comprising:
Call the second preset function, obtain the key assignments of described target registered table key.
In a kind of specific implementation of the application, described second preset function, comprising: ZwQueryValueKey.
In a kind of specific implementation of the application, described default redirected rule, also for specifying the corresponding relation between described target registered table key and its key assignments;
The described key assignments according to presetting obtains rule, obtains the key assignments of described target registered table key, comprising:
According to the key assignments recorded in described default redirected rule, obtain the key assignments of described target registered table key.
In a kind of specific implementation of the application, described Web access method also comprises:
The information of the registry key for browser recorded in described registration table is revised as the information of described target registered table key.
For achieving the above object, the embodiment of the present application discloses a kind of web page access device, and described device comprises:
Request monitoring modular, for monitoring web access requests;
Access type obtains module, for when monitoring web access requests, obtains the access type for registration table;
Access type judge module, for judging whether described access type is default access type;
Registry key obtains module, for when the judged result of described access type judge module is for being, obtains the Login table key opened for browser recorded in described registration table;
Information acquisition module, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, obtains the information of target registered table key corresponding to described Login table key;
Information feedback module, for feeding back the information of described target registered table key to operating system, carries out web page access with the objective browser making operating system call described target registered table key corresponding according to the information of described target registered table key.
In a kind of specific implementation of the application, described default access type is:
Open registry key type or inquiry registry key type.
In a kind of specific implementation of the application, when described default access type is for opening registry key type, described information acquisition module, comprising:
First registry key searches submodule, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, search the target registered table key whether existing and mate with the described Login table key opened, wherein, described default redirected rule, for specifying the corresponding relation between described Login table key and described target registered table key;
Registry key opens submodule, for search submodule in described first registry key lookup result for being, call the first preset function and open described target registered table key;
First handle obtains submodule, for according to the described target registered table key opened, obtains the handle of described target registered table key;
Described information feedback module, comprising:
Second handle obtains submodule, for obtaining the handle of described registration table;
Handle value determination submodule, for being defined as the handle value of the handle of described registration table by the handle of described target registered table key.
In a kind of specific implementation of the application, described first preset function, comprising: ZwOpenKeyEx.
In a kind of specific implementation of the application, when described default access type is inquiry registry key type, described information acquisition module, comprising:
Second registry key searches submodule, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, search the target registered table key whether existing and mate with the key assignments name of the described Login table key opened and described Login table key, wherein, described default redirected rule, for specifying the corresponding relation between both key assignments names of described Login table key and this Login table key and described target registered table key;
Key assignments obtains submodule, for search submodule in described second registry key lookup result for being, obtain rule according to the key assignments preset, obtain the key assignments of described target registered table key;
Described information feedback module, comprising:
Mark obtains submodule, for obtaining the mark of the registry information to be checked for representing operating system;
Value determination submodule, for being defined as the value of described mark by the key assignments of described target registered table key.
In a kind of specific implementation of the application, described key assignments obtains submodule, specifically for calling the second preset function, obtains the key assignments of described target registered table key.
In a kind of specific implementation of the application, described second preset function, comprising: ZwQueryValueKey.
In a kind of specific implementation of the application, described default redirected rule, also for specifying the corresponding relation between described target registered table key and its key assignments;
Described key assignments obtains submodule, specifically for according to the key assignments recorded in described default redirected rule, obtains the key assignments of described target registered table key.
In a kind of specific implementation of the application, described web page access device also comprises:
Information modified module, for being revised as the information of described target registered table key by the information of the registry key for browser recorded in described registration table.
As seen from the above, in the scheme that the embodiment of the present application provides, when monitoring web access requests, obtain the access type for registration table, and the access type of registration table is when being default access type, obtain the Login table key opened for browser recorded in registration table, and when Login table key meets default redirected condition, according to the redirected rule preset, obtain the information of target registered table key corresponding to Login table key, then the information of this target registered table key is fed back to operating system, operating system is made to carry out web page access according to the information invocation target browser of target registered table key.Visible, in the scheme that the embodiment of the present application provides, the registry key for browser do not recorded in edit the registry, but the browser that operating system is called still can be changed when accessed web page, therefore, normally can use on the basis of its terminal not affecting user, ensureing default browser when objective browser is accessed web page.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the first Web access method that Fig. 1 provides for the embodiment of the present application;
The schematic flow sheet of the second Web access method that Fig. 2 provides for the embodiment of the present application;
The schematic flow sheet of the third Web access method that Fig. 3 provides for the embodiment of the present application;
The structural representation of the first web page access device that Fig. 4 provides for the embodiment of the present application;
The structural representation of the second web page access device that Fig. 5 provides for the embodiment of the present application;
The structural representation of the third web page access device that Fig. 6 provides for the embodiment of the present application.
Embodiment
Due in practical application, during the information of the registry key for browser that multiple browser records in edit the registry repeatedly, easily cause operating system to occur Caton phenomenon, affect user and normally use terminal, Given this, the embodiment of the present application provides a kind of Web access method and device.
First be introduced above-mentioned Web access method on the whole below, this Web access method comprises:
Monitoring web access requests;
When monitoring web access requests, obtain the access type for registration table;
Judge whether described access type is default access type;
If yes, the Login table key opened for browser recorded in described registration table is obtained;
When described Login table key meets default redirected condition, according to the redirected rule preset, obtain the information of target registered table key corresponding to described Login table key;
Feed back the information of described target registered table key to operating system, carry out web page access with the objective browser making operating system call described target registered table key corresponding according to the information of described target registered table key.
The executive agent of said method can be understood as a kind of client, and this client can be browser client, such as, cheetah browser, little cheetah browser etc. can also be other clients, such as, have client of Prevention-Security function etc., e.g., Jinshan anti-virus software-defence drives etc.
Concrete, client is stated in the process of scheme in realization, can be realized by the form of call back function, this call back function is the call back function for registration table, this call back function can be registered when loading client, such as, this call back function for registration table is registered time start loads browser information.
Wherein, when registering above-mentioned call back function, can be registered by kernel function CmRegisterCallback.
Operating system is when opening registry key, inquiry registry key, edit the registry key, deleting registry key, and can call the above-mentioned call back function for registration table, this call back function has informing function.
Concrete, above-mentioned call back function can define according to following form:
NTSTATUSRegistryCallback(
PVOIDArgument1,
PVOIDArgument2,
PVOIDArgument3)
Wherein, second parameter Argument2 may be used for the type representing registration table readjustment, namely above-mentionedly opens registry key, inquiry registry key, edit the registry key, deletes the action type such as registry key
In addition, the scheme that the embodiment of the present application provides goes for 32-bit operating system, also goes for 64 bit manipulation systems, and certainly, also go for the operating system of other types, the application does not limit this.This way not distinguishing OS Type, can reduce the maintenance cost of technology code, and link up with kernel function nowhere on functional realiey, makes whole technical scheme more stable.
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
The schematic flow sheet of the first Web access method that Fig. 1 provides for the embodiment of the present application, the method comprises:
S101: monitoring web access requests.
Concrete, after detecting that user clicks the operation of URL (UniformResourceLocator, uniform resource locator), can think and monitor web access requests.
In addition, can also, by the mode of the particular port of monitoring terminal, determine whether to monitor web access requests, concrete, if find that the particular port of terminal have received web access requests data through monitoring, then can think and monitor web access requests.Wherein, this web access requests can be clicked URL by user and operate and cause, and can also be that user accesses a certain webpage and causes, the application limit this.
S102: when monitoring web access requests, obtains the access type for registration table.
Those skilled in the art are understandable that, the access type for registration table can comprise: open registry key type, inquiry registry key type, edit the registry key type and delete registry key type etc.
S103: judge whether above-mentioned access type is default access type, if yes, performs S104.
Concrete, above-mentioned default access type can be: open registry key type or inquiry registry key type.Wherein, opening registration table type can represent with RegNtPreOpenKeyEx, and inquires about registration table type and can represent with RegNtQueryValueKey.
S104: obtain the Login table key opened for browser recorded in registration table.
Those skilled in the art are understandable that, record multiple registry key in registration table, and under normal circumstances, these registry key are respectively for different application.
In this step, obtain in registration table record for after the registry key of browser, after namely obtaining above-mentioned Login table key, default system function can be called and open this Login table key.
The structure of the information of the registry key for browser recorded in registration table can be expressed as follows:
[HKEY_CURRENT_USER Software Classes http shell open command] " acquiescence "=" " and c: users lenovo appdata local 360 360se.exe " "
Wherein, [HKEY_CURRENT_USER Software Classes http shell open command] represent registry key;
" acquiescence " represents registration table key assignments name;
=“ " c: users lenovo appdata local 360 360se.exe " " represent registration table key assignments.
It should be noted that, the above-mentioned structure being only a kind of specifying information for browser recorded in registration table, does not form restriction effect to the application.
S105: when Login table key meets default redirected condition, according to the redirected rule preset, obtains the information of target registered table key corresponding to Login table key.
Here above-mentioned default redirected condition can be understood as: the redirected condition of registry key.Wherein, be redirected can be understood as: a program, when opening registry key a, can allow it turn to and open registry key b, also can be understood as the forwarding of registry key, wherein, registry key a is called Login table key, and registry key b is target registered table key.
Those skilled in the art are understandable that, if when above-mentioned Login table key is the registry key of objective browser, then without the need to carrying out redirect operation to this Login table key again, namely the browser called when operating system calls browser according to this Login table key is objective browser, therefore, in the optional implementation of the one of the application, above-mentioned preset be redirected condition can for Login table key be not the registry key for objective browser time, according to the redirected rule preset, obtain the information of target registered table key corresponding to Login table key.
Concrete, according to the redirected rule preset, when obtaining the information of target registered table key corresponding to Login table key, can according to the information recorded in the redirected rule preset, obtain the information of target registered table key corresponding to above-mentioned Login table key, by calling the mode of preset function, the information of target registered table key corresponding to above-mentioned Login table key can also be obtained.Concrete condition see Fig. 2 and embodiment illustrated in fig. 3, wouldn't be able to describe in detail at this.
S106: to the information of operating system feedback target registry key, carries out web page access with the objective browser making operating system corresponding according to the information invocation target registry key of target registered table key.
In the better implementation of the one of the application, above-mentioned Web access method can also comprise:
The information of the registry key for browser recorded in registration table is revised as the information of target registered table key, so again call browser when carrying out web page access, information due to the registry key for browser recorded in registration table has been modified to the information of target registered table key, so directly browser access webpage can be called according to the information of the registry key for browser recorded in registration table, and without the need to obtaining the information of target registered table key corresponding to Login table key according to the redirected rule preset, the speed of browser access webpage can be called by speeding up operation system.
By describing above and can learning, above-mentioned default access type for opening registry key type, can also can be inquiry registry key type, below for above-mentioned two situations, be described in detail by specific embodiment to above-mentioned Web access method.
In a kind of specific implementation of the application, see Fig. 2, provide the schematic flow sheet of the second Web access method, compared with previous embodiment, in the present embodiment, when above-mentioned default access type is for opening registry key type, when Login table key meets default redirected condition, according to the redirected rule preset, obtain the information (S105) of target registered table key corresponding to Login table key, comprising:
S105A: when Login table key meet preset the condition of being redirected, according to the redirected rule preset, search the target registered table key that the Login table key that whether exists and open mate, if exist, execution S105B.
Wherein, above-mentioned default redirected rule, for specifying the corresponding relation between Login table key and target registered table key.
It should be noted that, due to multiple browser can be provided with in user terminal, so understandable, in above-mentioned default redirected rule, the multiple different corresponding relation of Login table key respectively and between target registered table key can be stored.
S105B: call the first preset function and open target registered table key.
Preferably, above-mentioned first preset function can be ZwOpenKeyEx.
S105C: according to the target registered table key opened, obtains the handle of target registered table key.
To the information (S106) of operating system feedback target registry key, comprising:
S106A: the handle obtaining registration table.
S106B: the handle value handle of target registered table key being defined as the handle of registration table.
For aforesaid call back function, again the present embodiment is described in detail below by instantiation.
After have registered aforementioned call back function, user clicks URL link, and for the access type of registration table is: when opening registry key type, under normal circumstances, operating system can open the registry key for browser recorded in registration table, i.e. the above-mentioned Login table key mentioned.
And in the present embodiment, the second parameter Argument2=RegNtPreOpenKeyEx of aforementioned call back function, like this in call back function, can by the 3rd of an aforementioned call back function registry information that gain of parameter will be opened (such as, the handle value of the registration table opened) and the Login table key opened etc., then in this call back function body, according to the redirected rule preset, search the target registered table key whether existing and match with the above-mentioned Login table key opened, if be stored in, call ZwOpenKeyEx function and open target registered table key, and according to the target registered table key after opening, obtain the handle of target registered table key, finally using the handle value of the handle of obtained target registered table key as the handle of the registration table in above-mentioned 3rd parameter.For operating system, it is call according to the handle value of the handle of above-mentioned registration table when calling browser, such operating system, when calling browser corresponding to Login table key, calls the browser that above-mentioned target registered table key is corresponding, achieves being redirected of browser.
In the another kind of specific implementation of the application, see Fig. 3, provide the schematic flow sheet of the third Web access method, compared with previous embodiment, in the present embodiment, when above-mentioned default access type is for inquiry registry key type, when Login table key meets default redirected condition, according to the redirected rule preset, obtain the information (S105) of target registered table key corresponding to Login table key, comprising:
S105D: when Login table key meets default redirected condition, according to the redirected rule preset, the target registered table key that the key assignments name of searching Login table key and this Login table key whether existed and open is mated, if exist, performs S105E.
Wherein, above-mentioned default redirected rule, for specifying the corresponding relation between both key assignments names of Login table key and this Login table key and target registered table key.
S105E: obtain rule according to the key assignments preset, obtains the key assignments of target registered table key.
Can not corresponding relation between define objective registry key and its key assignments in above-mentioned default redirected rule, also can corresponding relation between define objective registry key and its key assignments.
When corresponding relation in above-mentioned default redirected rule between non-define objective registry key and its key assignments, rule is obtained according to the key assignments preset, when obtaining the key assignments of target registered table key, by calling the mode of the second preset function, the key assignments of target registered table key can be obtained.
Preferably, above-mentioned second preset function can be ZwQueryValueKey.
When corresponding relation in above-mentioned default redirected rule between define objective registry key and its key assignments, rule is obtained according to the key assignments preset, when obtaining the key assignments of target registered table key, directly according to the key assignments recorded in the redirected rule preset, the key assignments of target registered table key can be obtained.
It should be noted that, the application is just described for above-mentioned, and the mode obtaining the key assignments of target registered table key in practical application is not limited in this.
To the information (S106) of operating system feedback target registry key, comprising:
S106C: the mark obtaining the registry information to be checked for representing operating system.
Concrete, this mark can be the correlated identities in aforementioned call back function in the 3rd parameter.
S106D: the value key assignments of target registered table key being defined as above-mentioned mark.
For aforesaid call back function, again the present embodiment is described in detail below by instantiation.
After have registered aforementioned call back function, user clicks URL link, and for the access type of registration table be: during inquiry registry key type, under normal circumstances, operating system can inquire about the information of the registry key for browser recorded in registration table, namely inquires about the information of the above-mentioned Login table key mentioned.
And in the present embodiment, the second parameter Argument2=RegNtQueryValueKey of aforementioned call back function, like this in call back function, can by the information of the 3rd of an aforementioned call back function registration table that gain of parameter will be inquired about (such as, the key assignments name of the registry key of inquiring about) and the Login table key opened etc., then in this call back function body, according to the redirected rule preset, search the target registered table key whether existing and match with the above-mentioned Login table key opened and its key assignments name, if exist, call the key assignments of ZwQueryValueKey query aim registry key, and the key assignments assignment of the registry key inquired is given the key assignments name of the registry key that will inquire about in above-mentioned 3rd parameter, then this key assignments name is returned by above-mentioned call back function.For operating system, during the key assignments name of operating system query source registry key, what inquire is the key assignments name of target registered table key, and then achieves being redirected of browser.
As seen from the above, in the scheme that each embodiment above-mentioned provides, when monitoring web access requests, obtain the access type for registration table, and the access type of registration table is when being default access type, obtain the Login table key opened for browser recorded in registration table, and when Login table key meets default redirected condition, according to the redirected rule preset, obtain the information of target registered table key corresponding to Login table key, then the information of this target registered table key is fed back to operating system, operating system is made to carry out web page access according to the information invocation target browser of target registered table key.Visible, in the scheme that each embodiment above-mentioned provides, the registry key for browser do not recorded in edit the registry, but the browser that operating system is called still can be changed when accessed web page, therefore, normally can use on the basis of its terminal not affecting user, ensureing default browser when objective browser is accessed web page.
Further, in the scheme that the embodiment of the present application provides, when opening registry key type and inquiry registry key type, all can be redirected to target registered table key from Login table key, and whether be modified regardless of the Login table key in registration table, in addition, all can successful lock onto target browser time after being redirected, user clicks URL link, without the need to repeating write-back with lock onto target browser in registration table in the scheme that the embodiment of the present application provides, the program contributes to objective browser and seizes successfully when many moneys browser coexists, and then improve the liveness of objective browser.
Corresponding with above-mentioned Web access method, the embodiment of the present application additionally provides a kind of web page access device.
The structural representation of the first web page access device that Fig. 4 provides for the embodiment of the present application, this device comprises:
Request monitoring modular 401, for monitoring web access requests;
Access type obtains module 402, for when monitoring web access requests, obtains the access type for registration table;
Access type judge module 403, for judging whether described access type is default access type;
Registry key obtains module 404, for when the judged result of described access type judge module 403 is for being, obtains the Login table key opened for browser recorded in described registration table;
Information acquisition module 405, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, obtains the information of target registered table key corresponding to described Login table key;
Information feedback module 406, for feeding back the information of described target registered table key to operating system, carries out web page access with the objective browser making operating system call described target registered table key corresponding according to the information of described target registered table key.
In the optional implementation of the one of the application, described device can also comprise:
Information modified module, for being revised as the information of described target registered table key by the information of the registry key for browser recorded in described registration table.
Concrete, described default access type can be open registry key type, also can be inquiry registry key type.
Above-mentioned web page access device is described for above-mentioned two types below by two specific embodiments.
In a kind of specific implementation of the application, see Fig. 5, provide the structural representation of the second web page access device, compared with previous embodiment, in the present embodiment, above-mentioned default access type is for opening registry key type, described information acquisition module 405, comprising:
First registry key searches submodule 405A, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, search the target registered table key whether existing and mate with the described Login table key opened, wherein, described default redirected rule, for specifying the corresponding relation between described Login table key and described target registered table key;
Registry key opens submodule 405B, for search submodule 405A in described first registry key lookup result for being, call the first preset function and open described target registered table key;
First handle obtains submodule 405C, for according to the described target registered table key opened, obtains the handle of described target registered table key;
Described information feedback module 406, comprising:
Second handle obtains submodule 406A, for obtaining the handle of described registration table;
Handle value determination submodule 406B, for being defined as the handle value of the handle of described registration table by the handle of described target registered table key.
Concrete, described first preset function can comprise: ZwOpenKeyEx.
In the another kind of specific implementation of the application, see Fig. 6, provide the structural representation of the third web page access device, compared with previous embodiment, in the present embodiment, above-mentioned default access type is inquiry registry key type, described information acquisition module 405, comprising:
Second registry key searches submodule 405D, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, search the target registered table key whether existing and mate with the key assignments name of the described Login table key opened and described Login table key, wherein, described default redirected rule, for specifying the corresponding relation between both key assignments names of described Login table key and this Login table key and described target registered table key;
Key assignments obtains submodule 405E, for search submodule 405D in described second registry key lookup result for being, obtain rule according to the key assignments preset, obtain the key assignments of described target registered table key;
Described information feedback module 406, comprising:
Mark obtains submodule 406C, for obtaining the mark of the registry information to be checked for representing operating system;
Value determination submodule 406D, for being defined as the value of described mark by the key assignments of described target registered table key.
Concrete, described key assignments obtains submodule, specifically for calling the second preset function, can obtain the key assignments of described target registered table key.
Optionally, described second preset function can comprise: ZwQueryValueKey.
Concrete, described default redirected rule, can also be used for specifying the corresponding relation between described target registered table key and its key assignments;
Described key assignments obtains submodule, specifically for according to the key assignments recorded in described default redirected rule, can obtain the key assignments of described target registered table key.
As seen from the above, in the scheme that each embodiment above-mentioned provides, when monitoring web access requests, obtain the access type for registration table, and the access type of registration table is when being default access type, obtain the Login table key opened for browser recorded in registration table, and when Login table key meets default redirected condition, according to the redirected rule preset, obtain the information of target registered table key corresponding to Login table key, then the information of this target registered table key is fed back to operating system, operating system is made to carry out web page access according to the information invocation target browser of target registered table key.Visible, in the scheme that each embodiment above-mentioned provides, the registry key for browser do not recorded in edit the registry, but the browser that operating system is called still can be changed when accessed web page, therefore, normally can use on the basis of its terminal not affecting user, ensureing default browser when objective browser is accessed web page.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only the preferred embodiment of the application, be not intended to limit the protection domain of the application.Any amendment done within all spirit in the application and principle, equivalent replacement, improvement etc., be all included in the protection domain of the application.
Claims (10)
1. a Web access method, is characterized in that, described method comprises:
Monitoring web access requests;
When monitoring web access requests, obtain the access type for registration table;
Judge whether described access type is default access type;
If yes, the Login table key opened for browser recorded in described registration table is obtained;
When described Login table key meets default redirected condition, according to the redirected rule preset, obtain the information of target registered table key corresponding to described Login table key;
Feed back the information of described target registered table key to operating system, carry out web page access with the objective browser making operating system call described target registered table key corresponding according to the information of described target registered table key.
2. method according to claim 1, is characterized in that, described default access type is:
Open registry key type or inquiry registry key type.
3. method according to claim 2, is characterized in that, when described default access type is for opening registry key type, the redirected rule that described basis is preset, obtains the information of target registered table key corresponding to described Login table key, comprising:
According to the redirected rule preset, search the target registered table key whether existing and mate with the described Login table key opened, wherein, described default redirected rule, for specifying the corresponding relation between described Login table key and described target registered table key;
If exist, call the first preset function and open described target registered table key;
According to the described target registered table key opened, obtain the handle of described target registered table key;
The described information feeding back described target registered table key to operating system, comprising:
Obtain the handle of described registration table;
The handle of described target registered table key is defined as the handle value of the handle of described registration table.
4. method according to claim 3, is characterized in that, described first preset function, comprising: ZwOpenKeyEx.
5. method according to claim 2, is characterized in that, when described default access type is inquiry registry key type, the redirected rule that described basis is preset, obtains the information of target registered table key corresponding to described Login table key, comprising:
According to the redirected rule preset, search the target registered table key whether existing and mate with the key assignments name of the described Login table key opened and described Login table key, wherein, described default redirected rule, for specifying the corresponding relation between both key assignments names of described Login table key and this Login table key and described target registered table key;
If exist, obtain rule according to the key assignments preset, obtain the key assignments of described target registered table key;
The described information feeding back described target registered table key to operating system, comprising:
Obtain the mark of the registry information to be checked for representing operating system;
The key assignments of described target registered table key is defined as the value of described mark.
6. method according to claim 5, is characterized in that, the described key assignments according to presetting obtains rule, obtains the key assignments of described target registered table key, comprising:
Call the second preset function, obtain the key assignments of described target registered table key.
7. method according to claim 6, is characterized in that, described second preset function, comprising: ZwQueryValueKey.
8. method according to claim 5, is characterized in that, described default redirected rule, also for specifying the corresponding relation between described target registered table key and its key assignments;
The described key assignments according to presetting obtains rule, obtains the key assignments of described target registered table key, comprising:
According to the key assignments recorded in described default redirected rule, obtain the key assignments of described target registered table key.
9. the method according to any one of claim 1-8, is characterized in that, described method also comprises:
The information of the registry key for browser recorded in described registration table is revised as the information of described target registered table key.
10. a web page access device, is characterized in that, described device comprises:
Request monitoring modular, for monitoring web access requests;
Access type obtains module, for when monitoring web access requests, obtains the access type for registration table;
Access type judge module, for judging whether described access type is default access type;
Registry key obtains module, for when the judged result of described access type judge module is for being, obtains the Login table key opened for browser recorded in described registration table;
Information acquisition module, when presetting for meeting at described Login table key the condition of being redirected, according to the redirected rule preset, obtains the information of target registered table key corresponding to described Login table key;
Information feedback module, for feeding back the information of described target registered table key to operating system, carries out web page access with the objective browser making operating system call described target registered table key corresponding according to the information of described target registered table key.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510983225.8A CN105574190B (en) | 2015-12-24 | 2015-12-24 | A kind of Web access method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510983225.8A CN105574190B (en) | 2015-12-24 | 2015-12-24 | A kind of Web access method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105574190A true CN105574190A (en) | 2016-05-11 |
| CN105574190B CN105574190B (en) | 2019-03-26 |
Family
ID=55884321
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510983225.8A Active CN105574190B (en) | 2015-12-24 | 2015-12-24 | A kind of Web access method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105574190B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020880A (en) * | 2016-05-17 | 2016-10-12 | 北京金山安全软件有限公司 | Browser starting method and device and electronic equipment |
| CN106934019A (en) * | 2017-03-10 | 2017-07-07 | 深圳市商舟网科技有限公司 | The method and apparatus for accessing website |
| CN111161044A (en) * | 2019-12-16 | 2020-05-15 | 平安银行股份有限公司 | A kind of automatic screen capture method, apparatus, computer equipment and readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120131636A1 (en) * | 2004-04-30 | 2012-05-24 | Microsoft Corporation | Security Context Lockdown |
| CN102831358A (en) * | 2012-09-21 | 2012-12-19 | 北京奇虎科技有限公司 | Method and device for preventing homepage tamper |
| CN103440144A (en) * | 2013-08-07 | 2013-12-11 | 北京奇虎科技有限公司 | Setting method and device of default software for equipment |
| CN104036019A (en) * | 2014-06-25 | 2014-09-10 | 北京奇虎科技有限公司 | Method and device for opening webpage links |
-
2015
- 2015-12-24 CN CN201510983225.8A patent/CN105574190B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120131636A1 (en) * | 2004-04-30 | 2012-05-24 | Microsoft Corporation | Security Context Lockdown |
| CN102831358A (en) * | 2012-09-21 | 2012-12-19 | 北京奇虎科技有限公司 | Method and device for preventing homepage tamper |
| CN103440144A (en) * | 2013-08-07 | 2013-12-11 | 北京奇虎科技有限公司 | Setting method and device of default software for equipment |
| CN104036019A (en) * | 2014-06-25 | 2014-09-10 | 北京奇虎科技有限公司 | Method and device for opening webpage links |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020880A (en) * | 2016-05-17 | 2016-10-12 | 北京金山安全软件有限公司 | Browser starting method and device and electronic equipment |
| CN106020880B (en) * | 2016-05-17 | 2019-05-07 | 珠海豹趣科技有限公司 | A kind of browser starting method, apparatus and electronic equipment |
| CN106934019A (en) * | 2017-03-10 | 2017-07-07 | 深圳市商舟网科技有限公司 | The method and apparatus for accessing website |
| CN106934019B (en) * | 2017-03-10 | 2020-02-14 | 深圳市商舟网科技有限公司 | Method and device for accessing website |
| CN111161044A (en) * | 2019-12-16 | 2020-05-15 | 平安银行股份有限公司 | A kind of automatic screen capture method, apparatus, computer equipment and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105574190B (en) | 2019-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7701944B2 (en) | System and method for crawl policy management utilizing IP address and IP address range | |
| US10225363B2 (en) | Methods and systems for providing a consistent profile to overlapping user sessions | |
| AU2009222468B2 (en) | Segregating anonymous access to dynamic content on a web server, with cached logons | |
| US9081835B2 (en) | Edge deployed database proxy driver | |
| US7136922B2 (en) | Method and system for providing on-demand content delivery for an origin server | |
| TWI701596B (en) | Virtual host and isolation method, resource access request processing method and device | |
| US6253257B1 (en) | Software Interface for dynamic API mapping | |
| US20050160419A1 (en) | System and method for replacing an application on a server | |
| US20070118572A1 (en) | Detecting changes in data | |
| CN111506367B (en) | Multi-cluster type artificial intelligence online service method and system | |
| CN101727475A (en) | Method, device and system for acquiring database access process | |
| CN105574190A (en) | Webpage access method and device | |
| CN116910015B (en) | Storage platform service method, device, equipment and storage medium | |
| US8560521B2 (en) | System, method, and computer program product for processing a prefix tree file utilizing a selected agent | |
| EP1387300A2 (en) | Establishment of network connections | |
| US8909802B2 (en) | Multiple address hyperlinks | |
| US20040117767A1 (en) | Method and system for detecting omission in software-property management using network | |
| Kuz et al. | The globe infrastructure directory service | |
| Gustafsson et al. | Using nfs to implement role-based access control | |
| WO2021072877A1 (en) | Secure starting method and apparatus for cloud host, and computer device and storage medium | |
| CN110795133B (en) | Automatic protection method and device for auxiliary application | |
| US20240195781A1 (en) | Systems and methods for cloud resolving and internet path finding | |
| Gaikwad et al. | Application Interface of CH Rooted File | |
| HK40046448A (en) | Accessing method, device and electronic equipment of stateful application in the edge computing system | |
| CN117061167A (en) | Method and device for realizing data sharing |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20181213 Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Applicant after: Zhuhai Leopard Technology Co.,Ltd. Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |