CN109688095B - Method, device and equipment for acquiring flow source information and readable storage medium - Google Patents

Method, device and equipment for acquiring flow source information and readable storage medium Download PDF

Info

Publication number
CN109688095B
CN109688095B CN201811041958.XA CN201811041958A CN109688095B CN 109688095 B CN109688095 B CN 109688095B CN 201811041958 A CN201811041958 A CN 201811041958A CN 109688095 B CN109688095 B CN 109688095B
Authority
CN
China
Prior art keywords
browser
access request
user side
sent
side based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811041958.XA
Other languages
Chinese (zh)
Other versions
CN109688095A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811041958.XA priority Critical patent/CN109688095B/en
Publication of CN109688095A publication Critical patent/CN109688095A/en
Application granted granted Critical
Publication of CN109688095B publication Critical patent/CN109688095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/102Entity profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device, equipment and a readable storage medium for acquiring flow source information, wherein the method comprises the following steps: when a first access request is received, judging whether the first access request is sent by a user side based on a browser; if yes, judging whether a target cache file is stored in the browser or not; if the target cache file is not stored, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a communication link established by a received user side through the browser; receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring associated information of the user side, wherein after the browser receives the target cache file, the user side sends the second access request based on the browser. The invention solves the technical problem that the existing website is difficult to accurately acquire the flow source information.

Description

Method, device and equipment for acquiring flow source information and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for acquiring traffic source information.
Background
At present, a cloud acceleration function is built in many browser applications in the market, a target website can be quickly accessed from a background server corresponding to a browser through cloud acceleration, and a cache page of the target website can be quickly loaded. Wherein, in the cloud accelerated access process, a corresponding communication link is established with a target website through a browser application, that is, the user inputs the web address of the target website in the search bar of the browser but does not complete the whole input of the web address of the target website, the browser can perform preloading according to the partial web addresses already input, during the preloading process, the user's request is also forwarded from the corresponding server side of the browser, and thus, for the target website, the acquired request information is the relevant information of the browser application, not the information of the real access user, for example, the user accesses the kyoto through the UC browser, the kyoto obtains the relevant information of the UC browser, but not the real user related information, which causes the technical problem that the target website cannot acquire the real user information, i.e. the traffic source information of the target website is difficult to accurately acquire.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for acquiring flow source information and a readable storage medium, and aims to solve the technical problem that the existing website is difficult to accurately acquire the flow source information.
In order to achieve the above object, the present invention provides a method for acquiring traffic source information, including:
when a first access request is received, judging whether the first access request is sent by a user side based on a browser;
if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser;
if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser;
receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring associated information of the user side based on the second link, wherein after the browser receives the target cache file, the user side sends the second access request based on the browser.
Optionally, if the first access request is sent by the user side based on a browser, the step of determining whether the browser stores the target cache file includes:
if the first access request is sent by the user side based on the browser, judging whether the first access request is sent by the user side based on browser cloud acceleration;
if the first access request is sent by the user side based on browser cloud acceleration, judging that a target cache file is not stored in the browser;
and if the first access request is not sent by the user side based on browser cloud acceleration, judging that a target cache file is stored in the browser.
Optionally, if the first access request is sent by the user side based on a browser, the step of determining whether the first access request is sent by the user side based on a browser cloud acceleration includes:
acquiring request time and request address information carried by the first access request;
judging whether the browser requests other address information associated with the request address in a corresponding first preset time period before the request time, wherein the other address information and the request address have the same preorder address information;
and if the browser requests other address information associated with the request address in a corresponding first preset time period before the request time, determining that the first access request is sent by the user side based on browser cloud acceleration.
Optionally, the method for obtaining traffic source information is applied to a server side corresponding to a website, and the step of establishing a second link with a user side based on the second access request and obtaining associated information of the user side based on the second link includes:
acquiring the total flow source number counted by the server in a second preset time period, and acquiring the user side number from the browser counted by the server in the second preset time period to obtain a ratio of the user side number from the browser to the total flow source number;
acquiring the association relation between the pre-stored ratio and the wind control resource allocation of the server side;
and correspondingly distributing the wind control resources of the server side based on the ratio and the incidence relation.
Optionally, when the first access request is received, the step of determining whether the first access request is sent by the user side based on a browser includes:
and if the first access request is not sent by the user side based on the browser, directly establishing a second link with the user side, and acquiring the associated information of the user side based on the second link.
Optionally, when receiving the first access request, the step of determining whether the first access request is sent by the user side based on a browser includes:
when a first access request is received, judging whether the first access request carries a browser identifier or not;
if the first access request carries a browser identifier, determining that the first access request is sent by a user side based on a browser;
and if the first access request does not carry the browser identifier, judging that the first access request is not sent by the user side based on the browser.
Optionally, the step of obtaining the association information of the user terminal based on the second link includes:
and acquiring user IP address information, login name information and historical login information of the user side based on the second link.
The present invention also provides a traffic source information acquiring apparatus, including:
the traffic source information acquisition device includes:
the first judging module is used for judging whether a first access request is sent by a user side based on a browser or not when the first access request is received;
the second judging module is used for judging whether a target cache file is stored in the browser or not if the first access request is sent by the user side based on the browser;
the disconnection module is used for feeding back the target cache file to the browser and disconnecting a first link with the browser if the target cache file is not stored in the browser, wherein the first link is a received tcp communication link established by a user side through the browser;
the receiving module is used for receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring the associated information of the user side based on the second link.
Optionally, the second determining module includes:
the first judging unit is used for judging whether the first access request is sent by the user side based on browser cloud acceleration or not if the first access request is sent by the user side based on the browser;
the first judging unit is used for judging that a target cache file is not stored in the browser if the first access request is sent by the user side based on browser cloud acceleration;
and the second judging unit is used for judging that the target cache file is stored in the browser if the first access request is not sent by the user side based on browser cloud acceleration.
Optionally, the first judging unit includes:
the obtaining subunit is configured to obtain request time and request address information carried by the first access request;
a judging subunit, configured to judge whether the browser has requested other address information associated with the request address within a first preset time period before the request time, where the other address information and the request address have the same pre-order address information;
and the judging subunit is configured to judge that the first access request is sent by the user side based on browser cloud acceleration if the browser requests other address information associated with the request address within a corresponding first preset time period before the request time.
Optionally, the traffic source information obtaining apparatus further includes:
the first obtaining module is used for obtaining the total traffic source number counted by the server end in a second preset time period and obtaining the user side number counted by the server end in the second preset time period and derived from the browser so as to obtain the ratio of the user side number derived from the browser to the total traffic source number;
the second acquisition module is used for acquiring the association relation between the pre-stored ratio and the wind control resource allocation of the server side;
and the distribution module is used for correspondingly distributing the wind control resources of the server side based on the ratio and the incidence relation.
Optionally, the traffic source information obtaining apparatus further includes:
and the third obtaining module is used for directly establishing a second link with the user side if the first access request is not sent by the user side based on the browser, and obtaining the associated information of the user side based on the second link.
Optionally, the first determining module includes:
the second judging unit is used for judging whether the first access request carries a browser identifier or not when the first access request is received;
a third determining unit, configured to determine that the first access request is sent by the user side based on the browser if the first access request carries the browser identifier;
a fourth determining unit, configured to determine that the first access request is not sent by the user side based on the browser if the first access request does not carry the browser identifier.
Optionally, the receiving module includes:
and the acquisition unit is used for acquiring the user IP address information, the login name information and the historical login information of the user side based on the second link.
In addition, to achieve the above object, the present invention further provides a traffic source information acquiring apparatus, including: a memory, a processor, a communication bus, and a traffic source information acquisition program stored on the memory,
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the traffic source information obtaining program to implement the following steps:
when a first access request is received, judging whether the first access request is sent by a user side based on a browser;
if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser;
if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser;
receiving a second access request sent by the user side based on a browser, establishing a second link with the user side based on the second access request, and acquiring associated information of the user side based on the second link, wherein after the browser receives the target cache file, the user side sends the second access request based on the browser.
Further, to achieve the above object, the present invention also provides a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
when a first access request is received, judging whether the first access request is sent by a user side based on a browser;
if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser;
if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser;
receiving a second access request sent by the user side based on a browser, establishing a second link with the user side based on the second access request, and acquiring associated information of the user side based on the second link, wherein after the browser receives the target cache file, the user side sends the second access request based on the browser.
The method comprises the steps that when a first access request is received, whether the first access request is sent by a user side based on a browser is judged; if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser; if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser; receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring the associated information of the user side based on the second link. That is, in the present application, if it is detected that the first access request is sent by the client based on the browser and no target cache file is stored in the browser, after the access request is detected, the target cache file is fed back to the browser, and the link with the browser is disconnected to receive a second access request sent by the client based on the browser, so as to directly establish a second link with the client, where after the browser receives the target cache file, the client sends the second access request based on the browser, and therefore, for the target website, since the second link with the client is directly established instead of establishing a link through the browser, real user-related information can be obtained, and therefore, the target website can accurately obtain a traffic source of the target website, therefore, the technical problem that the website is difficult to accurately acquire the traffic source information in the prior art is solved.
Drawings
Fig. 1 is a schematic flow chart illustrating a traffic source information obtaining method according to a first embodiment of the present invention;
fig. 2 is a schematic view of a detailed flow of a step of determining whether a target cache file is stored in a browser if the first access request is sent by a user based on the browser in the traffic source information obtaining method according to the present invention;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first embodiment of the traffic source information obtaining method of the present invention, referring to fig. 1, the traffic source information obtaining method includes:
step S10, when receiving a first access request, judging whether the first access request is sent by a user side based on a browser;
step S20, if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser;
step S30, if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser;
step S40, receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and obtaining associated information of the user side based on the second link, where after the browser receives the target cache file, the user side sends the second access request based on the browser.
The method comprises the following specific steps:
step S10, when receiving a first access request, judging whether the first access request is sent by a user side based on a browser;
it should be noted that, in the present embodiment, the information related to the browser, the client, and the target website, wherein, when the user communicates with the target website through the browser, the user can directly establish tcp communication with the target website, or can establish a network link for communication with the target website through the server corresponding to the browser, i.e., a first communication link, wherein if the target site establishes tcp communication directly with the client, the server of the target site can access the target site based on the access request from the client, thereby acquiring the actual IP related information of the user terminal, and if the server of the target website acquires the access request of the browser, the access request of the browser can be triggered by a user side access request, and a network link for communication is established between a server side corresponding to the browser and a target website, so that server side information corresponding to the browser is acquired.
In this embodiment, the traffic source information obtaining method is applied to a target website, for the target website, traffic may be a user side that searches for the target website through a browser, or a user side that searches for an official application of the target website, and for the user side that searches for the official application of the target website, the target website may be accurately counted, and for the user side that searches for the target website through the browser, because the browser may start a function such as cloud acceleration, the target website is difficult to obtain real user information, that is, it is difficult to accurately obtain traffic source information of the target website.
When a first access request is received, judging whether the first access request is sent by a user side based on a browser, and judging whether the first access request is sent by the user side based on the browser, namely judging whether the first access request is from an official application of a target website or from the browser.
When receiving a first access request, the step of determining whether the first access request is sent by a user side based on a browser includes:
step S11, when receiving a first access request, judging whether the first access request carries a browser identifier;
in this embodiment, whether the first access request is originated from an official application of the target website or from the browser may be determined by whether the first access request carries a browser identifier. The target website can judge whether the first access request carries the browser identifier through a prestored browser identifier identification program segment.
Step S12, if the first access request carries a browser identifier, determining that the first access request is sent by the user side based on the browser;
step S13, if the first access request does not carry the browser identifier, determining that the first access request is not sent by the user side based on the browser.
If the first access request carries a browser identifier, it is determined that the first access request is sent by the user side based on the browser, where the browser identifier may be a QQ browser identifier, a UC browser identifier, or the like, and in addition, the browser may refer to all applications other than the official application of the target website. And if the first access request does not carry the browser identifier, judging that the first access request is not sent by the user side based on the browser. Or if the first access request carries the identification of the official application of the target website, judging that the first access request is not sent by the user side based on the browser.
Step S20, if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser;
if the first access request is sent by the user side based on the browser, whether a target cache file is stored in the browser is judged, wherein each cache file cached in the browser is time-efficient, and if the browser clears each cache file after 12 hours, a cache address corresponding to the cache file in the browser may be still in a browser address list. In this embodiment, whether the target cache file is stored in the browser may be determined by obtaining the time when the browser has last accessed the target website and the cache time of the browser. In addition, in this embodiment, referring to fig. 2, the determining whether the target cache file is stored in the browser if the first access request is sent by the user side based on the browser includes:
step S21, if the first access request is sent by the user side based on the browser, judging whether the first access request is sent by the user side based on browser cloud acceleration;
for a browser, when a user is detected to input a website of a target website, it can be judged that cloud acceleration processing is not required, when the cloud acceleration processing is required, a pre-loaded execution step is provided, when the cloud acceleration processing is not required, a pre-loaded action is not provided, and the judgment basis that the browser does not need the cloud acceleration processing specifically lies in that: and whether the local end of the browser has a target cache file of the target website or not. Therefore, whether the target cache file is stored in the browser can be judged by judging whether the first access request is sent by the user side based on browser cloud acceleration.
Specifically, if the first access request is sent by the user side based on the browser, the step of determining whether the first access request is sent by the user side based on browser cloud acceleration includes:
step A1, obtaining request time and request address information carried by the first access request;
in this embodiment, a target website obtains request time, request address information and the like carried in a first access request by analyzing the first access request, so as to determine whether the first access request is sent by a user side based on browser cloud acceleration, wherein the target website sends a cloud acceleration start identification request to the browser based on the request time, the request address information and the like, and the browser feeds back corresponding identification information after detecting the cloud acceleration start identification request.
Step A2, determining whether the browser has requested other address information associated with the request address in a first preset time period corresponding to the request time, wherein the other address information and the request address have the same preamble address information;
specifically, after detecting a cloud acceleration start identification request, the browser determines whether the browser requests other address information associated with the request address within a first preset time period, which may be 1S, before the request time, wherein the other address information and the request address have the same preamble address, for example, the request address is https: and/0A 6 bIcBWbcwx2. qq. com/, the browser requests the address information as https within 1S before the request time: the address of/0 A6bi cbbwb & rsv _ sug4 is 5985, because of https of the request address: the/0A 6bIcBWb part and https of the address information: the/0A 6bIcBWb are the same, therefore, the browser requests other address information associated with the request address in a first preset time period before the request time.
Step a3, if the browser requests other address information associated with the request address within a first preset time period before the request time, it is determined that the first access request is sent by the user side based on browser cloud acceleration.
If the browser requests other address information associated with the request address in a corresponding first preset time period before the request time, it is determined that the first access request is sent by the user side based on browser cloud acceleration, and if the browser does not request other address information associated with the request address in a corresponding first preset time period before the request time, it is determined that the first access request is not sent by the user side based on browser cloud acceleration.
Step S22, if the first access request is sent by the user side based on browser cloud acceleration, it is determined that no target cache file is stored in the browser;
step S23, if the first access request is not sent by the user side based on browser cloud acceleration, it is determined that the target cache file is stored in the browser.
If the first access request is sent by the user side based on browser cloud acceleration, judging that a target cache file is not stored in the browser; and if the first access request is not sent by the user side based on browser cloud acceleration, judging that a target cache file is stored in the browser. That is, in this embodiment, by determining whether the first access request is sent by the user terminal based on the browser cloud acceleration, it can be accurately determined whether the target cache file is stored in the browser.
Step S30, if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser;
in this embodiment, if the target cache file is not stored in the browser, the target cache file is fed back to the browser, and after the target cache file is fed back to the browser, the browser stores the target cache file and disconnects a first link with the browser, where the first link is a tcp communication link established by a user side through the browser, and at this time, the browser stores the target cache file and disconnects the first link with the target website, so that the browser does not have an execution step of cloud loading.
Step S40, receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and obtaining associated information of the user side based on the second link, where after the browser receives the target cache file, the user side sends the second access request based on the browser.
After the browser receives the target cache file, triggering the user side to send the second access request again based on the browser, wherein after the browser receives the target cache file, in order to trigger the user side to send the second access request based on the browser, a trigger program segment needs to be set in the browser in advance, the trigger program segment represents processing logic after the target cache file is received, the processing logic is used for generating a trigger instruction for triggering the user side to send the second access request based on the browser after the browser receives the target cache file, in addition, a response program segment corresponding to the trigger program segment needs to be set in the user side, and the response program segment is used for generating the second access request after the trigger instruction for triggering the user side to send the second access request based on the browser is detected. The target website receives a second access request sent by the user side based on the browser, establishes a second link with the user side based on the second access request, and acquires the associated information of the user side based on the second link, and the target website directly establishes the second link with the user side, so that the associated information of the user side can be directly and accurately acquired, and the step of acquiring the associated information of the user side based on the second link includes:
step S41, obtaining the user IP address information, login name information and historical login information of the user side based on the second link.
That is, in this embodiment, the user IP address information, the login name information, and the historical login information of the user side are obtained based on the second link, and the historical login information may be found in the history of the target website.
The method comprises the steps that when a first access request is received, whether the first access request is sent by a user side based on a browser is judged; if the first access request is sent by the user side based on a browser, judging whether a target cache file is stored in the browser; if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser; receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring the associated information of the user side based on the second link. That is, in the present application, if it is detected that the first access request is sent by the client based on the browser and no target cache file is stored in the browser, after the access request is detected, the target cache file is fed back to the browser, and the link with the browser is disconnected to receive a second access request sent by the client based on the browser, so as to directly establish a second link with the client, where after the browser receives the target cache file, the client sends the second access request based on the browser, and therefore, for the target website, since the second link with the client is directly established instead of establishing a link through the browser, real user-related information can be obtained, and therefore, the target website can accurately obtain a traffic source of the target website, therefore, the technical problem that the website is difficult to accurately acquire the traffic source information in the prior art is solved.
Further, another embodiment of the method for obtaining traffic source information according to the present invention, in this embodiment, after the step of determining whether the first access request is sent by the user side based on a browser when the first access request is received, the method includes:
step B1, if the first access request is not sent by the user side based on the browser, directly establishing a second link with the user side, and obtaining the associated information of the user side based on the second link.
In this embodiment, if the first access request is not sent by the user side based on the browser, and at this time, the user side directly establishes a tcp communication link with the target website, the tcp communication link directly established is a second link, and obtains associated information of the user side based on the second link, where the associated information of the user side includes an IP address of the user side, login information of the user side, and the like.
In this embodiment, if the first access request is not sent by the user side based on the browser, the second link with the user side is directly established, and the association information of the user side is obtained based on the second link. Therefore, when the user side does not access the target website through the browser cloud in an accelerated manner, the target website can directly and accurately establish a communication link with the user side, and a flow source can be accurately obtained.
Further, another embodiment of the method for obtaining source information of traffic provided by the present invention is an embodiment, where the method for obtaining source information of traffic is applied to a server corresponding to a website, and the step of establishing a second link with a user terminal based on the second access request and obtaining associated information of the user terminal based on the second link includes:
step S50, acquiring a total traffic source number counted by the server in a second preset time period, and acquiring a user side number counted by the server in the second preset time period and derived from the browser, so as to obtain a ratio of the user side number derived from the browser to the total traffic source number;
in this embodiment, a ratio of traffic from the browser in a total traffic of the target website in a second preset time period is determined, where the ratio is obtained according to the number of the clients from the browser and the total number of the clients accessing the server.
Step S60, acquiring the incidence relation between the pre-stored ratio and the server side wind control resource distribution;
and step S70, correspondingly distributing the wind control resources of the server side based on the ratio and the incidence relation.
In this embodiment, the server pre-stores an association relationship between a traffic ratio and allocation of server-side wind control resources to perform wind control resource layout in a targeted manner, where the wind control resources refer to computer resources, memory resources, and the like required by wind control, and the association relationship may be a direct proportional relationship between the traffic ratio and the wind control resources, for example, if the number of the user terminals from the browser is 20% of the traffic of the target website, 20% of the weight in the wind control resources is placed in the first browser.
In this embodiment, a ratio of the number of the user terminals from the browser to the total number of the traffic sources is obtained by obtaining the total number of the traffic sources counted by the server within a second preset time period and obtaining the number of the user terminals from the browser counted by the server within the second preset time period; acquiring the association relation between the pre-stored ratio and the wind control resource allocation of the server side; and correspondingly distributing the wind control resources of the server side based on the ratio and the association relation. In this embodiment, after the website accurately obtains the user traffic, the website may perform the wind control on various resources, such as the wind control resources, according to the accurately obtained traffic.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The traffic source information acquiring device in the embodiment of the present invention may be a PC, or may be a terminal device such as a smart phone, a tablet PC, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 3) player, a portable computer, or the like.
As shown in fig. 3, the traffic source information acquiring apparatus may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Optionally, the traffic source information acquiring device may further include a target user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. The target user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional target user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the configuration of the traffic source information acquisition device shown in fig. 3 does not constitute a limitation of the traffic source information acquisition device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a traffic source information acquisition program. The operating system is a program that manages and controls hardware and software resources of the traffic source information acquisition device, and supports the operation of the traffic source information acquisition program as well as other software and/or programs. The network communication module is used for communication among the components in the memory 1005 and with other hardware and software in the traffic source information acquiring device.
In the traffic source information acquiring apparatus shown in fig. 3, the processor 1001 is configured to execute a traffic source information acquiring program stored in the memory 1005, so as to implement the steps of any one of the traffic source information acquiring methods described above.
The specific implementation of the traffic source information acquiring device of the present invention is substantially the same as that of each embodiment of the traffic source information acquiring method described above, and is not described herein again.
The present invention also provides a traffic source information acquiring apparatus, including:
the first judging module is used for judging whether a first access request is sent by a user side based on a browser or not when the first access request is received;
the second judgment module is used for judging whether a target cache file is stored in the browser or not if the first access request is sent by the user side based on the browser;
the disconnection module is used for feeding back the target cache file to the browser and disconnecting a first link with the browser if the target cache file is not stored in the browser, wherein the first link is a received tcp communication link established by a user side through the browser;
the receiving module is used for receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring the associated information of the user side based on the second link.
The specific implementation of the traffic source information obtaining apparatus of the present invention is substantially the same as that of each embodiment of the traffic source information obtaining method described above, and is not described herein again.
The present invention provides a readable storage medium, which stores one or more programs, where the one or more programs are further executable by one or more processors for implementing the steps of any of the above-mentioned traffic source information obtaining methods.
The specific implementation of the readable storage medium of the present invention is substantially the same as that of the embodiments of the traffic source information obtaining method described above, and is not described herein again.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for acquiring traffic source information is characterized by comprising the following steps:
when a first access request is received, judging whether the first access request is sent by a user side based on a browser;
if the first access request is sent by the user side based on the browser, judging whether the first access request is sent by the user side based on browser cloud acceleration;
if the first access request is sent by the user side based on browser cloud acceleration, judging that a target cache file is not stored in the browser;
if the target cache file is not stored in the browser, feeding the target cache file back to the browser, and disconnecting a first link with the browser, wherein the first link is a tcp communication link established by a received user side through the browser;
receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring the associated information of the user side based on the second link.
2. The traffic source information acquiring method according to claim 1, wherein if the first access request is sent by the client based on a browser, the step of determining whether the first access request is sent by the client based on a browser cloud acceleration includes:
acquiring request time and request address information carried by the first access request;
judging whether the browser requests other address information associated with the request address in a corresponding first preset time period before the request time, wherein the other address information and the request address have the same preorder address information;
and if the browser requests other address information associated with the request address in a corresponding first preset time period before the request time, determining that the first access request is sent by the user side based on browser cloud acceleration.
3. The method as claimed in claim 1, wherein the step of establishing a second link with the client based on the second access request and obtaining the association information of the client based on the second link includes:
acquiring the total flow source number counted by the server in a second preset time period, and acquiring the user side number from the browser counted by the server in the second preset time period to obtain a ratio of the user side number from the browser to the total flow source number;
acquiring the association relation between the pre-stored ratio and the wind control resource allocation of the server side;
and correspondingly distributing the wind control resources of the server side based on the ratio and the incidence relation.
4. The traffic source information acquiring method according to claim 1, wherein the step of determining whether the first access request is sent by the client based on a browser when receiving the first access request includes:
and if the first access request is not sent by the user side based on the browser, directly establishing a second link with the user side, and acquiring the associated information of the user side based on the second link.
5. The traffic source information acquiring method according to any one of claims 1 to 4, wherein the step of determining whether the first access request is sent by the client based on a browser when receiving the first access request comprises:
when a first access request is received, judging whether the first access request carries a browser identifier or not;
if the first access request carries a browser identifier, determining that the first access request is sent by a user side based on a browser;
and if the first access request does not carry the browser identifier, judging that the first access request is not sent by the user side based on the browser.
6. The traffic source information acquiring method according to claim 1, wherein the step of acquiring the association information of the user side based on the second link comprises:
and acquiring user IP address information, login name information and historical login information of the user side based on the second link.
7. A traffic source information acquisition apparatus, characterized by comprising:
the first judging module is used for judging whether a first access request is sent by a user side based on a browser or not when the first access request is received;
the second judging module is used for judging whether the first access request is sent by the user side based on the browser cloud in an accelerated mode or not if the first access request is sent by the user side based on the browser cloud; if the first access request is sent by the user side based on browser cloud acceleration, judging that a target cache file is not stored in the browser;
the disconnection module is used for feeding back the target cache file to the browser and disconnecting a first link with the browser if the target cache file is not stored in the browser, wherein the first link is a received tcp communication link established by a user side through the browser;
the receiving module is used for receiving a second access request sent by the user side based on the browser, establishing a second link with the user side based on the second access request, and acquiring the associated information of the user side based on the second link.
8. A traffic source information acquisition apparatus, characterized by comprising: a memory, a processor, a communication bus, and a traffic source information acquisition program stored on the memory,
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the traffic source information obtaining program to implement the steps of the traffic source information obtaining method according to any one of claims 1 to 6.
9. A readable storage medium, characterized in that a traffic source information acquisition program is stored thereon, which when executed by a processor implements the steps of the traffic source information acquisition method according to any one of claims 1 to 6.
CN201811041958.XA 2018-09-07 2018-09-07 Method, device and equipment for acquiring flow source information and readable storage medium Active CN109688095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811041958.XA CN109688095B (en) 2018-09-07 2018-09-07 Method, device and equipment for acquiring flow source information and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811041958.XA CN109688095B (en) 2018-09-07 2018-09-07 Method, device and equipment for acquiring flow source information and readable storage medium

Publications (2)

Publication Number Publication Date
CN109688095A CN109688095A (en) 2019-04-26
CN109688095B true CN109688095B (en) 2022-05-17

Family

ID=66185665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811041958.XA Active CN109688095B (en) 2018-09-07 2018-09-07 Method, device and equipment for acquiring flow source information and readable storage medium

Country Status (1)

Country Link
CN (1) CN109688095B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492044B (en) * 2020-12-09 2022-10-14 恒生电子股份有限公司 Cache data sharing method and device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299832A (en) * 2011-09-30 2011-12-28 互动在线(北京)科技有限公司 General network flow counting method
CN102546668A (en) * 2012-02-29 2012-07-04 北京蓝汛通信技术有限责任公司 Method, device and system for counting unique visitors
CN104601408A (en) * 2015-01-30 2015-05-06 迈普通信技术股份有限公司 Website data statistics and analysis method and system used for non-open network environment
CN107613015A (en) * 2017-10-11 2018-01-19 成都知道创宇信息技术有限公司 A kind of website registered user visits source acquisition methods first
CN107835132A (en) * 2017-10-17 2018-03-23 链家网(北京)科技有限公司 A kind of method and device of traffic source tracking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8131861B2 (en) * 2005-05-20 2012-03-06 Webtrends, Inc. Method for cross-domain tracking of web site traffic

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299832A (en) * 2011-09-30 2011-12-28 互动在线(北京)科技有限公司 General network flow counting method
CN102546668A (en) * 2012-02-29 2012-07-04 北京蓝汛通信技术有限责任公司 Method, device and system for counting unique visitors
CN104601408A (en) * 2015-01-30 2015-05-06 迈普通信技术股份有限公司 Website data statistics and analysis method and system used for non-open network environment
CN107613015A (en) * 2017-10-11 2018-01-19 成都知道创宇信息技术有限公司 A kind of website registered user visits source acquisition methods first
CN107835132A (en) * 2017-10-17 2018-03-23 链家网(北京)科技有限公司 A kind of method and device of traffic source tracking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Web的网站流量统计系统设计及数据分析;邹晓颖,马丽,王丽君;《电力信息与通信技术》;20170315;全文 *

Also Published As

Publication number Publication date
CN109688095A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN106933871B (en) Short link processing method and device and short link server
CN104965848B (en) A kind of front end resource loading method and device
CN107786621B (en) User information management method, access processing method, device and system
CN110830280B (en) Micro-service gateway device and method and electronic equipment
CN108200132B (en) Resource acquisition method, device, equipment and computer readable storage medium
CN107463563B (en) Information service processing method and device of browser
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN111343048A (en) Pressure testing method and device, computer device and storage medium
CN109086158B (en) Abnormal cause analysis method and device and server
CN106375866B (en) Page loading method and terminal
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN114553762B (en) Method and device for processing flow table items in flow table
CN109688095B (en) Method, device and equipment for acquiring flow source information and readable storage medium
CN114039961A (en) Message pushing method, device, server and storage medium based on WebSocket
EP3062481A1 (en) Method, system, and related device for providing application service
CN109951549B (en) Network page access method and device and computer readable storage medium
WO2015003570A1 (en) Data downloading method,device and system thereof
CN107864038B (en) Certificate management method, device, equipment and computer readable storage medium
CN107391132B (en) Method, device and equipment for target App to execute preset action
CN110704498A (en) Data extraction method, device, equipment and computer readable storage medium
CN110825603A (en) Page first loading time determining method and device, electronic equipment and storage medium
EP2928158A1 (en) Distribution apparatus and distribution method
CN113271228B (en) Bandwidth resource scheduling method, device, equipment and computer readable storage medium
CN109688187B (en) Flow load balancing method, device, equipment and readable storage medium
CN114585055A (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant