CN105574190B - A kind of Web access method and device - Google Patents
A kind of Web access method and device Download PDFInfo
- Publication number
- CN105574190B CN105574190B CN201510983225.8A CN201510983225A CN105574190B CN 105574190 B CN105574190 B CN 105574190B CN 201510983225 A CN201510983225 A CN 201510983225A CN 105574190 B CN105574190 B CN 105574190B
- Authority
- CN
- China
- Prior art keywords
- key
- target registered
- table key
- information
- preset
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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
Abstract
The embodiment of the present application discloses a kind of Web access method and device, is related to computer software technical field, wherein the above method includes: monitoring web access requests;In the case where monitoring web access requests, the access type for being directed to registration table is obtained;Judge whether the access type is default access type;If it is, obtaining the Login table key of the opening for browser recorded in the registration table;In the case where the Login table key meets default redirection condition, according to preset redirection rule, the information of the corresponding target registered table key of the Login table key is obtained;The information of the target registered table key is fed back to operating system, so that operating system calls browser to carry out web page access according to the information of the target registered table key.Webpage is accessed using scheme provided by the embodiments of the present application, on the basis of not influencing its terminal of user's normal use, ensure that objective browser is default browser when accessing webpage.
Description
Technical field
This application involves computer software technical field, in particular to a kind of Web access method and device.
Background technique
With the fast development of network technology, more and more users' selection obtains information by network.User passes through net
When network obtains information, a kind of common mode is that, by web page access network, therefore, user need to install browsing in its terminal
Device.Each businessman is contention user resources, is proposed respective browser one after another, in light of this situation, may in user terminal
Multiple browsers are will be installed.
There can only be a browser although multiple browsers may be equipped in user terminal, in these browsers
As default browser, and the setting information of default browser is typically recorded in registration table, and therefore, each browser is to increase
Liveness strives for the reasons such as more user resources, it will usually the registration for browser recorded in selection modification registration table
Itself is set default browser by the mode of the key assignments of table key.In addition, each browser be prevent from recording in registration table with
Its relevant information is modified, and guarantees its own for default browser, it will usually detect note by a circulation thread come timing
Whether the key assignments of the registry key for browser recorded in volume table is modified to the information of other browsers, if discovery is repaired
It is changed to the information of other browsers, then the key assignments is revised as to the information of its own.
Under normal conditions, each browser can guarantee that its own is default browser through the above way, but when more
When a browser modifies the information in registration table repeatedly, easily leads to operating system and Caton phenomenon occur, influencing user normally makes
With its terminal.
Summary of the invention
The embodiment of the present application discloses a kind of Web access method and device, not influence its terminal of user's normal use
On the basis of, guarantee that objective browser is default browser when accessing webpage.
In order to achieve the above objectives, the embodiment of the present application discloses a kind of Web access method, which comprises
Monitor web access requests;
In the case where monitoring web access requests, the access type for being directed to registration table is obtained;
Judge whether the access type is default access type;
If it is, obtaining the Login table key of the opening for browser recorded in the registration table;
In the case where the Login table key meets default redirection condition, according to preset redirection rule, obtain
The information of the corresponding target registered table key of the Login table key;
The information of the target registered table key is fed back to operating system, so that operating system is according to the target registered table
The information of key calls the corresponding objective browser of the target registered table key to carry out web page access.
In a kind of specific implementation of the application, the default access type are as follows:
Open registry key type or inquiry registry key type.
It is to open the feelings of registry key type in the default access type in a kind of specific implementation of the application
It is described according to preset redirection rule under condition, the information of the corresponding target registered table key of the Login table key is obtained, is wrapped
It includes:
According to preset redirection rule, search whether exist and the open matched target registered of Login table key
Table key, wherein the preset redirection rule, for providing between the Login table key and the target registered table key
Corresponding relationship;
If it exists, the first preset function is called to open the target registered table key;
According to the open target registered table key, the handle of the target registered table key is obtained;
The information that the target registered table key is fed back to operating system, comprising:
Obtain the handle of the registration table;
The handle of the target registered table key is determined as to the handle value of the handle of the registration table.
In a kind of specific implementation of the application, first preset function, comprising: ZwOpenKeyEx.
It is to inquire the feelings of registry key type in the default access type in a kind of specific implementation of the application
It is described according to preset redirection rule under condition, the information of the corresponding target registered table key of the Login table key is obtained, is wrapped
It includes:
According to preset redirection rule, search whether exist and the open Login table key and the Login
The matched target registered table key of the key assignments name of table key, wherein the preset redirection rule, for providing the Login table
Corresponding relationship between both key assignments names of key and the Login table key and the target registered table key;
If it exists, rule is obtained according to preset key assignments, obtains the key assignments of the target registered table key;
The information that the target registered table key is fed back to operating system, comprising:
Obtain the mark for indicating the registry information to be checked of operating system;
The key assignments of the target registered table key is determined as to the value of the mark.
It is described to obtain rule according to preset key assignments in a kind of specific implementation of the application, obtain the target
The key assignments of registry key, comprising:
The second preset function is called, the key assignments of the target registered table key is obtained.
In a kind of specific implementation of the application, second preset function, comprising: ZwQueryValueKey.
In a kind of specific implementation of the application, the preset redirection rule is also used to provide the target
Corresponding relationship between registry key and its key assignments;
It is described to obtain rule according to preset key assignments, obtain the key assignments of the target registered table key, comprising:
According to the key assignments recorded in the preset redirection rule, the key assignments of the target registered table key is obtained.
In a kind of specific implementation of the application, the Web access method further include:
The information of the registry key for browser recorded in the registration table is revised as the target registered table key
Information.
In order to achieve the above objectives, the embodiment of the present application discloses a kind of web page access device, and described device includes:
Monitoring modular is requested, for monitoring web access requests;
Access type obtains module, for obtaining the visit for being directed to registration table in the case where monitoring web access requests
Ask type;
Access type judgment module, for judging whether the access type is default access type;
Registry key obtains module, for obtaining in the case where the judging result of the access type judgment module, which is, is
Obtain the Login table key of the opening for browser recorded in the registration table;
Information acquisition module is used in the case where the Login table key meets default redirection condition, according to default
Redirection rule, obtain the information of the corresponding target registered table key of the Login table key;
Information feedback module, for feeding back the information of the target registered table key to operating system, so that operating system
The corresponding objective browser of the target registered table key is called to carry out web page access according to the information of the target registered table key.
In a kind of specific implementation of the application, the default access type are as follows:
Open registry key type or inquiry registry key type.
It is to open the feelings of registry key type in the default access type in a kind of specific implementation of the application
Under condition, the information acquisition module, comprising:
First registry key searches submodule, for the case where the Login table key meets default redirection condition
Under, according to preset redirection rule, search whether to exist with the open matched target registered table key of the Login table key,
Wherein, the preset redirection rule, it is corresponding between the Login table key and the target registered table key for providing
Relationship;
Registry key opens submodule, the feelings that the lookup result for searching submodule in first registry key is yes
Under condition, the first preset function is called to open the target registered table key;
First handle obtains submodule, for obtaining the target registered table according to the open target registered table key
The handle of key;
The information feedback module, comprising:
Second handle obtains submodule, for obtaining the handle of the registration table;
Handle value determines submodule, for the handle of the target registered table key to be determined as to the handle of the registration table
Handle value.
In a kind of specific implementation of the application, first preset function, comprising: ZwOpenKeyEx.
It is to inquire the feelings of registry key type in the default access type in a kind of specific implementation of the application
Under condition, the information acquisition module, comprising:
Second registry key searches submodule, for the case where the Login table key meets default redirection condition
Under, according to preset redirection rule, search whether exist and open the Login table key and the Login table key
The matched target registered table key of key assignments name, wherein the preset redirection rule, for provide the Login table key with
And the corresponding relationship between both key assignments names of the Login table key and the target registered table key;
Key assignments obtains submodule, and the lookup result for searching submodule in second registry key is the case where being
Under, rule is obtained according to preset key assignments, obtains the key assignments of the target registered table key;
The information feedback module, comprising:
Mark obtains submodule, for obtaining the mark for indicating the registry information to be checked of operating system;
Value determines submodule, for the key assignments of the target registered table key to be determined as to the value of the mark.
In a kind of specific implementation of the application, the key assignments obtains submodule, is specifically used for calling second to preset
Function obtains the key assignments of the target registered table key.
In a kind of specific implementation of the application, second preset function, comprising: ZwQueryValueKey.
In a kind of specific implementation of the application, the preset redirection rule is also used to provide the target
Corresponding relationship between registry key and its key assignments;
The key assignments obtains submodule, specifically for obtaining according to the key assignments recorded in the preset redirection rule
The key assignments of the target registered table key.
In a kind of specific implementation of the application, the web page access device further include:
Information modified module, for the information of the registry key for browser recorded in the registration table to be revised as
The information of the target registered table key.
As seen from the above, it in scheme provided by the embodiments of the present application, in the case where monitoring web access requests, obtains
For the access type of registration table, and the access type of registration table is in the case where presetting access type, to obtain and remember in registration table
The Login table key of the opening for browser of record, and in the case where Login table key meets default redirection condition, root
According to preset redirection rule, the information of the corresponding target registered table key of Login table key is obtained, is then fed back to operating system
The information of the target registered table key, so that operating system carries out webpage according to the information invocation target browser of target registered table key
Access.As it can be seen that in scheme provided by the embodiments of the present application, and the registration table for browser recorded in unmodified registration table
Key, but therefore can still change the browser that operating system is called when accessing webpage can not influence user just
It is often used on the basis of its terminal, guarantees that objective browser is default browser when accessing webpage.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the first Web access method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of second of Web access method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the third Web access method provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of the first web page access device provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of second of web page access device provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of the third web page access device provided by the embodiments of the present application.
Specific embodiment
Since in practical application, multiple browsers modify the registry key for browser recorded in registration table repeatedly
It when information, easily leads to operating system and Caton phenomenon occurs, user's normal use terminal is influenced, in consideration of it, the embodiment of the present application mentions
A kind of Web access method and device are supplied.
First above-mentioned Web access method is introduced on the whole below, which includes:
Monitor web access requests;
In the case where monitoring web access requests, the access type for being directed to registration table is obtained;
Judge whether the access type is default access type;
If it is, obtaining the Login table key of the opening for browser recorded in the registration table;
In the case where the Login table key meets default redirection condition, according to preset redirection rule, obtain
The information of the corresponding target registered table key of the Login table key;
The information of the target registered table key is fed back to operating system, so that operating system is according to the target registered table
The information of key calls the corresponding objective browser of the target registered table key to carry out web page access.
The executing subject of the above method can be understood as a kind of client, which can be browser client, example
Such as, Cheetah Browser, small Cheetah Browser etc., can also be other clients, for example, the client with Prevention-Security function
End etc., e.g., Jinshan anti-virus software-defence driving etc..
Specifically, can be realized by way of call back function, the readjustment during client states scheme in realization
Function is the call back function for registration table, can register the call back function when loading client, for example, booting load
The call back function for being directed to registration table is registered when browser information.
Wherein, it when registering above-mentioned call back function, can be registered by kernel function CmRegisterCallback.
Operating system open registry key, inquiry registry key, modification registry key, delete registry key when,
The above-mentioned call back function for registration table can be called, which has informing function.
Specifically, above-mentioned call back function can be defined according to following form:
NTSTATUS RegistryCallback(
PVOID Argument1,
PVOID Argument2,
PVOID Argument3)
Wherein, second parameter Argument2 can be used to indicate that the type of registration table readjustment, i.e., above-mentioned opening
Registry key, modification registry key, deletes the action types such as registry key at inquiry registry key
In addition, scheme provided by the embodiments of the present application can be adapted for 32-bit operating system, it is readily applicable to 64 behaviour
Make system, it is of course also possible to be suitable for other kinds of operating system, the application is defined not to this.It is this not distinguish
The way of OS Type, can reduce the maintenance cost of technology code, and nowhere link up with kernel function on functional implementation,
So that entire technical solution is more stable.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Fig. 1 is the flow diagram of the first Web access method provided by the embodiments of the present application, this method comprises:
S101: monitoring web access requests.
Specifically, detecting that user clicks the behaviour of URL (Uniform Resource Locator, uniform resource locator)
After work, it is believed that monitored web access requests.
Furthermore it is also possible to by way of the particular port for monitoring terminal, it is determined whether monitor web access requests, have
Body, if the particular port through monitoring discovery terminal has received web access requests data, it may be considered that having monitored net
Access to web page request.Wherein, which can be is clicked caused by URL operate as user, can also be user's access
Caused by a certain webpage, the application is defined not to this.
S102: in the case where monitoring web access requests, the access type for being directed to registration table is obtained.
Those skilled in the art are it is understood that the access type for registration table may include: to open registration
Table key type, inquiry registry key type, modification registry key type and deletion registry key type etc..
S103: judge whether above-mentioned access type is default access type, if it is, executing S104.
Specifically, above-mentioned default access type can be with are as follows: open registry key type or inquiry registry key type.Its
In, opening registration table type can be indicated with RegNtPreOpenKeyEx, and inquiring registration table type can be with
RegNtQueryValueKey is indicated.
S104: the Login table key of the opening for browser recorded in registration table is obtained.
Those skilled in the art are it is understood that there are many registry keys for record in registration table, it is generally the case that
These registry keys are for different application respectively.
In this step, after obtaining the registry key for browser recorded in registration table, that is, above-mentioned Login table is obtained
After key, preset system function can be called to open the 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] " default "=
“\“c:\\users\\lenovo\\appdata\\local\\360\\360se.exe\””
Wherein, [HKEY_CURRENT_USER Software Classes http shell open command] indicate
Registry key;
" default " indicates registration table key assignments name;
=" " and c: users lenovo appdata local 360 360se.exe " " indicate registry key
Value.
It should be noted that above-mentioned is only a kind of structure of the specifying information for browser recorded in registration table,
Restriction effect is not constituted to the application.
S105: it in the case where Login table key meets default redirection condition, according to preset redirection rule, obtains
The information of the corresponding target registered table key of Login table key.
Here above-mentioned preset redirection condition it is to be understood that registry key redirection condition.Wherein, redirection can
To understand are as follows: a program can allow it to turn to and open registry key b, it is understood that be when opening registry key a
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 it is understood that if above-mentioned Login table key is the registration table of objective browser
It when key, then no longer needs to redirect the Login table key operation, i.e., operating system is called according to the Login table key and browsed
The browser called when device is objective browser, therefore, in a kind of optional implementation of the application, above-mentioned default weight
It is regular according to preset redirection when stereotactic conditions can not be the registry key for objective browser for Login table key,
Obtain the information of the corresponding target registered table key of Login table key.
Specifically, according to preset redirection rule, when obtaining the information of the corresponding target registered table key of Login table key,
The letter of the corresponding target registered table key of above-mentioned Login table key can be obtained according to the preset information for redirecting and recording in rule
Breath, can also obtain the information of the corresponding target registered table key of above-mentioned Login table key by way of calling preset function.Tool
Body situation can be found in Fig. 2 and embodiment illustrated in fig. 3, wouldn't be described in detail herein.
S106: to the information of operating system feedback target registry key, so that operating system is according to target registered table key
The corresponding objective browser of information invocation target registry key carry out web page access.
In a kind of relatively good implementation of the application, above-mentioned Web access method can also include:
The information of the registry key for browser recorded in registration table is revised as to the information of target registered table key, this
When sample calls browser to carry out web page access again, due to the letter of the registry key for browser recorded in registration table
Breath has been modified into the information of target registered table key, it is possible to directly according to the note for browser recorded in registration table
The information of volume table key calls browser to access webpage, corresponding without obtaining Login table key according to preset redirection rule
The information of target registered table key can call the speed of browser access webpage with speeding up operation system.
By previously mentioned it is known that above-mentioned default access type can also be able to be to look into open registry key type
Registry key type is ask, below for above-mentioned two situations, above-mentioned Web access method is carried out by specific embodiment detailed
It introduces.
In a kind of specific implementation of the application, referring to fig. 2, the process for providing second of Web access method is shown
It is intended to, compared with previous embodiment, in the present embodiment, above-mentioned default access type is to infuse when opening registry key type in source
In the case that volume table key meets default redirection condition, according to preset redirection rule, the corresponding mesh of Login table key is obtained
Mark the information (S105) of registry key, comprising:
S105A: it in the case where Login table key meets default redirection condition, according to preset redirection rule, looks into
Looking for whether there is and the open matched target registered table key of Login table key, and if it exists, execute S105B.
Wherein, above-mentioned preset redirection rule, it is corresponding between Login table key and target registered table key for providing
Relationship.
It should be noted that since multiple browsers can be equipped in user terminal, it is possible to understanding, it is above-mentioned pre-
If redirection rule in, can store multiple and different Login table keys respectively between target registered table key it is corresponding close
System.
S105B: the first preset function is called to open target registered table key.
Preferably, above-mentioned first preset function can be ZwOpenKeyEx.
S105C: according to open target registered table key, the handle of target registered table key is obtained.
To the information (S106) of operating system feedback target registry key, comprising:
S106A: the handle of registration table is obtained.
S106B: the handle of target registered table key is determined as to the handle value of the handle of registration table.
By taking call back function above-mentioned as an example, the present embodiment is described in detail again below by specific example.
After having registered aforementioned call back function, user clicks URL link, and is directed to the access type of registration table are as follows: opens
When registry key type, it is generally the case that operating system can open the registry key for browser recorded in registration table, i.e.,
The above-mentioned Login table key referred to.
And in the present embodiment, the second parameter Argument2=RegNtPreOpenKeyEx of aforementioned call back function, this
Sample, can be by the registry information to be opened of third gain of parameter of aforementioned call back function (for example, wanting in call back function
The handle value of the registration table of opening) and the Login table key opened etc., then in the call back function body, according to preset
Rule is redirected, searches whether there is the target registered table key to match with the Login table key of above-mentioned opening, if being stored in, is adjusted
Target registered table key is opened with ZwOpenKeyEx function, and according to the target registered table key after opening, obtains target registered table key
Handle, finally using the handle of target registered table key obtained as the sentence of the handle of the registration table in above-mentioned third parameter
Bin value.It is to be called according to the handle value of the handle of above-mentioned registration table when calling browser, in this way for operating system
Operating system is called the corresponding browser of above-mentioned target registered table key, is realized in the corresponding browser of calling Login table key
The redirection of browser.
In another specific implementation of the application, referring to Fig. 3, the process of the third Web access method is provided
Schematic diagram, compared with previous embodiment, in the present embodiment, when above-mentioned default access type is inquiry registry key type, in source
In the case that registry key meets default redirection condition, according to preset redirection rule, it is corresponding to obtain Login table key
The information (S105) of target registered table key, comprising:
S105D: it in the case where Login table key meets default redirection condition, according to preset redirection rule, looks into
It looks for the presence or absence of the matched target registered table key of key assignments name with open Login table key and the Login table key, if depositing
Executing S105E.
Wherein, above-mentioned preset redirection rule, for providing the key assignments name of Login table key and the Login table key
Corresponding relationship between the two and target registered table key.
S105E: rule is obtained according to preset key assignments, obtains the key assignments of target registered table key.
The corresponding relationship between target registered table key and its key assignments can not be provided in above-mentioned preset redirection rule,
It can specify that the corresponding relationship between target registered table key and its key assignments.
The feelings of the corresponding relationship between target registered table key and its key assignments are not provided in above-mentioned preset redirection rule
Under condition, rule is obtained according to preset key assignments, it, can be by calling the second preset function when obtaining the key assignments of target registered table key
Mode, obtain target registered table key key assignments.
Preferably, above-mentioned second preset function can be ZwQueryValueKey.
The feelings of the corresponding relationship between target registered table key and its key assignments have been provided in above-mentioned preset redirection rule
Under condition, rule is obtained according to preset key assignments, it, can be directly according to preset redirection when obtaining the key assignments of target registered table key
The key assignments recorded in rule obtains the key assignments of target registered table key.
It should be noted that the application is only illustrated for above-mentioned, target registered table key is obtained in practical application
The mode of key assignments be not limited to that.
To the information (S106) of operating system feedback target registry key, comprising:
S106C: the mark for indicating the registry information to be checked of operating system is obtained.
Specifically, the mark can be the correlated identities in third parameter in aforementioned call back function.
S106D: the key assignments of target registered table key is determined as to the value of above-mentioned mark.
By taking call back function above-mentioned as an example, the present embodiment is described in detail again below by specific example.
After having registered aforementioned call back function, user clicks URL link, and is directed to the access type of registration table are as follows: inquiry
When registry key type, it is generally the case that operating system can inquire the registry key for browser recorded in registration table
Information inquires the information of the above-mentioned Login table key referred to.
And in the present embodiment, the second parameter Argument2=RegNtQueryValueKey of aforementioned call back function, this
Sample in call back function, can by the information of the registration table to be inquired of third gain of parameter of aforementioned call back function (for example,
The key assignments name of the registry key to be inquired) and the Login table key opened etc., then in the call back function body, according to pre-
If redirection rule, search whether there is Login table key and the matched target registered of its key assignments famous prime minister with above-mentioned opening
Table key, and if it exists, call the key assignments of ZwQueryValueKey inquiry target registered table key, and by the registry key inquired
Key assignments is assigned to the key assignments name of the registry key to be inquired in above-mentioned third parameter, is then returned by above-mentioned call back function
The key assignments name.For operating system, when the key assignments name of operating system query source registry key, what is inquired is target registered
The key assignments name of table key, and then realize the redirection of browser.
As seen from the above, it in the scheme that above-mentioned each embodiment provides, in the case where monitoring web access requests, obtains
The access type for registration table is obtained, and the access type of registration table is in the case where presetting access type, to obtain in registration table
The Login table key of the opening for browser of record, and in the case where Login table key meets default redirection condition,
According to preset redirection rule, the information of the corresponding target registered table key of Login table key is obtained, it is then anti-to operating system
The information of the target registered table key is presented, so that operating system carries out net according to the information invocation target browser of target registered table key
Access to web page.As it can be seen that in the scheme that above-mentioned each embodiment provides, and the registration for browser recorded in unmodified registration table
Table key, but therefore can still change the browser that operating system is called when accessing webpage can not influence user
On the basis of its terminal of normal use, guarantee that objective browser is default browser when accessing webpage.
Further, in scheme provided by the embodiments of the present application, registry key type and inquiry registry key class are being opened
When type, target registered table key can be redirected to from Login table key, but regardless of the Login table key in registration table whether by
Modification, can succeed lock onto target browser when in addition, user clicks URL link after redirecting, and the embodiment of the present application mentions
Without repeating write-back in registration table with lock onto target browser in the scheme of confession, the program facilitates objective browser and exists
A plurality of browsers seize success in the case where coexisting, and then improve the liveness of objective browser.
Corresponding with above-mentioned Web access method, the embodiment of the present application also provides a kind of web page access devices.
Fig. 4 is the structural schematic diagram of the first web page access device provided by the embodiments of the present application, which includes:
Monitoring modular 401 is requested, for monitoring web access requests;
Access type obtains module 402, for obtaining for registration table in the case where monitoring web access requests
Access type;
Access type judgment module 403, for judging whether the access type is default access type;
Registry key obtains module 404, is the case where being for the judging result in the access type judgment module 403
Under, obtain the Login table key of the opening for browser recorded in the registration table;
Information acquisition module 405 is used in the case where the Login table key meets default redirection condition, according to pre-
If redirection rule, obtain the information of the corresponding target registered table key of the Login table key;
Information feedback module 406, for feeding back the information of the target registered table key to operating system, so that operation system
System calls the corresponding objective browser of the target registered table key to carry out web page access according to the information of the target registered table key.
In a kind of optional implementation of the application, described device can also include:
Information modified module, for the information of the registry key for browser recorded in the registration table to be revised as
The information of the target registered table key.
Specifically, the default access type, which can be, opens registry key type, it is also possible to inquire registry key class
Type.
Above-mentioned web page access device is illustrated for above two type below by two specific embodiments.
In a kind of specific implementation of the application, referring to Fig. 5, the structure for providing second of web page access device is shown
It is intended to, compared with previous embodiment, in the present embodiment, above-mentioned default access type is to open registry key type, the information
Obtain module 405, comprising:
First registry key searches submodule 405A, for meeting the feelings of default redirection condition in the Login table key
Under condition, according to preset redirection rule, search whether exist and the open matched target registered table of the Login table key
Key, wherein the preset redirection rule, for providing pair between the Login table key and the target registered table key
It should be related to;
Registry key opens submodule 405B, for searching the lookup result of submodule 405A in first registry key
In the case where being, the first preset function is called to open the target registered table key;
First handle obtains submodule 405C, for obtaining the target note according to the open target registered table key
The handle of volume table key;
The information feedback module 406, comprising:
Second handle obtains submodule 406A, for obtaining the handle of the registration table;
Handle value determines submodule 406B, for the handle of the target registered table key to be determined as to the sentence of the registration table
The handle value of handle.
Specifically, first preset function may include: ZwOpenKeyEx.
In another specific implementation of the application, referring to Fig. 6, the structure of the third web page access device is provided
Schematic diagram, compared with previous embodiment, in the present embodiment, above-mentioned default access type is inquiry registry key type, the letter
Breath obtains module 405, comprising:
Second registry key searches submodule 405D, for meeting the feelings of default redirection condition in the Login table key
Under condition, according to preset redirection rule, search whether exist and open the Login table key and the Login table
The matched target registered table key of the key assignments name of key, wherein the preset redirection rule, for providing the Login table key
And the corresponding relationship between both key assignments names of the Login table key and the target registered table key;
Key assignments obtains submodule 405E, and the lookup result for searching submodule 405D in second registry key is yes
In the case where, rule is obtained according to preset key assignments, obtains the key assignments of the target registered table key;
The information feedback module 406, comprising:
Mark obtains submodule 406C, for obtaining the mark for indicating the registry information to be checked of operating system;
Value determines submodule 406D, for the key assignments of the target registered table key to be determined as to the value of the mark.
It specifically, the key assignments obtains submodule, can be specifically used for calling the second preset function, obtain the target note
The key assignments of volume table key.
Optionally, second preset function may include: ZwQueryValueKey.
Specifically, the preset redirection rule, can be also used for providing the target registered table key and its key assignments it
Between corresponding relationship;
The key assignments obtains submodule, can be specifically used for according to the key assignments recorded in the preset redirection rule,
Obtain the key assignments of the target registered table key.
As seen from the above, it in the scheme that above-mentioned each embodiment provides, in the case where monitoring web access requests, obtains
The access type for registration table is obtained, and the access type of registration table is in the case where presetting access type, to obtain in registration table
The Login table key of the opening for browser of record, and in the case where Login table key meets default redirection condition,
According to preset redirection rule, the information of the corresponding target registered table key of Login table key is obtained, it is then anti-to operating system
The information of the target registered table key is presented, so that operating system carries out net according to the information invocation target browser of target registered table key
Access to web page.As it can be seen that in the scheme that above-mentioned each embodiment provides, and the registration for browser recorded in unmodified registration table
Table key, but therefore can still change the browser that operating system is called when accessing webpage can not influence user
On the basis of its terminal of normal use, guarantee that objective browser is default browser when accessing webpage.
For device embodiment, since it is substantially similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium,
The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (18)
1. a kind of Web access method, which is characterized in that the described method includes:
Monitor web access requests;
In the case where monitoring web access requests, the access type for being directed to registration table is obtained;
Judge whether the access type is default access type;
If it is, obtaining the Login table key of the opening for browser recorded in the registration table;
It is regular according to preset redirection in the case where the Login table key meets default redirection condition, described in acquisition
The information of the corresponding target registered table key of Login table key;
The information of the target registered table key is fed back to operating system, so that operating system is according to the target registered table key
Information calls the corresponding objective browser of the target registered table key to carry out web page access.
2. the method according to claim 1, wherein the default access type are as follows:
Open registry key type or inquiry registry key type.
3. according to the method described in claim 2, it is characterized in that, being to open registry key type in the default access type
In the case where, it is described that the information of the corresponding target registered table key of the Login table key is obtained according to preset redirection rule,
Include:
According to preset redirection rule, search whether exist and the open matched target registered table of the Login table key
Key, wherein the preset redirection rule, for providing pair between the Login table key and the target registered table key
It should be related to;
If it exists, the first preset function is called to open the target registered table key;
According to the open target registered table key, the handle of the target registered table key is obtained;
The information that the target registered table key is fed back to operating system, comprising:
Obtain the handle of the registration table;
The handle of the target registered table key is determined as to the handle value of the handle of the registration table.
4. according to the method described in claim 3, it is characterized in that, first preset function, comprising: ZwOpenKeyEx.
5. according to the method described in claim 2, it is characterized in that, being inquiry registry key type in the default access type
In the case where, it is described that the information of the corresponding target registered table key of the Login table key is obtained according to preset redirection rule,
Include:
According to preset redirection rule, search whether exist and open the Login table key and the Login table key
The matched target registered table key of key assignments name, wherein the preset redirection rule, for provide the Login table key with
And the corresponding relationship between both key assignments names of the Login table key and the target registered table key;
If it exists, rule is obtained according to preset key assignments, obtains the key assignments of the target registered table key;
The information that the target registered table key is fed back to operating system, comprising:
Obtain the mark for indicating the registry information to be checked of operating system;
The key assignments of the target registered table key is determined as to the value of the mark.
6. according to the method described in claim 5, it is characterized in that, described obtain rule according to preset key assignments, described in acquisition
The key assignments of target registered table key, comprising:
The second preset function is called, the key assignments of the target registered table key is obtained.
7. according to the method described in claim 6, it is characterized in that, second preset function, comprising:
ZwQueryValueKey。
8. according to the method described in claim 5, it is characterized in that, the preset redirection rule, is also used to provide described
Corresponding relationship between target registered table key and its key assignments;
It is described to obtain rule according to preset key assignments, obtain the key assignments of the target registered table key, comprising:
According to the key assignments recorded in the preset redirection rule, the key assignments of the target registered table key is obtained.
9. method according to claim 1 to 8, which is characterized in that the method also includes:
The information of the registry key for browser recorded in the registration table is revised as to the letter of the target registered table key
Breath.
10. a kind of web page access device, which is characterized in that described device includes:
Monitoring modular is requested, for monitoring web access requests;
Access type obtains module, for obtaining the access class for being directed to registration table in the case where monitoring web access requests
Type;
Access type judgment module, for judging whether the access type is default access type;
Registry key obtains module, for obtaining institute in the case where the judging result of the access type judgment module, which is, is
State the Login table key of the opening for browser recorded in registration table;
Information acquisition module is used in the case where the Login table key meets default redirection condition, according to preset heavy
Rule oriented obtains the information of the corresponding target registered table key of the Login table key;
Information feedback module, for feeding back the information of the target registered table key to operating system so that operating system according to
The information of the target registered table key calls the corresponding objective browser of the target registered table key to carry out web page access.
11. device according to claim 10, which is characterized in that the default access type are as follows:
Open registry key type or inquiry registry key type.
12. device according to claim 11, which is characterized in that the default access type be open registry key class
In the case where type, the information acquisition module, comprising:
First registry key searches submodule, is used in the case where the Login table key meets default redirection condition, root
According to preset redirection rule, search whether exist and the open matched target registered table key of the Login table key, wherein
The preset redirection rule, for providing the corresponding relationship between the Login table key and the target registered table key;
Registry key opens submodule, and the lookup result for searching submodule in first registry key is the case where being
Under, call the first preset function to open the target registered table key;
First handle obtains submodule, for obtaining the target registered table key according to the open target registered table key
Handle;
The information feedback module, comprising:
Second handle obtains submodule, for obtaining the handle of the registration table;
Handle value determines submodule, the handle of the handle for the handle of the target registered table key to be determined as to the registration table
Value.
13. device according to claim 12, which is characterized in that first preset function, comprising: ZwOpenKeyEx.
14. device according to claim 11, which is characterized in that the default access type be inquiry registry key class
In the case where type, the information acquisition module, comprising:
Second registry key searches submodule, is used in the case where the Login table key meets default redirection condition, root
According to preset redirection rule, the key assignments for having with open the Login table key and the Login table key is searched whether
The matched target registered table key of name, wherein the preset redirection rule, for providing the Login table key and the source
Corresponding relationship between both key assignments names of registry key and the target registered table key;
Key assignments obtains submodule, and the lookup result for searching submodule in second registry key is in the case where being, to press
Rule is obtained according to preset key assignments, obtains the key assignments of the target registered table key;
The information feedback module, comprising:
Mark obtains submodule, for obtaining the mark for indicating the registry information to be checked of operating system;
Value determines submodule, for the key assignments of the target registered table key to be determined as to the value of the mark.
15. device according to claim 14, which is characterized in that
The key assignments obtains submodule, is specifically used for calling the second preset function, obtains the key assignments of the target registered table key.
16. device according to claim 15, which is characterized in that second preset function, comprising:
ZwQueryValueKey。
17. device according to claim 14, which is characterized in that the preset redirection rule is also used to regulation institute
State the corresponding relationship between target registered table key and its key assignments;
The key assignments obtains submodule, specifically for according to it is described it is preset redirect the key assignments recorded in rule, described in acquisition
The key assignments of target registered table key.
18. device described in any one of 0-17 according to claim 1, which is characterized in that described device further include:
Information modified module, it is described for the information of the registry key for browser recorded in the registration table to be revised as
The information of 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 CN105574190A (en) | 2016-05-11 |
CN105574190B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020880B (en) * | 2016-05-17 | 2019-05-07 | 珠海豹趣科技有限公司 | A kind of browser starting method, apparatus and electronic equipment |
CN106934019B (en) * | 2017-03-10 | 2020-02-14 | 深圳市商舟网科技有限公司 | Method and device for accessing website |
CN111161044A (en) * | 2019-12-16 | 2020-05-15 | 平安银行股份有限公司 | Automatic screen capture method and device, computer equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8108902B2 (en) * | 2004-04-30 | 2012-01-31 | Microsoft Corporation | System and method for local machine zone lockdown with relation to a network browser |
-
2015
- 2015-12-24 CN CN201510983225.8A patent/CN105574190B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105574190A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11645210B2 (en) | Cache aware searching based on one or more files in remote storage | |
US11765048B2 (en) | Declarative and reactive data layer for component-based user interfaces | |
US7739230B2 (en) | Log location discovery and management | |
US8799262B2 (en) | Configurable web crawler | |
CN102333122B (en) | Downloaded resource provision method, device and system | |
EP1750394B1 (en) | Autonomous policy discovery | |
US9081835B2 (en) | Edge deployed database proxy driver | |
KR101953942B1 (en) | System and method for managing dedicated caches | |
US20080172404A1 (en) | Method and apparatus for bookmarking uniform resource identifiers that are subject to redirection | |
US20120042002A1 (en) | System and method for context driven centralized help | |
KR20100126313A (en) | Xml-based web feed for web access of remote resources | |
CN105574190B (en) | A kind of Web access method and device | |
US8560521B2 (en) | System, method, and computer program product for processing a prefix tree file utilizing a selected agent | |
US7836108B1 (en) | Clustering by previous representative | |
US8661069B1 (en) | Predictive-based clustering with representative redirect targets | |
EP1387300A2 (en) | Establishment of network connections | |
US20060018264A1 (en) | Opened network connection control method, opened network connection control system, connection control unit and recording medium | |
US20120167220A1 (en) | Seed information collecting device and method for detecting malicious code landing/hopping/distribution sites | |
CN102333123B (en) | File storage method and device, searching method and device and network device | |
EP1124183A1 (en) | Method for managing globally distributed software components | |
US20080059427A1 (en) | Invoking actions on data via LDAP requests | |
Kuz et al. | The globe infrastructure directory service | |
WO2021072877A1 (en) | Secure starting method and apparatus for cloud host, and computer device and storage medium | |
US20170302592A1 (en) | System and Methods for Sharing Resources Among Application Modules | |
JP2008204427A (en) | Device for operating url filtering by acquiring original url of content stored in cache server or the like |
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 |