WO2019153479A1 - 一种监听浏览器页面的方法、装置及计算机设备 - Google Patents
一种监听浏览器页面的方法、装置及计算机设备 Download PDFInfo
- Publication number
- WO2019153479A1 WO2019153479A1 PCT/CN2018/082160 CN2018082160W WO2019153479A1 WO 2019153479 A1 WO2019153479 A1 WO 2019153479A1 CN 2018082160 W CN2018082160 W CN 2018082160W WO 2019153479 A1 WO2019153479 A1 WO 2019153479A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- key
- listened
- current time
- url
- Prior art date
Links
Images
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/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- 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/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Definitions
- the invention belongs to the technical field of page monitoring, and in particular relates to a method, a device and a computer device for listening to a browser page.
- the present invention provides a method, a device, and a computer device for listening to a browser page, which are used to solve the technical problem that the browser page cannot be closed in the prior art.
- the present invention provides a method for listening to a browser page, the method comprising:
- the click event of the to-be-listened page is intercepted, and the URL of the to-be-listened page is obtained according to the click event;
- the generating a key value pair based on the uniform resource locator URL of the page to be monitored and the current time according to the preset first time interval including:
- the current time is a value corresponding to the key, and the correspondence between the key and the current time is the key value pair.
- the intercepting the click event of the to-be-listened page, and acquiring the URL of the to-be-listened page according to the click event includes:
- the callback function is triggered, and the URL of the to-be-listened page is obtained by using the callback function.
- the preset time threshold is determined according to the first time interval.
- the present invention also provides an apparatus for listening to a browser page, the apparatus comprising:
- a generating unit configured to generate a key value pair according to a uniform resource locator URL of the page to be listened to and a current time according to the preset first time interval, and write the key value pair into the local storage, where the current time is Each time the key value pair is written to a time corresponding to the local storage;
- An intercepting unit configured to intercept a click event of the to-be-listened page, and obtain a URL of the to-be-listened page according to the click event;
- a searching unit configured to generate a key according to the URL, and search for a corresponding value from the local storage according to the preset second time interval based on the key and the key value pair in the local storage, where the value is The current time;
- the determining unit is configured to determine whether the difference between the current time and the search time is greater than a preset time threshold, and if it is greater, determine that the to-be-listened page has been closed.
- the generating unit is specifically configured to:
- the current time is a value corresponding to the key, and the correspondence between the key and the current time is the key value pair.
- the intercepting unit is specifically configured to:
- the callback function is triggered, and the URL of the to-be-listened page is obtained by using the callback function.
- the preset time threshold is determined according to the first time interval.
- the present invention also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method as described in any of the above.
- the invention also provides a computer device for listening to a browser page, comprising:
- At least one processor At least one processor
- At least one memory communicatively coupled to the processor, wherein
- the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of the above.
- the embodiment of the invention provides a method, a device and a computer device for listening to a browser page.
- the method includes: generating a key value based on a uniform resource locator URL and a current time of a page to be monitored according to a preset first time interval.
- the current time is a time corresponding to writing the key value pair to the local storage; when the page to be monitored needs to be monitored, intercepting the to-be-listened a click event of the page, obtaining a URL of the page to be listened according to the click event; generating a key according to the URL, based on the key and the key value pair in the local storage, according to a preset second time interval Searching for a corresponding value in the local storage, where the value is the current time; determining whether the difference between the current time and the search time is greater than a preset time threshold, and if yes, determining the to-be-listened page Has been closed; thus, when the corresponding current time can be found from the local storage, it can be determined that the page to be monitored is in an open state; when the current time and the search time Is greater than the difference between a preset time threshold, it may be determined to be the monitor page has been closed, so that it can easily be judged whether the page is closed listen
- FIG. 1 is a schematic flowchart of a method for listening to a browser page according to Embodiment 1 of the present invention
- FIG. 2 is a schematic structural diagram of an apparatus for monitoring a browser page according to Embodiment 2 of the present invention
- FIG. 3 is a schematic diagram of the overall structure of a computer device for listening to a browser page according to Embodiment 3 of the present invention.
- This embodiment provides a method for listening to a browser page. As shown in FIG. 1 , the method includes:
- the first locator is used to obtain the resource locator URL of the page to be listened to.
- the first script program is set in the page to be listened, and the first script program may be a javascript script.
- the URL is generated according to the preset hash function according to the URL;
- the hash function may include: an md5 hash function, a crc32 hash function, and the like.
- the URL is generated using the md5 hash function
- the URL is /shop/trade_list?
- x is a URL
- F(x) is the last 9 bits for calculating the value of md5, which is c19d7b148; of course, the length of F(x) can be arbitrarily set.
- the current time is determined according to the preset first time interval; the current time is a value corresponding to the key, and the corresponding relationship between the key and the current time is the key value pair.
- the current time is a time corresponding to each time the key value pair is written to the local storage, and the first time interval may be set according to an actual situation, and is set to 1 s in this embodiment.
- the first current time is 11:11
- the first time interval is 1s
- the second current time is 11:12
- the third current time is 11:13, etc., so the current time is constantly updated. status.
- the first script program continuously writes the current time according to the first time interval, so that the correspondence between the key and the current time forms a key-value pair, and the current time is the value corresponding to the key.
- the value is a time value, and then the key-value pairs are stored in local storage.
- the value corresponding to the key in the local storage will stop updating, which is the current time of the last write before the page to be listened to is closed.
- the second script program is used to monitor and intercept the click event of the to-be-listened page, and the second script program is set in the monitoring page, and the second script program can be javascript. script.
- the monitored page is a page opened on the basis of the listening page.
- the second script program acquires a link of the to-be-listened page, acquires the linked DOM object, and performs the DOM object, the click event of the to-be-listened page, and a callback function pre-specified for the click event. Binding; when the click event is intercepted, the callback function is triggered, and the callback function is executed, so that the URL of the to-be-listened page can be obtained by using the callback function.
- the DOM object, the click event of the page to be listened to, and a callback function pre-specified for the click event are bound, wherein click is a click event.
- the key is generated according to the URL.
- the method for generating the key is the same as the method for generating the key by the first script program, and details are not described herein.
- the second time interval may be the same as the first time interval, or may be different, and may be set according to a specific situation.
- the value corresponding to the key is 11:11; in the 2nd s, the value corresponding to the key is 11:12; in the 3s, the value corresponding to the key is 11:13; in the 4th s, the key corresponds to The value is 11:14; then when searching for the value corresponding to the key according to the second time interval, the value found by 2s is 11:12, and the value found by 4s is 11:14.
- the value is constantly updated, and a key corresponds to only one value. The value is the current time.
- S114 Determine whether the difference between the current time and the search time is greater than a preset time threshold. If it is greater than, determine that the to-be-listened page has been closed.
- the preset time threshold is determined according to the first time interval, and the time threshold is generally set to be twice the first time interval.
- the second time interval is 2 s.
- the current time is 11:11
- the search time is 11:14
- the difference between the current time and the search time is 3s, which is greater than the preset time threshold. Then, it is determined that the to-be-listened page has been closed.
- the response time of the monitoring page for determining whether the page to be monitored is closed may be determined according to the first time interval and the second time interval, and the specific range is (the first time interval, the first time interval + the second time interval). That is, the response time range in this embodiment is (1s, 3s), that is, the listening page can determine whether the monitored page is closed within 1 to 3 seconds.
- the embodiment further provides an apparatus for listening to a browser page.
- the apparatus includes: an obtaining unit 21, a generating unit 22, an intercepting unit 23, a searching unit 24, and a determining unit 25. ;among them,
- the obtaining unit 21 is configured to obtain a uniform resource locator URL of the to-be-listened page by using the first script program; the first script program is set in the to-be-listened page, and the first script program may be a javascript script.
- the generating unit 22 is configured to generate a key-value pair based on the URL and the current time according to the preset first time interval, and write the key-value pair into the local storage,
- the current time is the time corresponding to each time the key value pair is written to the local storage.
- the generating unit 22 generates the key according to the URL according to the preset hash function according to the preset hash function;
- the hash function may include: an md5 hash function, a crc32 hash function, and the like.
- the URL is generated using the md5 hash function
- the URL is /shop/trade_list?
- x is a URL
- F(x) is the last 9 bits for calculating the value of md5, which is c19d7b148; of course, the length of F(x) can be arbitrarily set.
- the current time is determined according to the preset first time interval; the current time is a value corresponding to the key, and the corresponding relationship between the key and the current time is the key value pair.
- the current time is a time corresponding to when the key value pair is written to the local storage, and the first time interval may be set according to an actual situation, and is set to 1 s in this embodiment.
- the first current time is 11:11
- the first time interval is 1s
- the second current time is 11:12
- the third current time is 11:13, etc., so the current time is constantly updated. status.
- the first script program continuously writes the current time according to the first time interval, so that the correspondence between the key and the current time forms a key-value pair, and the current time is the value corresponding to the key.
- the value is a time value, and then the key-value pairs are stored in local storage.
- the value corresponding to the key in the local storage will stop updating, which is the current time of the last write before the page to be listened to is closed.
- the intercepting unit 23 is configured to use a second script program to listen to and intercept the click event of the to-be-listened page, and obtain the to-be-listened page according to the click event.
- URL the second script is set in the listener page, and the second script can be a javascript script.
- the monitored page is a page opened on the basis of the listening page.
- the intercepting unit 23 acquires a link of the to-be-listened page by using a second script program, acquires the linked DOM object, and specifies a click event of the DOM object, the to-be-listened page, and a pre-specified for the click event.
- the callback function performs binding; when the click event is intercepted, the callback function is triggered, and the callback function is executed, so that the URL of the to-be-listened page can be obtained by using the callback function.
- the DOM object, the click event of the page to be listened to, and a callback function pre-specified for the click event are bound, wherein click is a click event.
- the search unit 24 is configured to generate a key according to the URL.
- the method for generating a key is the same as the method for generating a key by the first script program, and details are not described herein.
- the searching unit 24 searches for the corresponding value from the local storage according to the key and the key value pair in the local storage according to a preset second time interval, where the value is the current time;
- the second time interval may be the same as the first time interval, or may be different, and may be set according to a specific situation.
- the value corresponding to the key is 11:11; in the 2nd s, the value corresponding to the key is 11:12; in the 3s, the value corresponding to the key is 11:13; in the 4th s, the key corresponds to The value is 11:14; then, when the search unit 24 searches for the value corresponding to the key according to the second time interval, the value found by the second s is 11:12, and the value found by the fourth s is 11:14.
- the value is constantly updated, and a key corresponds to only one value.
- the determining unit 25 can determine that the page to be monitored is in an open state.
- the determining unit 25 determines whether the difference between the current time and the search time is greater than a preset time threshold. If it is greater, it determines that the page to be monitored has been closed.
- the preset time threshold is determined according to the first time interval, and generally the time threshold is set to be twice the first time interval.
- the second time interval is 2 s.
- the current time is 11:11
- the search time is 11:14
- the difference between the current time and the search time is 3s, which is greater than the preset time threshold. Then, the determining unit 25 determines that the page to be monitored has been shut down.
- the response time of the monitoring page for determining whether the page to be monitored is closed may be determined according to the first time interval and the second time interval, and the specific range is (the first time interval, the first time interval + the second time interval). That is, the range of the response time in this embodiment is (1s, 3s), that is, the judging unit 25 can judge whether the monitored page is closed within 1 to 3 seconds.
- the embodiment further provides a computer device for detecting user identity information.
- the computer device includes: a radio frequency (RF) circuit 310, a memory 320, an input unit 330, and a display unit 340.
- RF radio frequency
- Components such as audio circuit 350, WiFi module 360, processor 370, and power supply 380.
- FIG. 3 does not constitute a limitation to a computer device, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
- the RF circuit 310 can be used for receiving and transmitting signals, and in particular, receiving downlink information of the base station and processing it to the processor 370.
- RF circuit 310 includes, but is not limited to, at least one amplifier, transceiver, coupler, Low Noise Amplifier (LNA), duplexer, and the like.
- LNA Low Noise Amplifier
- the memory 320 can be used to store software programs and modules, and the processor 370 executes various functional applications and data processing of the computer devices by running software programs and modules stored in the memory 320.
- the memory 320 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the computer device, and the like.
- memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 330 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the computer device.
- input unit 330 can include a touch panel 331 and other input devices 332.
- the touch panel 331 can collect input operations of the user and drive the corresponding connecting device according to a preset program.
- the touch panel 331 collects the output information and sends it to the processor 370.
- the input unit 330 may also include other input devices 332.
- other input devices 332 may include, but are not limited to, one or more of a touch panel, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 340 can be used to display information input by the user or information provided to the user as well as various menus of the computer device.
- the display unit 340 can include a display panel 341.
- the display panel 341 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the touch panel 331 can cover the display panel 341. When the touch panel 331 detects a touch operation on or near the touch panel 331, it transmits to the processor 370 to determine the type of the touch event, and then the processor 370 according to the input event. The type provides a corresponding visual output on display panel 341.
- the touch panel 331 and the display panel 341 are implemented as two separate components in FIG. 3 to implement input and input functions of the computer device, in some embodiments, the touch panel 331 may be integrated with the display panel 341. Implement the input and output functions of computer equipment.
- An audio circuit 350, a speaker 351, and a microphone 352 can provide an audio interface between the user and the computer device.
- the audio circuit 350 can transmit the converted electrical data of the received audio data to the speaker 351, and convert it into a sound signal output by the speaker 351;
- WiFi is a short-range wireless transmission technology.
- the computer device can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 360. It provides users with wireless broadband Internet access.
- FIG. 3 shows the WiFi module 360, it can be understood that it does not belong to the essential configuration of the computer device, and may be omitted as needed within the scope of not changing the essence of the invention.
- Processor 370 is a control center for computer devices that connects various portions of the entire computer device using various interfaces and lines, by running or executing software programs and/or modules stored in memory 320, and recalling data stored in memory 320. , performing various functions and processing data of the computer device, thereby performing overall monitoring of the computer device.
- the processor 370 may include one or more processing units; preferably, the processor 370 may integrate an application processor, wherein the application processor mainly processes an operating system, a user interface, an application, and the like.
- the computer device also includes a power source 380 (such as a power adapter) that powers the various components.
- a power source 380 such as a power adapter
- the power source can be logically coupled to the processor 370 via a power management system.
- the method, server and computer device provided by the embodiment of the present invention for listening to a browser page can have at least the following advantages:
- An embodiment of the present invention provides a method, an apparatus, and a computer device for listening to a browser page.
- the method includes: acquiring a uniform resource locator URL of a page to be monitored; and according to the preset first time interval, based on the URL and The current time generates a key value pair, and writes the key value pair to the local storage, where the current time is a time corresponding to writing the key value pair to the local storage; when the page to be monitored needs to be monitored, Intercepting a click event of the to-be-listened page, acquiring a URL of the to-be-listened page according to the click event; and generating a key according to the URL, based on the key and the key-value pair in the local storage, according to a preset
- the second time interval searches for the corresponding value from the local storage, where the value is the current time; determines whether the difference between the current time and the search time is greater than a preset time threshold, and if it is greater than, determines The to-be-listened page has
- modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
- the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
- any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
- Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
- the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processing (DSP) may be used in practice to implement some of the gateways, proxy servers, some or all of the components in accordance with embodiments of the present invention. Or all features.
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the present invention may be stored on a computer readable storage medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Telephone Function (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例提供了一种监听浏览器页面的方法、装置及计算机设备,包括:按照预设的第一时间间隔,基于待监听页面的URL及当前时间生成键值对,并将所述键值对写入本地存储中;当需要监听待监听页面时,拦截待监听页面的点击事件,根据点击事件获取待监听页面的URL;根据所述URL生成键,基于键及键值对,按照预设的第二时间间隔从本地存储中查找对应的值;判断当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定待监听页面已经关闭;如此,若当前时间与查找时刻之间的差值大于预设的时间阈值,则可以确定所述待监听页面已经关闭。
Description
本发明属于页面监听技术领域,尤其涉及一种监听浏览器页面的方法、装置及计算机设备。
在浏览页面时,用户在一个页面A上点击一个链接打开同域名下另一个页面B,当页面B结束操作关掉时,服务器希望当页面B关掉的时候页面A能得到通知以做好后续的处理流程。
现有技术中是通过拦截页面B的点击请求,当拦截到点击请求后,利用window.open()方法来打开一个新窗口,并在新窗口中加载页面B;window.open()方法可以获得新窗口的对象,于是页面A就可以监听该对象的onclose事件。当新窗口被关闭时,onclose事件会被触发,页面A就能得到通知。
但是利用window.open()方法来打开一个新窗口的操作会被浏览器或反广告插件当做恶意行为被阻止,从而导致新窗口无法被打开,这样的话就无法监听新窗口对象的onclose事件,导致页面A得不到通知。
发明内容
针对现有技术存在的问题,本发明实施例提供了一种监听浏览器页面的方法、装置及计算机设备,用于解决现有技术中无法监听浏览器页面是否被关闭的技术问题。
本发明提供一种监听浏览器页面的方法,所述方法包括:
按照预设的第一时间间隔,基于待监听页面的统一资源定位符URL及当前时间生成键值对,并将所述键值对写入本地存储中,所述当前时间为每次将所述键值对写入本地存储时对应的时刻;
当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;
根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;
判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
上述方案中,所述按照预设的第一时间间隔,基于待监听页面的统一资源 定位符URL及当前时间生成键值对,包括:
基于所述URL,按照预设的哈希函数将所述URL生成所述键;
按照预设的第一时间间隔更新所述当前时间;所述当前时间为所述键对应的值,所述键与所述当前时间的对应关系为所述键值对。
上述方案中,所述拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL,包括:
获取所述待监听页面的链接,获取所述链接的DOM对象;
将所述DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定;
当拦截到所述点击事件时,触发所述回调函数,利用所述回调函数获取所述待监听页面的URL。
上述方案中,所述预设的时间阈值根据所述第一时间间隔确定。
本发明还提供一种监听浏览器页面的装置,所述装置包括:
生成单元,用于按照预设的第一时间间隔,基于待监听页面的统一资源定位符URL及当前时间生成键值对,并将所述键值对写入本地存储中,所述当前时间为每次将所述键值对写入本地存储时对应的时刻;
拦截单元,用于当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;
查找单元,用于根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;
判断单元,用于判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
上述方案中,所述生成单元具体用于:
基于所述URL,按照预设的哈希函数将所述URL生成所述键;
按照预设的第一时间间隔更新所述当前时间;所述当前时间为所述键对应的值,所述键与所述当前时间的对应关系为所述键值对。
上述方案中,所述拦截单元具体用于:
获取所述待监听页面的链接,获取所述链接的DOM对象;
将所述DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定;
当拦截到所述点击事件时,触发所述回调函数,利用所述回调函数获取所述待监听页面的URL。
上述方案中,所述预设的时间阈值根据所述第一时间间隔确定。
本发明还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现能够执行如上述任一所述的方法。
本发明还提供一种用于监听浏览器页面的计算机设备,包括:
至少一个处理器;以及
与所述处理器通信连接的至少一个存储器,其中,
所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如上述任一所述的方法。
本发明实施例提供了一种监听浏览器页面的方法、装置及计算机设备,所述方法包括:按照预设的第一时间间隔,基于待监听页面的统一资源定位符URL及当前时间生成键值对,并将所述键值对写入本地存储中,所述当前时间为将所述键值对写入本地存储时对应的时刻;当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭;如此,当可以从本地存储中查找到对应的当前时间时,则可以确定待监听页面是处于打开状态;当该当前时间与查找时刻之间的差值大于预设的时间阈值,则可以确定所述待监听页面已经关闭,这样就可以方便地判断出待监听页面是否被关闭。
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1为本发明实施例一提供的监听浏览器页面的方法流程示意图;
图2为本发明实施例二提供的监听浏览器页面的装置结构示意图;
图3为本发明实施例三提供的监听浏览器页面的计算机设备整体结构示意图。
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本 公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
下面通过附图及具体实施例对本发明的技术方案做进一步的详细说明。
实施例一
本实施例提供一种监听浏览器页面的方法,如图1所示,所述方法包括:
S111,按照预设的第一时间间隔,基于待监听页面的统一资源定位符的URL及当前时间生成键值对,并将所述键值对写入本地存储中;
本步骤中,首先利用第一脚本程序获取待监听页面的资源定位符URL,所述第一脚本程序设置在待监听页面中,第一脚本程序可以为javascript脚本。
获取到待监听页面的URL后,基于所述URL,按照预设的哈希函数将所述URL生成所述键;所述哈希函数可包括:md5哈希函数、crc32哈希函数等。
比如,当利用md5哈希函数将所述URL生成所述键,URL为/shop/trade_list?shop_id=12时,具体实现如下:
F(x)=substr(md5(x),-9) (1)
公式(1)中的x为URL,F(x)为计算出md5值的最后9位,为c19d7b148;当然F(x)的长度可以任意设定。
基于所述URL生成所述键后,按照预设的第一时间间隔,确定当前时间;当前时间为所述键对应的值,所述键与当前时间的对应关系为所述键值对。这里,所述当前时间为每次将所述键值对写入本地存储时对应的时刻,所述第一时间间隔可以根据实际情况设定,本实施例中设置为1s。
比如,第一个当前时间为11:11,第一时间间隔为1s,那么第二个当前时间就为11:12,第三个当前时间为11:13等等,这样当前时间就处于不断更新的状态。
然后在待监听页面处于打开状态时,第一脚本程序会一直按照第一时间间隔不断写入当前时间,这样键与当前时间的对应关系就形成了键值对,当前时间就为键对应的值,该值为时间值,然后将键值对存储至本地存储中。
当待监听页面处于关闭状态时,本地存储中键对应的值就会停止更新,该值为待监听页面关闭之前最后一次写入的当前时间。
S112,当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;
当同域名下的监听页面需要监听所述待监听页面时,利用第二脚本程序监听并拦截待监听页面的点击事件,第二脚本程序是设置在监听页面中的,第二脚本程序可以为javascript脚本。需要说明的是,被监听页面是在监听页面的基础上打开的页面。
具体地,第二脚本程序获取所述待监听页面的链接,获取所述链接的DOM 对象;将所述DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定;当拦截到所述点击事件时,就会触发所述回调函数,所述回调函数就会被执行,这样利用所述回调函数就可以获取所述待监听页面的URL。
然后在DOM对象上添加对点击事件的监听参数EventListener,并将watch_page_close_call_back函数作为回调函数,具体实现如下:
dom_link.addEventListener(″click″,watch_page_close_call_back);
这样就将DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定了,其中,click为点击事件。
S113,根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值;
获取到待监听页面的URL后,根据所述URL生成键,这里生成键的方法与第一脚本程序生成键的方法完全相同,在此不再赘述。
生成键之后,按照预设的第二时间间隔从所述本地存储中查找对应的当前时间。所述第二时间间隔可以是第一时间间隔相同,也可以不同,可根据具体的情况设定。
比如,在第1s时,键对应的值是11:11;第2s时,键对应的值是11:12;,第3s时,键对应的值是11:13;第4s时,键对应的值是11:14;那么在按照第二时间间隔查找键对应的值时,第2s查找到的值为11:12,第4s查找到的值为11:14。这里,值是不断更新的,一个键只对应一个值。所述值为当前时间。
S114,判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
首次查找到当前时间后,则可以确定待监听页面是处于打开状态的。
然后判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
这里,所述预设的时间阈值根据所述第一时间间隔确定,一般是将时间阈 值设置为第一时间间隔的2倍。本实施例中第二时间间隔为2s。
比如,查找到的当前时间为11:11,查找时刻为11:14,当前时间与查找时刻之间的差值为3s,大于预设的时间阈值,那么此时确定待监听页面已经关闭。
进一步地,监听页面判断待监听页面是否关闭的响应时间可以根据第一时间间隔与第二时间间隔确定,具体的范围是(第一时间间隔,第一时间间隔+第二时间间隔)。也即本实施例中响应时间的范围是(1s,3s),就是说监听页面在1~3s内可判断出被监听页面是否被关闭。
实施例二
相应于实施例一,本实施例还提供一种监听浏览器页面的装置,如图2所示,所述装置包括:获取单元21、生成单元22、拦截单元23、查找单元24及判断单元25;其中,
获取单元21用于利用第一脚本程序获取待监听页面的统一资源定位符URL;所述第一脚本程序设置在待监听页面中,第一脚本程序可以为javascript脚本。
获取到待监听页面的URL后,生成单元22用于按照预设的第一时间间隔,基于所述URL及当前时间生成键值对,并将所述键值对写入本地存储中,所述当前时间为每次将所述键值对写入本地存储时对应的时刻。
具体地,生成单元22基于所述URL,按照预设的哈希函数将所述URL生成所述键;所述哈希函数可包括:md5哈希函数、crc32哈希函数等。
比如,当利用md5哈希函数将所述URL生成所述键,URL为/shop/trade_list?shop_id=12时,具体实现如下:
F(x)=substr(md5(x),-9) (1)
公式(1)中的x为URL,F(x)为计算出md5值的最后9位,为c19d7b148;当然F(x)的长度可以任意设定。
基于所述URL生成所述键后,按照预设的第一时间间隔,确定当前时间;当前时间为所述键对应的值,所述键与当前时间的对应关系为所述键值对。这里,所述当前时间为将所述键值对写入本地存储时对应的时刻,所述第一时间间隔可以根据实际情况设定,本实施例中设置为1s。
比如,第一个当前时间为11:11,第一时间间隔为1s,那么第二个当前时间就为11:12,第三个当前时间为11:13等等,这样当前时间就处于不断更新的状态。
然后在待监听页面处于打开状态时,第一脚本程序会一直按照第一时间间隔不断写入当前时间,这样键与当前时间的对应关系就形成了键值对,当前时间就为键对应的值,该值为时间值,然后将键值对存储至本地存储中。
当待监听页面处于关闭状态时,本地存储中键对应的值就会停止更新,该值为待监听页面关闭之前最后一次写入的当前时间。
当同域名下的监听页面需要监听所述待监听页面时,拦截单元23用于利用第二脚本程序监听并拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;第二脚本程序是设置在监听页面中的,第二脚本程序可以为javascript脚本。需要说明的是,被监听页面是在监听页面的基础上打开的页面。
具体地,拦截单元23利用第二脚本程序获取所述待监听页面的链接,获取所述链接的DOM对象;将所述DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定;当拦截到所述点击事件时,就会触发所述回调函数,所述回调函数就会被执行,这样利用所述回调函数就可以获取所述待监听页面的URL。
然后在DOM对象上添加对点击事件的监听参数EventListener,并将watch_page_close_call_back函数作为回调函数,具体实现如下:
dom_link.addEventListener(″click″,watch_page_close_call_back);
这样就将DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定了,其中,click为点击事件。
获取到待监听页面的URL后,查找单元24用于根据所述URL生成键,这里生成键的方法与第一脚本程序生成键的方法完全相同,在此不再赘述。
生成键之后,查找单元24基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;所述第二时间间隔可以是第一时间间隔相同,也可以不同,可根据具体的情况设定。
比如,在第1s时,键对应的值是11:11;第2s时,键对应的值是11:12;,第3s时,键对应的值是11:13;第4s时,键对应的值是11:14;那么查找单元24在按照第二时间间隔查找键对应的值时,第2s查找到的值为11:12,第4s查找到 的值为11:14。这里,值是不断更新的,一个键只对应一个值。
首次查找到当前时间后,判断单元25则可以确定待监听页面是处于打开状态的。
然后判断单元25判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
这里,所述预设的时间阈值根据所述第一时间间隔确定,一般是将时间阈值设置为第一时间间隔的2倍。本实施例中第二时间间隔为2s。
比如,查找到的当前时间为11:11,查找时刻为11:14,当前时间与查找时刻之间的差值为3s,大于预设的时间阈值,那么此时判断单元25确定待监听页面已经关闭。
进一步地,监听页面判断待监听页面是否关闭的响应时间可以根据第一时间间隔与第二时间间隔确定,具体的范围是(第一时间间隔,第一时间间隔+第二时间间隔)。也即本实施例中响应时间的范围是(1s,3s),就是说判断单元25在1~3s内可判断出被监听页面是否被关闭。
实施例三
本实施例还提供一种用于检测用户身份信息的计算机设备,如图3所示,所述计算机设备包括:射频(Radio Frequency,RF)电路310、存储器320、输入单元330、显示单元340、音频电路350、WiFi模块360、处理器370、以及电源380等部件。本领域技术人员可以理解,图3中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图3对计算机设备的各个构成部件进行具体的介绍:
RF电路310可用于信号的接收和发送,特别地,将基站的下行信息接收后,给处理器370处理。通常,RF电路310包括但不限于至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。
存储器320可用于存储软件程序以及模块,处理器370通过运行存储在存储器320的软件程序以及模块,从而执行计算机设备的各种功能应用以及数据处理。存储器320可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元330可用于接收输入的数字或字符信息,以及产生与计算机设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元330可包括触 控面板331以及其他输入设备332。触控面板331,可收集用户在其上的输入操作,并根据预先设定的程式驱动相应的连接装置。触控面板331采集到输出信息后再送给处理器370。除了触控面板331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于触控面板、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元340可用于显示由用户输入的信息或提供给用户的信息以及计算机设备的各种菜单。显示单元340可包括显示面板341,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板341。进一步的,触控面板331可覆盖显示面板341,当触控面板331检测到在其上或附近的触摸操作后,传送给处理器370以确定触摸事件的类型,随后处理器370根据输入事件的类型在显示面板341上提供相应的视觉输出。虽然在图3中触控面板331与显示面板341是作为两个独立的部件来实现计算机设备的输入和输入功能,但是在某些实施例中,可以将触控面板331与显示面板341集成而实现计算机设备的输入和输出功能。
音频电路350、扬声器351,传声器352可提供用户与计算机设备之间的音频接口。音频电路350可将接收到的音频数据转换后的电信号,传输到扬声器351,由扬声器351转换为声音信号输出;
WiFi属于短距离无线传输技术,计算机设备通过WiFi模块360可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图3示出了WiFi模块360,但是可以理解的是,其并不属于计算机设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器370是计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行计算机设备的各种功能和处理数据,从而对计算机设备进行整体监控。可选的,处理器370可包括一个或多个处理单元;优选的,处理器370可集成应用处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等。
计算机设备还包括给各个部件供电的电源380(比如电源适配器),优选的,电源可以通过电源管理系统与处理器370逻辑相连。
本发明实施例提供的用于监听浏览器页面的方法、服务器及计算机设备能带来的有益效果至少是:
本发明实施例提供了一种监听浏览器页面的方法、装置及计算机设备,所述方法包括:获取待监听页面的统一资源定位符URL;按照预设的第一时间间隔,基于所述URL及当前时间生成键值对,并将所述键值对写入本地存储中, 所述当前时间为将所述键值对写入本地存储时对应的时刻;当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭;如此,当可以从本地存储中查找到对应的当前时间时,则可以确定待监听页面是处于打开状态;当该当前时间与查找时刻之间的差值大于预设的时间阈值,则可以确定所述待监听页面已经关闭,这样就可以方便地判断出待监听页面是否被关闭。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP,Digital Signal Processing)来实现根据本发明实施例的网关、代理服务器、系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读存储介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。
Claims (10)
- 一种监听浏览器页面的方法,其特征在于,所述方法包括:按照预设的第一时间间隔,基于待监听页面的统一资源定位符URL及当前时间生成键值对,并将所述键值对写入本地存储中,所述当前时间为每次将所述键值对写入本地存储时对应的时刻;当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
- 如权利要求1所述的方法,其特征在于,所述按照预设的第一时间间隔,基于待监听页面的统一资源定位符URL及当前时间生成键值对,包括:基于所述URL,按照预设的哈希函数将所述URL生成所述键;按照预设的第一时间间隔更新所述当前时间;所述当前时间为所述键对应的值,所述键与所述当前时间的对应关系为所述键值对。
- 如权利要求1所述的方法,其特征在于,所述拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL,包括:获取所述待监听页面的链接,获取所述链接的DOM对象;将所述DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定;当拦截到所述点击事件时,触发所述回调函数,利用所述回调函数获取所述待监听页面的URL。
- 如权利要求1所述的方法,其特征在于,所述预设的时间阈值根据所述第一时间间隔确定。
- 一种监听浏览器页面的装置,其特征在于,所述装置包括:生成单元,用于按照预设的第一时间间隔,基于待监听页面的统一资源定位符URL及当前时间生成键值对,并将所述键值对写入本地存储中,所述当前时间为每次将所述键值对写入本地存储时对应的时刻;拦截单元,用于当需要监听所述待监听页面时,拦截所述待监听页面的点击事件,根据所述点击事件获取所述待监听页面的URL;查找单元,用于根据所述URL生成键,基于所述键及所述本地存储中的键值对,按照预设的第二时间间隔从所述本地存储中查找对应的值,所述值为所述当前时间;判断单元,用于判断所述当前时间与查找时刻之间的差值是否大于预设的时间阈值,若大于,则确定所述待监听页面已经关闭。
- 如权利要求5所述的装置,其特征在于,所述生成单元具体用于:基于所述URL,按照预设的哈希函数将所述URL生成所述键;按照预设的第一时间间隔更新所述当前时间;所述当前时间为所述键对应的值,所述键与所述当前时间的对应关系为所述键值对。
- 如权利要求5所述的装置,其特征在于,所述拦截单元具体用于:获取所述待监听页面的链接,获取所述链接的DOM对象;将所述DOM对象、所述待监听页面的点击事件以及为所述点击事件预先指定的回调函数进行绑定;当拦截到所述点击事件时,触发所述回调函数,利用所述回调函数获取所述待监听页面的URL。
- 如权利要求5所述的装置,其特征在于,所述预设的时间阈值根据所述第一时间间隔确定。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现能够执行如权利要求1至4任一所述的方法。
- 一种用于监听浏览器页面的计算机设备,其特征在于,包括:至少一个处理器;以及与所述处理器通信连接的至少一个存储器,其中,所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至4任一所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810119600.8A CN108280014B (zh) | 2018-02-06 | 2018-02-06 | 一种监听浏览器页面的方法、装置及计算机设备 |
CN201810119600.8 | 2018-02-06 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019153479A1 true WO2019153479A1 (zh) | 2019-08-15 |
Family
ID=62807727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/082160 WO2019153479A1 (zh) | 2018-02-06 | 2018-04-08 | 一种监听浏览器页面的方法、装置及计算机设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108280014B (zh) |
WO (1) | WO2019153479A1 (zh) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061607A (zh) * | 2019-11-25 | 2020-04-24 | 贝壳技术有限公司 | 页面白屏的监控方法及监控装置 |
CN111061606A (zh) * | 2019-11-04 | 2020-04-24 | 深圳震有科技股份有限公司 | 一种基于浏览器的监测预警方法、终端及存储介质 |
CN111460350A (zh) * | 2020-04-07 | 2020-07-28 | 上海熙菱信息技术有限公司 | 一种防抖与节流封装方法及系统 |
CN111831560A (zh) * | 2020-06-24 | 2020-10-27 | 平安普惠企业管理有限公司 | 应用性能指标的检测方法、装置、计算机设备和存储介质 |
CN112463519A (zh) * | 2020-11-05 | 2021-03-09 | 广州博恒信息科技有限责任公司 | 基于Flutter的页面使用行为数据无埋点统计方法、设备及存储介质 |
CN113496003A (zh) * | 2020-04-08 | 2021-10-12 | 北京沃东天骏信息技术有限公司 | 一种确定页面停留时长的方法及装置 |
CN113656722A (zh) * | 2021-08-31 | 2021-11-16 | 中国银行股份有限公司 | 防h5页面误跳转方法及装置 |
CN113987318A (zh) * | 2021-11-01 | 2022-01-28 | 盐城金堤科技有限公司 | 页面监控方法、装置、设备及计算机存储介质 |
CN114915837A (zh) * | 2021-02-10 | 2022-08-16 | 武汉斗鱼网络科技有限公司 | 视频渲染的触发方法、装置、电子设备及存储介质 |
CN115941866A (zh) * | 2022-12-22 | 2023-04-07 | 北斗星通智联科技有限责任公司 | 多摄像头页面切换系统、方法及车载导航 |
CN116628654A (zh) * | 2023-07-26 | 2023-08-22 | 之江实验室 | 前端页面权限控制方法、装置、设备及存储介质 |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445796A (zh) * | 2018-10-16 | 2019-03-08 | 厦门美图移动科技有限公司 | 程序编辑方法及装置 |
CN109710354A (zh) * | 2018-12-13 | 2019-05-03 | 平安普惠企业管理有限公司 | 页面监听方法、页面还原方法、装置、设备及介质 |
CN109857420A (zh) * | 2018-12-13 | 2019-06-07 | 平安普惠企业管理有限公司 | 页面更新方法、装置、计算机设备及存储介质 |
CN109815429B (zh) * | 2019-01-31 | 2021-03-05 | 天津字节跳动科技有限公司 | 浏览器页面关闭处理方法和装置 |
CN109934014B (zh) * | 2019-02-15 | 2021-06-25 | 福建天泉教育科技有限公司 | 一种检测资源文件正确性的方法及终端 |
CN113609412A (zh) * | 2021-06-28 | 2021-11-05 | 北京华云安信息技术有限公司 | 通过Hook关键函数和事件获取URL的方法 |
CN115033455B (zh) * | 2022-06-18 | 2023-03-17 | 珠海市鸿瑞信息技术股份有限公司 | 基于tcp状态数据的设备风险监测系统及方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309588A (zh) * | 2013-06-19 | 2013-09-18 | 广东欧珀移动通信有限公司 | 一种防止移动终端误操作的方法、装置及系统 |
CN105335404A (zh) * | 2014-07-29 | 2016-02-17 | 北京奇虎科技有限公司 | 页面信息加载方法和装置 |
WO2017167042A1 (zh) * | 2016-04-01 | 2017-10-05 | 阿里巴巴集团控股有限公司 | 前端用户行为统计方法及装置 |
CN107368399A (zh) * | 2017-06-28 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | 一种线上网页监控方法及系统 |
CN107609184A (zh) * | 2017-09-30 | 2018-01-19 | 北京奇虎科技有限公司 | 基于网页浏览行为的数据加载方法及装置 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103812718A (zh) * | 2012-11-07 | 2014-05-21 | 江苏仕德伟网络科技股份有限公司 | 一种最新得到网页关闭时间的方法 |
JP6531594B2 (ja) * | 2015-09-25 | 2019-06-19 | 株式会社ノーリツ | 遠隔監視システム |
CN106919636A (zh) * | 2016-07-04 | 2017-07-04 | 阿里巴巴集团控股有限公司 | 链接跳转方法及装置 |
CN106294648B (zh) * | 2016-08-03 | 2021-07-27 | 腾讯科技(深圳)有限公司 | 一种针对页面访问路径的处理方法及装置 |
CN107391115B (zh) * | 2017-06-28 | 2018-10-23 | 武汉斗鱼网络科技有限公司 | 一种实现弹窗交互事件的方法、装置及计算机设备 |
-
2018
- 2018-02-06 CN CN201810119600.8A patent/CN108280014B/zh active Active
- 2018-04-08 WO PCT/CN2018/082160 patent/WO2019153479A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309588A (zh) * | 2013-06-19 | 2013-09-18 | 广东欧珀移动通信有限公司 | 一种防止移动终端误操作的方法、装置及系统 |
CN105335404A (zh) * | 2014-07-29 | 2016-02-17 | 北京奇虎科技有限公司 | 页面信息加载方法和装置 |
WO2017167042A1 (zh) * | 2016-04-01 | 2017-10-05 | 阿里巴巴集团控股有限公司 | 前端用户行为统计方法及装置 |
CN107368399A (zh) * | 2017-06-28 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | 一种线上网页监控方法及系统 |
CN107609184A (zh) * | 2017-09-30 | 2018-01-19 | 北京奇虎科技有限公司 | 基于网页浏览行为的数据加载方法及装置 |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061606A (zh) * | 2019-11-04 | 2020-04-24 | 深圳震有科技股份有限公司 | 一种基于浏览器的监测预警方法、终端及存储介质 |
CN111061607A (zh) * | 2019-11-25 | 2020-04-24 | 贝壳技术有限公司 | 页面白屏的监控方法及监控装置 |
CN111460350B (zh) * | 2020-04-07 | 2023-06-09 | 上海熙菱信息技术有限公司 | 一种防抖与节流封装方法及系统 |
CN111460350A (zh) * | 2020-04-07 | 2020-07-28 | 上海熙菱信息技术有限公司 | 一种防抖与节流封装方法及系统 |
CN113496003A (zh) * | 2020-04-08 | 2021-10-12 | 北京沃东天骏信息技术有限公司 | 一种确定页面停留时长的方法及装置 |
CN111831560A (zh) * | 2020-06-24 | 2020-10-27 | 平安普惠企业管理有限公司 | 应用性能指标的检测方法、装置、计算机设备和存储介质 |
CN112463519A (zh) * | 2020-11-05 | 2021-03-09 | 广州博恒信息科技有限责任公司 | 基于Flutter的页面使用行为数据无埋点统计方法、设备及存储介质 |
CN114915837B (zh) * | 2021-02-10 | 2023-08-25 | 武汉斗鱼网络科技有限公司 | 视频渲染的触发方法、装置、电子设备及存储介质 |
CN114915837A (zh) * | 2021-02-10 | 2022-08-16 | 武汉斗鱼网络科技有限公司 | 视频渲染的触发方法、装置、电子设备及存储介质 |
CN113656722A (zh) * | 2021-08-31 | 2021-11-16 | 中国银行股份有限公司 | 防h5页面误跳转方法及装置 |
CN113987318A (zh) * | 2021-11-01 | 2022-01-28 | 盐城金堤科技有限公司 | 页面监控方法、装置、设备及计算机存储介质 |
CN113987318B (zh) * | 2021-11-01 | 2024-03-12 | 盐城天眼察微科技有限公司 | 页面监控方法、装置、设备及计算机存储介质 |
CN115941866A (zh) * | 2022-12-22 | 2023-04-07 | 北斗星通智联科技有限责任公司 | 多摄像头页面切换系统、方法及车载导航 |
CN116628654A (zh) * | 2023-07-26 | 2023-08-22 | 之江实验室 | 前端页面权限控制方法、装置、设备及存储介质 |
CN116628654B (zh) * | 2023-07-26 | 2023-11-07 | 之江实验室 | 前端页面权限控制方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108280014B (zh) | 2021-03-16 |
CN108280014A (zh) | 2018-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019153479A1 (zh) | 一种监听浏览器页面的方法、装置及计算机设备 | |
US10505981B2 (en) | Techniques for detecting malicious behavior using an accomplice model | |
US11445032B2 (en) | Matching and attribution of user device events | |
US10509905B2 (en) | Ransomware mitigation system | |
US11503070B2 (en) | Techniques for classifying a web page based upon functions used to render the web page | |
CN107204989B (zh) | 广告拦截方法、终端、服务器和存储介质 | |
CN103701926A (zh) | 一种获取故障原因信息的方法、装置和系统 | |
CN110266505B (zh) | 一种管理会话群的方法与设备 | |
CN104636664B (zh) | 基于文档对象模型的跨站脚本攻击漏洞检测方法及装置 | |
CN103678502B (zh) | 信息收藏方法和装置 | |
WO2019000723A1 (zh) | 一种实现弹窗交互事件的方法、装置及计算机设备 | |
CN106156097B (zh) | 一种浏览器输入记录的处理方法及装置 | |
WO2017219293A1 (zh) | 一种获取网页内容的方法及装置 | |
US11782958B2 (en) | Multi-user cross-device tracking | |
CN104735657A (zh) | 安全终端验证方法、无线接入点绑定方法、装置及系统 | |
WO2019134284A1 (zh) | 一种用于识别用户的方法、装置及计算机设备 | |
CN110780887A (zh) | 一种提供应用安装包的方法与设备 | |
CN110768894B (zh) | 一种删除会话消息的方法与设备 | |
WO2019024275A1 (zh) | 一种加载页面的方法、装置及计算机设备 | |
US20150188932A1 (en) | Apparatus, system, and method for identifying a man-in-the-middle (mitm) connection | |
CN108804434A (zh) | 一种消息查询方法、服务器及终端设备 | |
CN109145182B (zh) | 数据采集方法、装置、计算机设备及系统 | |
US8805987B1 (en) | Ensuring a cookie-less namespace | |
CN113872921B (zh) | 网页检测方法、装置、设备及计算机可读存储介质 | |
WO2015062326A1 (zh) | 页面访问控制方法、装置及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18905016 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18905016 Country of ref document: EP Kind code of ref document: A1 |