Movatterモバイル変換


[0]ホーム

URL:


CN112019649A - Method, device and system for correcting IP address, storage medium and electronic equipment - Google Patents

Method, device and system for correcting IP address, storage medium and electronic equipment
Download PDF

Info

Publication number
CN112019649A
CN112019649ACN202010845051.XACN202010845051ACN112019649ACN 112019649 ACN112019649 ACN 112019649ACN 202010845051 ACN202010845051 ACN 202010845051ACN 112019649 ACN112019649 ACN 112019649A
Authority
CN
China
Prior art keywords
address
click
client
exposure
correcting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010845051.XA
Other languages
Chinese (zh)
Other versions
CN112019649B (en
Inventor
张其科
刘沛
李大圣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Minglue Zhaohui Technology Co Ltd
Original Assignee
Beijing Minglue Zhaohui Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Minglue Zhaohui Technology Co LtdfiledCriticalBeijing Minglue Zhaohui Technology Co Ltd
Priority to CN202010845051.XApriorityCriticalpatent/CN112019649B/en
Publication of CN112019649ApublicationCriticalpatent/CN112019649A/en
Application grantedgrantedCritical
Publication of CN112019649BpublicationCriticalpatent/CN112019649B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a method, a device and a system for correcting an IP address, a storage medium and electronic equipment, and belongs to the field of computers. Wherein, the method comprises the following steps: monitoring a click event of a client aiming at a media resource; when the click event occurs, obtaining a historical exposure IP from a cache of the client, wherein the historical exposure IP is a user IP stored when the viewing event of the client is monitored in historical time; and correcting the click IP of the click event according to the historical exposure IP. The invention solves the technical problem that the exposure IP of the monitoring user is inconsistent with the click IP in the related technology, avoids the IP deviation and improves the stability and the accuracy of the IP monitoring system.

Description

Method, device and system for correcting IP address, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method, a device and a system for correcting an IP address, a storage medium and electronic equipment.
Background
When the related art performs regional analysis on the click behavior of the media resource on the media server, the user IP of the client often needs to be acquired, and then the region is analyzed according to the IP address, and if the IP address is wrong, the region analysis is wrong or the analysis fails.
In the related art, a user triggers an exposure monitoring code and clicks the monitoring code at the same time in a very short time, and different IPs are obtained on an acquisition server with a certain probability due to the difference in the user network environment, the resolution of the DNS, or the server location where the click code is exposed. The same user obtains different IPs at different servers, which may cause IP bias in a series of data in the future. In the related art, generally, which IP is used when the IP is received, that is, one of the IPs is randomly used as the user IP, and it is not possible to distinguish between an exposure IP and a click IP, nor between IPv4 and IPv6, and thus when the exposure IP and the click IP are different, or the network protocols are different, the analyzed user IPs are inconsistent, resulting in IP deviation.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system, a storage medium and electronic equipment for correcting an IP address.
According to an aspect of an embodiment of the present application, there is provided a method for correcting an IP address, including: monitoring a click event of a client aiming at a media resource; when the click event occurs, obtaining a historical exposure IP from a cache of the client, wherein the historical exposure IP is a user IP stored when the viewing event of the client is monitored in historical time; and correcting the click IP of the click event according to the historical exposure IP.
Further, before obtaining the historical exposure IP from the cache of the client, the method further includes: monitoring a viewing event of the client for the media asset; when the watching event occurs, acquiring a user IP of the client; and determining the user IP as the exposure IP of the viewing event, and storing the exposure IP in a cache of the client.
Further, obtaining the historical exposure IP from the cache of the client includes: acquiring an IP address list from a cache of the client; judging whether a legal first IP address of an IPv4 version exists in the IP address list or not; if a legal first IP address of the IPv4 version exists, determining the first IP address as the historical exposure IP; and if the first IP address of the legal IPv4 version does not exist, determining the second IP address of the legal IPv6 version in the IP address list as the historical exposure IP.
Further, correcting the click IP of the click event according to the historical exposure IP comprises: replacing the original IP field of the clicked IP with the target IP field of the historical exposure IP; analyzing a first IP address type in a click request message of the click event and a second IP address type of the historical exposure IP; and correcting the network protocol of the click IP according to the first IP address type and the second IP address type.
Further, correcting the network protocol of the click to IP according to the first IP address type and the second IP address type includes: if the IP address type is IPv4 and the historical exposure IP is IPv4, correcting the click IP to be IPv 4; if the IP address type is IPv4 and the historical exposure IP is IPv6, correcting the click IP to be IPv 6; if the IP address type is IPv6 and the historical exposure IP is IPv4, correcting the click IP to be IPv 4; and if the IP address type is IPv6 and the historical exposure IP is IPv6, correcting the click IP to be IPv 6.
Further, obtaining the historical exposure IP from the cache of the client includes: acquiring an IP address list from a cache of the client; judging whether a legal first IP address of an IPv6 version exists in the IP address list or not; if a legal first IP address of the IPv6 version exists, determining the first IP address as the historical exposure IP; and if the first IP address of the legal IPv6 version does not exist, determining the second IP address of the legal IPv4 version in the IP address list as the historical exposure IP.
Further, after correcting the click IP of the click event according to the historical exposure IP, the method further comprises: analyzing the region range of the client according to the click IP; and determining the region range as the region range for clicking the media resource.
According to another aspect of the embodiments of the present application, there is also provided an IP address correction apparatus, including: the first monitoring module is used for monitoring a click event of the client aiming at the media resource; a first obtaining module, configured to obtain a historical exposure IP from a cache of the client when the click event occurs, where the historical exposure IP is a user IP stored when a viewing event of the client is monitored at a historical time; and the correction module is used for correcting the click IP of the click event according to the historical exposure IP.
Further, the apparatus further comprises: a second monitoring module, configured to monitor a viewing event of the client for the media resource before the first monitoring module obtains a historical exposure IP from a cache of the client; the second acquisition module is used for acquiring the user IP of the client when the watching event occurs; and the processing module is used for determining the user IP as the exposure IP of the viewing event and storing the exposure IP in the cache of the client.
Further, the first obtaining module comprises: the obtaining unit is used for obtaining an IP address list from the cache of the client; a first judging unit, configured to judge whether a legal IPv4 version first IP address exists in the IP address list; a first determining unit, configured to determine, if a valid first IP address of an IPv4 version exists, the first IP address as the historical exposure IP; and if the first IP address of the legal IPv4 version does not exist, determining the second IP address of the legal IPv6 version in the IP address list as the historical exposure IP.
Further, the first obtaining module comprises: the obtaining unit is used for obtaining an IP address list from the cache of the client; a second judging unit, configured to judge whether a legal first IP address of an IPv6 version exists in the IP address list; a second determining unit, configured to determine, if a valid first IP address of an IPv6 version exists, the first IP address as the historical exposure IP; and if the first IP address of the legal IPv6 version does not exist, determining the second IP address of the legal IPv4 version in the IP address list as the historical exposure IP.
Further, the correction module includes: the replacing unit is used for replacing the original IP field of the click IP with the target IP field of the historical exposure IP; the analysis unit is used for analyzing a first IP address type in a click request message of the click event and a second IP address type of the historical exposure IP; and the correcting unit is used for correcting the network protocol of the click IP according to the first IP address type and the second IP address type.
Further, the correction unit includes: a first syndrome unit, configured to correct the click IP to IPv4 if the IP address type is IPv4 and the historical exposure IP is IPv 4; a second correcting subunit, configured to correct the click IP to IPv6 if the IP address type is IPv4 and the historical exposure IP is IPv 6; a third syndrome unit, configured to correct the click IP to IPv4 if the IP address type is IPv6 and the historical exposure IP is IPv 4; and the fourth syndrome unit is used for correcting the click IP into IPv6 if the IP address type is IPv6 and the historical exposure IP is IPv 6.
Further, the apparatus further comprises: the analysis module is used for analyzing the region range of the client according to the click IP after the correction module corrects the click IP of the click event according to the historical exposure IP; and the determining module is used for determining the region range as the region range for clicking the media resource.
According to another aspect of the embodiments of the present application, there is also provided an IP address correction system, including: the system comprises a media server, a monitoring server and a client, wherein the media server is connected with the client, is deployed with an exposure monitoring script and a click monitoring script and is used for monitoring click events and exposure events on the client; the monitoring server is connected with the media server and comprises the device described in the embodiment.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
According to the invention, the click event of the media resource is monitored by the client, when the click event occurs, the historical exposure IP corresponding to the viewing event is obtained from the cache of the client, the click IP of the click event is corrected according to the historical exposure IP, and the click IP of the click event is corrected by using the historical exposure IP, so that the consistency of the user IP in the click event and the viewing event can be ensured, the technical problem that the exposure IP of the monitoring user is inconsistent with the click IP in the related technology is solved, the IP deviation is avoided, and the stability and the accuracy of an IP monitoring system are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a server according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for correcting an IP address according to an embodiment of the present invention;
FIG. 3 is a flow chart of resolving an IP address of an embodiment of the present invention;
fig. 4 is a block diagram of a correction apparatus for an IP address according to an embodiment of the present invention;
fig. 5 is a block diagram of a system for correcting an IP address according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device implementing an embodiment of the invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The method provided by the embodiment one of the present application may be executed in a server, a computer, or a similar computing device. Taking an example of the server running on the server, fig. 1 is a hardware structure block diagram of a server according to an embodiment of the present invention. As shown in fig. 1, the server 10 may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include atransmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and is not intended to limit the structure of the server. For example, the server 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a server program, for example, a software program and a module of application software, such as a server program corresponding to a method for correcting an IP address in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the server program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to server 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Thetransmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 10. In one example, thetransmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, thetransmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for correcting an IP address is provided, and fig. 2 is a flowchart of a method for correcting an IP address according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, monitoring a click event of a client aiming at a media resource;
in this embodiment, by deploying a script for clicking a monitoring code on a media server, when a user clicks a media resource on the media server through a client, such as a video, a picture, and other content, the user is actively triggered, and through interaction with the monitoring server, the monitoring server can receive a corresponding user behavior log, where the user behavior log includes information such as but not limited to a user cookie, ip, and user agent (user agent), and data related to a monitoring activity.
Step S204, when a click event occurs, acquiring a historical exposure IP from a cache of the client, wherein the historical exposure IP is a user IP stored when the viewing event of the client is monitored in historical time;
since a user must open and present a media resource in a browser or APP when clicking on the media resource on a client, and then click (e.g., click on a video of interest) after viewing the media resource, the historical exposure IP obtained in the cache (e.g., cookie) of the client is the user IP of the viewing event before the click event occurs.
In step S206, the click IP of the click event is corrected according to the historical exposure IP.
In the embodiment, the historical exposure IP is taken as a reference, the click IP of the click event is corrected to be consistent with the exposure IP, and the consistency of the user IP is ensured.
Through the steps, the click event of the client aiming at the media resource is monitored, when the click event occurs, the historical exposure IP corresponding to the watching event is obtained from the cache of the client, the click IP of the click event is corrected according to the historical exposure IP, and the click IP of the click event is corrected by using the historical exposure IP, so that the consistency of the user IP in the click event and the watching event can be ensured, the technical problem that the exposure IP of the monitoring user is inconsistent with the click IP in the related technology is solved, the IP deviation is avoided, and the stability and the accuracy of an IP monitoring system are improved.
In another aspect of this embodiment, the exposure IP may also be obtained through the exposure monitoring code, and before obtaining the historical exposure IP from the cache of the client, the method further includes: monitoring a viewing event of a client for a media asset; when a watching event occurs, acquiring a user IP of a client; the user IP is determined as the exposure IP of the viewing event and the exposure IP is stored in the cache of the client.
In this embodiment, by deploying the exposure monitoring code on the media server, when the user views media resources on the media, such as video, pictures, and other contents, the user is automatically triggered, and through interaction with the monitoring server, the monitoring server can receive a corresponding user behavior log, where the user behavior log includes but is not limited to a user cookie, ip, a user agent, and data related to monitoring activities.
When the exposure monitoring code is triggered, the current user IP is stored in the browser cookie of the user or the application data of the APP. When the monitoring code is clicked and triggered, the server can find the pre-exposed IP from the cookie of the browser of the user, and the IP during exposure is used as the user IP during the click so as to ensure the consistency of the user IP.
In some examples of this embodiment, the media resource sets the codes of the click event and the view event, and only triggers the monitoring code of one event due to network anomaly, network switch, etc., such as only monitoring the click event, in this case, the historical exposure IP (if any) is obtained from the cache of the client, and the click IP of the click event is corrected according to the historical exposure IP, in the case that there is no historical exposure IP in the cache, the user IP of the client is obtained and determined as the click IP of the click event, in another scenario, such as only monitoring the view event, in this case, the exposure IP of the current view event is taken as the final user IP, in yet another scenario, both the click event and the view event are triggered, but the view event is triggered after the click event, in this case, the historical exposure IP is obtained from the cache of the client, and correcting the click IP of the click event by using the historical exposure IP, comparing the corrected click IP with the exposure IP of the current viewing event, if the corrected click IP is consistent with the exposure IP of the current viewing event, selecting one of the corrected click IP and the current viewing event, and if the corrected click IP is inconsistent with the current viewing event, selecting the exposure IP as the final user IP.
In this embodiment, a plurality of IP addresses, different IP addresses in the IP address list, or IP addresses of different versions (network protocols) may be stored in the cache of the client, in this case, the present embodiment sets the priority of the network protocol, such as preferentially selecting the version of IPv4 or preferentially selecting the version of IPv6, and in the case of consistent versions, the IP address may be selected according to the storing time, such as selecting the most recently stored IP address.
In an implementation manner of this embodiment, the obtaining the historical exposure IP from the cache of the client includes: acquiring an IP address list from a cache of a client; judging whether a legal first IP address of the IPv4 version exists in the IP address list or not; if a legal first IP address of the IPv4 version exists, determining the first IP address as a historical exposure IP; and if the first IP address of the legal IPv4 version does not exist, determining the second IP address of the legal IPv6 version in the IP address list as the historical exposure IP.
In another implementation of this embodiment, the obtaining the historical exposure IP from the cache of the client includes: acquiring an IP address list from a cache of a client; judging whether a legal first IP address of the IPv6 version exists in the IP address list or not; if a legal first IP address of the IPv6 version exists, determining the first IP address as a historical exposure IP; and if the first IP address of the legal IPv6 version does not exist, determining the second IP address of the legal IPv4 version in the IP address list as the historical exposure IP.
In this embodiment, IPv4(Internet Protocol version 4, also called fourth edition of Internet communication Protocol) is the fourth revision in the development process of Internet Protocol, and is the first widely deployed version of this Protocol. The IPv4 is the core of the Internet, and is also the most widely used Internet Protocol Version, and its successor Version is IPv6(Internet Protocol Version 6), which is the next generation IP Protocol designed by the Internet Engineering Task Force (IETF) to replace IPv4, and the number of addresses is more than IPv4, and reaches 2^128, and in the current network environment, IPv6 is widely popularized, but most of the IP in the real network is IPv4, and IPv4 to IPv6 are long-term switching processes, and the IP of the two protocols coexist for a considerable time, and the address length of IPv6 is 128 bits, which is 4 times the address length of IPv4, so that the analysis algorithm of the IP address of IPv6 is more complex during analysis. However, with the development of IPv6, IPv4 is gradually replaced, so that the positions of IPv6 and IPv4 may possibly be changed.
In one embodiment of the present embodiment, correcting the click IP of the click event according to the historical exposure IP includes:
s11, replacing the original IP field of the clicked IP with the target IP field of the historical exposure IP;
s12, analyzing the first IP address type and the second IP address type of the historical exposure IP in the click request message of the click event;
and S13, correcting the network protocol of the click IP according to the first IP address type and the second IP address type.
In one implementation of this embodiment, the network protocol for correcting the click to IP according to the first IP address type and the second IP address type includes: if the IP address type is IPv4 and the historical exposure IP is IPv4, correcting the click IP to be IPv 4; if the IP address type is IPv4 and the historical exposure IP is IPv6, correcting the click IP to be IPv 6; if the IP address type is IPv6 and the historical exposure IP is IPv4, correcting the click IP to be IPv 4; if the IP address type is IPv6 and the historical exposure IP is IPv6, the click IP is corrected to be IPv 6.
In the embodiment, the conversion of the network protocol is decimal and hexadecimal, the IPv4 is decimal, and the IPv6 is hexadecimal. In one example, an example of IPv4 is: 192.168.0.118, IPv4 is decimal, so IPv6 converted to hexadecimal becomes: 192.168.0.118 → 0000: 0000: 0000: 0000: 0000: 0000: c0a8:0076, wherein 0 can be omitted, and the formula is c0a8:0076 or c0a8:0: 76. IPv6 is hexadecimal, the conversion process is the reverse of the above, so IPv4 converted to decimal becomes: c0 ═ 192: a8 ═ 168: 0-00: 118 ═ 76.
Fig. 3 is a flowchart of analyzing an IP address according to an embodiment of the present invention, where after a click event of a user is monitored, an address type (IPv4 or IPv6) of the IP address carried in a click request message is determined, and then whether an exposure correction IP (an exposure IP stored in a Cookie) exists and the address type of the exposure correction IP are further determined, and finally, the IP address is analyzed using a corresponding IP library.
The exposure correction IP of this embodiment is an IP (corresponding to a click event) that corrects a click through an exposed IP (corresponding to a view event), and is based on an IP of a user during exposure.
When obtaining the exposure IP, analyzing the exposure log, if the IPv4 IP in the log is legal, using the IP of IPv 4; otherwise, using IP of IPv 6; when the click IP is obtained, by analyzing the click log, firstly, according to the rule of the exposure log (which IP address of which network protocol is used preferentially), determining which IP type is used, wherein the priority of the exposure correction IP is greater than that of the click IP, and the priority of the IPv4 is greater than that of the IPv6, and the method comprises the following processing rules:
the click request is IPv4, the exposure correction IP is IPv4, and the click IP is corrected to be IPv 4;
the click request is IPv4, the exposure correction IP is IPv6, and the click IP is corrected to be IPv 6;
the click request is IPv6, the exposure correction IP is IPv4, and the click IP is corrected to be IPv 4;
the click request is IPv6, the exposure correction IP is IPv6, and the click IP is corrected to IPv 6.
Optionally, after the click IP of the click event is corrected according to the historical exposure IP, the corrected click IP may be used to analyze the regional distribution of the media resource. The method comprises the following steps: analyzing the region range of the client according to the IP clicking; and determining the region range as the region range of the media resource clicking. If the media resource is IPv4, the IP library IPv4 is used for analyzing the region, and if the media resource is IPv6, the IP library IPv6 is used for analyzing the region, so that the region range of clicking the media resource, such as which province clicks for how many times, and the like, can be accurately obtained.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device and a system for correcting an IP address are also provided, which are used to implement the foregoing embodiments and preferred embodiments, and are not described again after being described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a structure of an apparatus for correcting an IP address according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a monitoring module 40, anacquisition module 42, acorrection module 44, wherein,
the monitoring module 40 is used for monitoring click events of the client aiming at the media resources;
an obtainingmodule 42, configured to obtain a historical exposure IP from a cache of the client when the click event occurs, where the historical exposure IP is a user IP stored when a viewing event of the client is monitored in a historical time;
and the correctingmodule 44 is configured to correct the click IP of the click event according to the historical exposure IP.
Optionally, the apparatus further comprises: a second monitoring module, configured to monitor a viewing event of the client for the media resource before the first monitoring module obtains a historical exposure IP from a cache of the client; the second acquisition module is used for acquiring the user IP of the client when the watching event occurs; and the processing module is used for determining the user IP as the exposure IP of the viewing event and storing the exposure IP in the cache of the client.
Optionally, the first obtaining module includes: the obtaining unit is used for obtaining an IP address list from the cache of the client; a first judging unit, configured to judge whether a legal IPv4 version first IP address exists in the IP address list; a first determining unit, configured to determine, if a valid first IP address of an IPv4 version exists, the first IP address as the historical exposure IP; and if the first IP address of the legal IPv4 version does not exist, determining the second IP address of the legal IPv6 version in the IP address list as the historical exposure IP.
Optionally, the first obtaining module includes: the obtaining unit is used for obtaining an IP address list from the cache of the client; a second judging unit, configured to judge whether a legal first IP address of an IPv6 version exists in the IP address list; a second determining unit, configured to determine, if a valid first IP address of an IPv6 version exists, the first IP address as the historical exposure IP; and if the first IP address of the legal IPv6 version does not exist, determining the second IP address of the legal IPv4 version in the IP address list as the historical exposure IP.
Optionally, the correction module includes: the replacing unit is used for replacing the original IP field of the click IP with the target IP field of the historical exposure IP; the analysis unit is used for analyzing a first IP address type in a click request message of the click event and a second IP address type of the historical exposure IP; and the correcting unit is used for correcting the network protocol of the click IP according to the first IP address type and the second IP address type.
Optionally, the correction unit includes: a first syndrome unit, configured to correct the click IP to IPv4 if the IP address type is IPv4 and the historical exposure IP is IPv 4; a second correcting subunit, configured to correct the click IP to IPv6 if the IP address type is IPv4 and the historical exposure IP is IPv 6; a third syndrome unit, configured to correct the click IP to IPv4 if the IP address type is IPv6 and the historical exposure IP is IPv 4; and the fourth syndrome unit is used for correcting the click IP into IPv6 if the IP address type is IPv6 and the historical exposure IP is IPv 6.
Optionally, the apparatus further comprises: the analysis module is used for analyzing the region range of the client according to the click IP after the correction module corrects the click IP of the click event according to the historical exposure IP; and the determining module is used for determining the region range as the region range for clicking the media resource.
Fig. 5 is a block diagram of a structure of a system for correcting an IP address according to an embodiment of the present invention, as shown in fig. 5, the system includes: the system comprises a media server 50, a monitoring server 52 and a client 54, wherein the media server is connected with the client, is deployed with an exposure monitoring script and a click monitoring script, is used for monitoring click events and exposure events on the client, interacts with the monitoring server and sends user behavior logs to the monitoring server; the monitoring server is connected with the media server and comprises the device described in the embodiment.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, monitoring the click event of the client aiming at the media resource;
s2, when the click event occurs, obtaining a historical exposure IP from the cache of the client, wherein the historical exposure IP is a user IP stored when the viewing event of the client is monitored in historical time;
and S3, correcting the click IP of the click event according to the historical exposure IP.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, monitoring the click event of the client aiming at the media resource;
s2, when the click event occurs, obtaining a historical exposure IP from the cache of the client, wherein the historical exposure IP is a user IP stored when the viewing event of the client is monitored in historical time;
and S3, correcting the click IP of the click event according to the historical exposure IP.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Fig. 6 is a block diagram of an electronic device implementing an embodiment of the invention. As shown in fig. 6, the device includes aprocessor 41 and amemory 42 for storing data, which are connected by acommunication bus 44, and acommunication interface 43 connected to thecommunication bus 44 and adapted to connect with other components or external devices.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

CN202010845051.XA2020-08-202020-08-20Method, device and system for correcting IP address, storage medium and electronic equipmentActiveCN112019649B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010845051.XACN112019649B (en)2020-08-202020-08-20Method, device and system for correcting IP address, storage medium and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010845051.XACN112019649B (en)2020-08-202020-08-20Method, device and system for correcting IP address, storage medium and electronic equipment

Publications (2)

Publication NumberPublication Date
CN112019649Atrue CN112019649A (en)2020-12-01
CN112019649B CN112019649B (en)2023-01-31

Family

ID=73504381

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010845051.XAActiveCN112019649B (en)2020-08-202020-08-20Method, device and system for correcting IP address, storage medium and electronic equipment

Country Status (1)

CountryLink
CN (1)CN112019649B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114866511A (en)*2022-04-282022-08-05中国电信股份有限公司Method, device, system and storage medium for statistical communication protocol deployment

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101075908A (en)*2006-11-082007-11-21腾讯科技(深圳)有限公司Method and system for accounting network click numbers
US20100131353A1 (en)*2007-04-262010-05-27Nhn Business Platform CorporationMethod for processing invalid click and system for executing the method
CN103514178A (en)*2012-06-182014-01-15阿里巴巴集团控股有限公司Searching and sorting method and device based on click rate
CN103577494A (en)*2012-08-092014-02-12腾讯科技(深圳)有限公司Light exposure determining method, device and system
US20140342772A1 (en)*2013-09-122014-11-20Bandwidth.Com, Inc.Predictive Caching of IP Data
CN104468771A (en)*2014-12-032015-03-25北京国双科技有限公司Method and device for determining geographical position
CN105653724A (en)*2016-01-202016-06-08北京京东尚科信息技术有限公司Page exposure monitoring method and device
CN105869021A (en)*2016-04-052016-08-17乐视控股(北京)有限公司Internet advertisement putting method and apparatus
CN105978852A (en)*2016-04-142016-09-28北京北信源软件股份有限公司Network equipment access history information determination method, equipment and switch
CN106899548A (en)*2015-12-172017-06-27北京奇虎科技有限公司A kind of IP address modification method and device
US10559009B1 (en)*2013-03-152020-02-11Semcasting, Inc.System and method for linking qualified audiences with relevant media advertising through IP media zones

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101075908A (en)*2006-11-082007-11-21腾讯科技(深圳)有限公司Method and system for accounting network click numbers
US20100131353A1 (en)*2007-04-262010-05-27Nhn Business Platform CorporationMethod for processing invalid click and system for executing the method
CN103514178A (en)*2012-06-182014-01-15阿里巴巴集团控股有限公司Searching and sorting method and device based on click rate
CN103577494A (en)*2012-08-092014-02-12腾讯科技(深圳)有限公司Light exposure determining method, device and system
US10559009B1 (en)*2013-03-152020-02-11Semcasting, Inc.System and method for linking qualified audiences with relevant media advertising through IP media zones
US20140342772A1 (en)*2013-09-122014-11-20Bandwidth.Com, Inc.Predictive Caching of IP Data
CN104468771A (en)*2014-12-032015-03-25北京国双科技有限公司Method and device for determining geographical position
CN106899548A (en)*2015-12-172017-06-27北京奇虎科技有限公司A kind of IP address modification method and device
CN105653724A (en)*2016-01-202016-06-08北京京东尚科信息技术有限公司Page exposure monitoring method and device
CN105869021A (en)*2016-04-052016-08-17乐视控股(北京)有限公司Internet advertisement putting method and apparatus
CN105978852A (en)*2016-04-142016-09-28北京北信源软件股份有限公司Network equipment access history information determination method, equipment and switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
崔宏娟等: "基于Web日志挖掘的欺骗点击检测模型", 《科学技术与工程》*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114866511A (en)*2022-04-282022-08-05中国电信股份有限公司Method, device, system and storage medium for statistical communication protocol deployment
CN114866511B (en)*2022-04-282025-02-14中国电信股份有限公司 Method, device, system and storage medium for statistical communication protocol deployment

Also Published As

Publication numberPublication date
CN112019649B (en)2023-01-31

Similar Documents

PublicationPublication DateTitle
US11960388B2 (en)System and method for data collection and analysis of information relating to mobile applications
CN113010378B (en)Log processing method and device of microservice module, storage medium and electronic device
CN110727697B (en)Data processing method and device, storage medium and electronic device
CN109327357B (en)Feature extraction method and device of application software and electronic equipment
EP3584756A1 (en)Advertisement monitoring method, device and system
CN111930472A (en)Code debugging method and device, electronic equipment and storage medium
CN115865758B (en)Method, device, equipment and storage medium for determining timeout time of network communication
CN109041267B (en) A network connection fault processing method, device and electronic device
CN101808018A (en)Method and device for detecting quantity of access terminals
CN112019649B (en)Method, device and system for correcting IP address, storage medium and electronic equipment
CN113973111A (en)Data forwarding method and device, gateway equipment and computer readable storage medium
CN110445658B (en)Message processing method and system
EP2552050A2 (en)Methods for handling multiple device management (dm) server addresses in a dm account management object (mo)
CN111026995A (en)Method and device for information association between applications and storage medium
CN113179251B (en)Front-end file processing method, device, equipment and machine-readable storage medium
CN112671615B (en)Method, system and storage medium for collecting front-end user operation behavior data
CN110391950A (en)A kind of application service test method and device
CN115878443A (en) Method and device for generating interface test script, storage medium and electronic device
CN112650815A (en)Method and device for synchronizing environmental data, storage medium and electronic device
CN111782291A (en)Test page starting method and device
CN115277408B (en)Agent configuration information updating method, device, equipment and storage medium
CN110381018B (en)Data processing method, computer device and storage medium
CN113434399B (en)Service node log processing method and device, storage medium and electronic device
CN115442327A (en)Method and device for identifying device type, electronic device and storage medium
TWM670050U (en) Robotic process automation information security blacklist management device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp