Invention content
In order to solve the above-mentioned technical problem above-mentioned technical problem or is at least partly solved, this application provides a kind of nets
Location information processing method and device.
In view of this, in a first aspect, this application provides a kind of website information processing method, for obtaining in Android system
The website information of nonsystematic browser, the method includes:
Obtain the miscellaneous function permission of the Android system;
Monitor the display interface of the Android system;
Judge whether the display interface of the Android system opens the page of nonsystematic browser;
When the display interface of the Android system opens the page of nonsystematic browser, the nonsystematic browser is monitored
The page whether have switching;
When the page of the nonsystematic browser has switching, the website information in address field on the page is recorded.
Optionally, whether the page of the monitoring nonsystematic browser has switching, including:
Whether the forms for monitoring address field in the page change;
When the forms of address field in the page change, determining the page of the nonsystematic browser has switching.
Optionally, whether the page of the monitoring nonsystematic browser has switching, including:
Monitor whether the input frame in the page loses focus;
When the input frame in the page loses focus, determining the page of the nonsystematic browser has switching.
Optionally, whether the page of the monitoring nonsystematic browser has switching, including:
Whether the page load progress item monitored in the page changes;
When the page load progress item in the page changes, determine that the page of the nonsystematic browser is cut
It changes.
Optionally, the method further includes:
Safety analysis is carried out to the website information using local default network address database;
Alternatively,
The website information is sent to server, and receives the server and sends the new safety analysis of the network address
As a result.
Second aspect, present invention also provides a kind of website information processing unit, for obtaining nonsystematic in Android system
The website information of browser, described device include:
Authority acquiring unit, for obtaining the miscellaneous function permission of the Android system;
Interface monitoring unit, for monitoring the display interface of the Android system;
Judging unit, for judging whether the display interface of the Android system opens the page of nonsystematic browser;
Switching monitoring unit, for when the display interface of the Android system open nonsystematic browser the page when, prison
Whether the page for controlling the nonsystematic browser has switching;
Information recording unit, for when the page of the nonsystematic browser has switching, recording address on the page
Website information in column.
Optionally, the switching monitoring unit, including:
Forms monitor subelement, for monitoring whether the forms of address field in the page change;
First determination subelement, for when the forms of address field in the page change, determining the nonsystematic
The page of browser has switching.
Optionally, the switching monitoring unit, including:
Focus monitors subelement, and whether the input frame for monitoring in the page loses focus;
Second determination subelement, for when the input frame in the page loses focus, determining the nonsystematic browsing
The page of device has switching.
Optionally, the switching monitoring unit, including:
Progress bar monitors subelement, and whether the page load progress item for monitoring in the page changes;
Third determination subelement, for when the page load progress item in the page changes, determining described non-
The page of system browser has switching.
Optionally, described device further includes:
First analytic unit, for carrying out safety analysis to the website information using local default network address database;
Alternatively,
Transmitting element, for the website information to be sent to server;Receiving unit, for receiving the server hair
The Security analysis result for sending the network address new.
Above-mentioned technical proposal provided by the embodiments of the present application has the following advantages that compared with prior art:
This method provided by the embodiments of the present application by the miscellaneous function permission of the Android system, can monitor at any time
Whether the display interface of Android system opens the page of nonsystematic browser, once the page of nonsystematic browser is opened, it can be with
The situation of change of the page is monitored, but when the page for monitoring the nonsystematic browser has switching, records the page
Website information in upper address field.
In this way, third party application can be by the channel of miscellaneous function permission, in real time to the net of nonsystematic browser
Location accesses situation and is monitored, and can also get any network address that nonsystematic browser is accessed in real time, in this way can be into
One step coordinates local or high in the clouds to be detected the safety of the website information of the nonsystematic browser, pacifies when website information exists
Full sex chromosome mosaicism, it is possible to which user is informed in prompting in time.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present application are clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is
The part of the embodiment of the application, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's all other embodiments obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of website information processing method, for obtaining nonsystematic browser in Android system
Website information and safety analysis is carried out to the safety of website information.
Fig. 1 is a kind of flow diagram of website information processing method provided by the embodiments of the present application.
As indicated with 1, this method may comprise steps of.
S101 obtains the miscellaneous function permission of the Android system.
Miscellaneous function is a known permission of Android system, and the acquisition modes of miscellaneous function permission can open auxiliary work(
Can interface where control, guiding user opens the permission, after miscellaneous function permission is got, have system is set the page into
Row monitoring right.
S102 monitors the display interface of the Android system.
In user's normal use Android system, can be switched between different application.In the embodiment of the present application,
Display interface refers in installation system, the display interface of program being being currently used positioned at screen top user,
S103, judges whether the display interface of the Android system opens the page of nonsystematic browser.
In the embodiment of the present application, nonsystematic browser can be the preassigned third party's browser of user, such as:It is right
For Huawei's mobile phone, system browser is Huawei's auto-browsing device, and UC browsers, baidu browser, Halo browsers etc.
Belonging to third party's browser, user can be self-defined in advance only for UC browsers,
S104 when the display interface of the Android system opens the page of nonsystematic browser, monitors the nonsystematic
Whether the page of browser has switching.
Page layout switch refers to, user during webpage is browsed to webpage click after the page layout switch that carries out, when there is the page
During switching, the new page can be just entered, and then just the website information in need to the new page is screened.
S105 when the page of the nonsystematic browser has switching, records the network address letter on the page in address field
Breath.
For browser, when being switched to the new page, address field usually can all show the website information of the new page,
So in this step, need the website information in recording address column.When recording website information, directly screen can be cut
Then figure carries out image identification to the website information in sectional drawing, and then extracts website information.Certainly, in other embodiments,
It can also directly be obtained from the mobile phone where browser.
After the website information being recorded in address field, the network address of local or high in the clouds to the nonsystematic browser can be coordinated
The safety of information is detected, and when website information, there are safety issues, it is possible to which user is informed in prompting in time.
This method provided by the embodiments of the present application by the miscellaneous function permission of the Android system, can monitor at any time
Whether the display interface of Android system opens the page of nonsystematic browser, once the page of nonsystematic browser is opened, it can be with
The situation of change of the page is monitored, but when the page for monitoring the nonsystematic browser has switching, records the page
Website information in upper address field.
In this way, third party application can be by the channel of miscellaneous function permission, in real time to the net of nonsystematic browser
Location accesses situation and is monitored, and can also get any network address that nonsystematic browser is accessed in real time, in this way can be into
One step coordinates local or high in the clouds to be detected the safety of the website information of the nonsystematic browser, pacifies when website information exists
Full sex chromosome mosaicism, it is possible to which user is informed in prompting in time.
In the application one embodiment, whether aforementioned S104 has switching can in the page for monitoring the nonsystematic browser
To include the following steps.
Whether S1041, the forms for monitoring address field in the page change;
S1042, when the forms of address field in the page change, determining the page of the nonsystematic browser has
Switching.
In the application one embodiment, whether aforementioned S104 has switching can in the page for monitoring the nonsystematic browser
To include the following steps.
S1043, monitors whether the input frame in the page loses focus;
S1044 when the input frame in the page loses focus, determines that the page of the nonsystematic browser is cut
It changes.
In the application one embodiment, whether aforementioned S104 has switching can in the page for monitoring the nonsystematic browser
To include the following steps.
Whether S1045, the page load progress item monitored in the page change;
S1046 when the page load progress item in the page changes, determines the page of the nonsystematic browser
There is switching in face.
In the application one embodiment, this method may also comprise the following steps: for the application offer.
S201 carries out safety analysis using local default network address database to the website information;
In addition to other than locally safety analysis is carried out, in the application one embodiment, this method that the application provides is also
It may comprise steps of.
The website information is sent to server by S301, and is received the server and sent the new safety of the network address
Property analysis result.
After safety analysis is carried out, Security analysis result can be showed user, with what is currently browsed to user
Danger is prompted existing for the page.
The embodiment of the present application additionally provides a kind of website information processing unit, is browsed for obtaining nonsystematic in Android system
The website information of device.
As shown in Fig. 2, the website information processing unit can include:
Authority acquiring unit 11, for obtaining the miscellaneous function permission of the Android system;
Interface monitoring unit 12, for monitoring the display interface of the Android system;
Judging unit 13, for judging whether the display interface of the Android system opens the page of nonsystematic browser;
Switching monitoring unit 14, for when the display interface of the Android system open nonsystematic browser the page when,
Whether the page for monitoring the nonsystematic browser has switching;
Information recording unit 15, for when the page of the nonsystematic browser has switching, recording the page Shangdi
Website information in the column of location.
In the application one embodiment, the switching monitoring unit, including:
Forms monitor subelement, for monitoring whether the forms of address field in the page change;
First determination subelement, for when the forms of address field in the page change, determining the nonsystematic
The page of browser has switching.
In the application one embodiment, the switching monitoring unit, including:
Focus monitors subelement, and whether the input frame for monitoring in the page loses focus;
Second determination subelement, for when the input frame in the page loses focus, determining the nonsystematic browsing
The page of device has switching.
In the application one embodiment, the switching monitoring unit, including:
Progress bar monitors subelement, and whether the page load progress item for monitoring in the page changes;
Third determination subelement, for when the page load progress item in the page changes, determining described non-
The page of system browser has switching.
In the application one embodiment, described device further includes:
First analytic unit, for carrying out safety analysis to the website information using local default network address database.
In the application one embodiment, described device further includes:
Transmitting element, for the website information to be sent to server;Receiving unit, for receiving the server hair
The Security analysis result for sending the network address new.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware during invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device or
For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates may or may not be it is physically separate, the component shown as unit can be or
Person may not be physical unit, you can be located at a place or can also be distributed in multiple network element.It can root
Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
It is understood that the present invention can be used in numerous general or special purpose computing system environments or configuration.Such as:It is a
People's computer, server computer, handheld device or portable device, laptop device, multicomputer system, based on microprocessor
The system of device, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, including to take up an official post
Distributed computing environment of what system or equipment etc..
The present invention can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Cover non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or set
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
Also there are other identical elements in the process, method, article or apparatus that includes the element.
The above is only the specific embodiment of the present invention, is made skilled artisans appreciate that or realizing this hair
It is bright.A variety of modifications of these embodiments will be apparent to one skilled in the art, it is as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and apllied principle and features of novelty phase one herein
The most wide range caused.