CN113726872B - Method, device, equipment and medium for filtering promotion information - Google Patents

Method, device, equipment and medium for filtering promotion information Download PDF

Info

Publication number
CN113726872B
CN113726872B CN202110996230.8A CN202110996230A CN113726872B CN 113726872 B CN113726872 B CN 113726872B CN 202110996230 A CN202110996230 A CN 202110996230A CN 113726872 B CN113726872 B CN 113726872B
Authority
CN
China
Prior art keywords
cloud application
request
request interface
target
information
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
CN202110996230.8A
Other languages
Chinese (zh)
Other versions
CN113726872A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110996230.8A priority Critical patent/CN113726872B/en
Publication of CN113726872A publication Critical patent/CN113726872A/en
Application granted granted Critical
Publication of CN113726872B publication Critical patent/CN113726872B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Abstract

The present disclosure provides a method, an apparatus, a device and a medium for filtering promotion information, which relate to the technical field of cloud computing, in particular to the technical field of cloud games, and include: when a media information acquisition request sent by a cloud application client is received, analyzing the media information acquisition request to acquire a target request interface; if the target request interface is determined to be the promotion information request interface, intercepting the media information; and constructing an empty return data result according to a response data format template matched with the promotion information request interface, and providing the empty return data result to the cloud application client. According to the technical scheme of the embodiment, the media information acquisition request of the cloud application client is intercepted through the proxy server, and the null return data result in the corresponding format is constructed, so that the high-efficiency interception of the popularization information is realized, the frequent switching of the cloud application by the user is avoided, and the use experience of the user is improved.

Description

Method, device, equipment and medium for filtering promotion information
Technical Field
The disclosure relates to the technical field of cloud computing, in particular to the technical field of cloud games, and specifically relates to a method, a device, equipment and a medium for filtering promotion information.
Background
With the continuous deepening of cloud storage technology, a user can use various cloud applications without installation by using cloud equipment.
At present, a user may receive various popularization information of a cloud application server in a process of using a cloud application (particularly a cloud game), so that the cloud application using process of the user is disturbed and interrupted, the using experience of the user is greatly influenced, the probability of switching the cloud application by the user may be further improved, and the switching pressure of the cloud server is caused to a certain extent.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, and medium for filtering promotional information.
According to an aspect of the present disclosure, there is provided a method for filtering promotion information in a cloud service system, which is performed by a proxy server in the cloud service system, the method including:
when a media information acquisition request sent by a cloud application client is received, analyzing the media information acquisition request to acquire a target request interface;
the domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system;
if the target request interface is determined to be a promotion information request interface, intercepting the media information acquisition request;
and constructing an empty return data result according to a response data format template matched with the promotion information request interface, and providing the empty return data result to the cloud application client.
According to another aspect of the present disclosure, there is provided an apparatus for filtering promotion information in a cloud service system, which is applied to a proxy server in the cloud service system, the apparatus including:
the target request interface acquisition module is used for analyzing the media information acquisition request to acquire a target request interface when receiving the media information acquisition request sent by the cloud application client;
the domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system;
the information interception module is used for intercepting the media information acquisition request if the target request interface is determined to be a promotion information request interface;
and the empty return data result construction module is used for constructing an empty return data result according to the response data format template matched with the promotion information request interface and providing the empty return data result to the cloud application client.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform a method according to any one of the embodiments of the disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the embodiments of the present disclosure.
According to the technical scheme, the popularization information can be efficiently intercepted, frequent switching of the cloud application by the user is avoided, and the use experience of the user is improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic diagram of a method for filtering promotion information in a cloud service system according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a filtering method of promotion information in a cloud service system according to another embodiment of the present disclosure;
fig. 3A is a schematic diagram of a filtering method of promotion information in a cloud service system according to another embodiment of the present disclosure;
fig. 3B is a schematic application scenario diagram of a filtering method for promotion information in a cloud service system according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a filtering apparatus for promotional information in a cloud service system according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device of a filtering method of promotion information in a cloud service system according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic flow diagram of a method for filtering promotion information in a cloud service system according to an embodiment of the present disclosure, where the present embodiment is applicable to a situation of filtering promotion information requested by a cloud application client, and the method may be implemented by a device for filtering promotion information in a cloud service system, and the device may be implemented in a software and/or hardware manner, and may be generally integrated in a server having a data processing function, that is, a proxy server in a cloud service system. Specifically, referring to fig. 1, the method specifically includes the following steps:
s110, when a media information acquisition request sent by a cloud application client is received, analyzing the media information acquisition request to acquire a target request interface.
The domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system.
In this embodiment, the cloud service system includes a plurality of cloud devices, an intranet domain name server, and a proxy server, where a cloud application client is pre-installed on the cloud devices. The cloud device may be a logic device virtualized on the cloud server cluster by using a virtualization technology, such as a cloud mobile phone or a cloud computer. Cloud applications, also known as cloud Applications (APPs), such as cloud games, cloud music, and cloud office.
The intranet Domain Name server is a Domain Name Server (DNS) applied to a company or an enterprise local area network, and the DNS server stores a mapping relationship between a Domain Name of a cloud application server and an Internet Protocol (IP) address, and can resolve the Domain Name in a DNS request sent by a cloud application client and feed back a corresponding IP address. Through intranet DNS, the access of a host in the intranet to an extranet network can be realized, and through the setting of the intranet DNS, the limitation of the extranet network access can be realized.
The Domain Name (Domain Name) is a computer positioning identifier, and is composed of a string of characters separated by dots, and common Domain Name suffixes include.com,. Net,. Cn,. Edu,. Top and. Xyz, and the like. The IP address is a uniform address format provided by an IP protocol, and each host uniquely corresponds to one IP address.
The proxy server is used for acting on a network user to acquire network information; in this embodiment, through the proxy server, indirect connection between the cloud application client and the cloud application server is realized, and access control management on the cloud application client can be realized.
It should be noted that, only through the domain name of the cloud application server, the cloud application client cannot directly access the cloud application server, and only through the corresponding IP address, the access to the cloud application server can be realized; therefore, when the cloud application client needs to access the cloud application server to obtain media information, a DNS request needs to be sent to the intranet DNS first to obtain an IP address corresponding to the domain name of the cloud application server, and then access to the corresponding cloud application server is achieved according to the current IP address. The media information may be text, pictures, or video. The DNS request may include a domain name of the cloud application server that needs access.
In this embodiment, the intranet DNS resolves the domain name of the cloud application server in the media information acquisition request of the cloud application client, and replaces the IP address of the cloud application server with the IP address of the proxy server and feeds the IP address back to the cloud application client, so that the proxy server can act on the network connected between the cloud application client and the cloud application server.
The request interface refers to interface information of the cloud application server which needs to be called by the current media information acquisition request. In this embodiment, since the domain name of the cloud application server is remapped through the intranet DNS, when the subsequent cloud application client sends the media information acquisition request, the media information acquisition request is first sent to the proxy server. After the proxy server acquires the media information acquisition request sent by the cloud application client, the content of the media information acquisition request is analyzed, and a cloud application server interface which the cloud application client needs to request to call at present can be determined.
And S120, if the target request interface is determined to be the promotion information request interface, intercepting the media information acquisition request.
The promotion information request interface is a Hyper Text Transfer Protocol (HTTP) interface used for returning advertisement content in the cloud application server. Optionally, the proxy server may search in a pre-established promotion information request interface list according to the target request interface, and if it is determined that the searched consistent promotion information request interface indicates that the current target request interface is a promotion information request interface, the proxy server directly intercepts the media information acquisition request; and if the consistent popularization information request interface is not found, the current target request interface is the normal information request interface.
S130, constructing an empty return data result according to a response data format template matched with the promotion information request interface, and providing the empty return data result to the cloud application client.
In this embodiment, the proxy server may determine a response data format matched with each promotion information request interface by analyzing a historical transceiving data packet of the cloud application client, and acquire a corresponding response data format template according to each response data format. Correspondingly, after determining that the target request interface is the promotion information request interface, the proxy server acquires a response data format template matched with the current promotion information request interface according to the pre-acquired response data format templates matched with the promotion information request interfaces. And further adding null information in the response data format template to construct corresponding null return data, and sending the constructed null return data serving as feedback data of the current media information acquisition request to the cloud application client.
In the related art, when a target request interface in a media information acquisition request is determined to be a promotion information request interface, the media information acquisition request is directly intercepted, and at this time, a cloud application client cannot receive corresponding response data, which may cause a webpage to report an error or cause other contents in the webpage to be displayed normally. In the embodiment, the corresponding empty return data result is constructed through the proxy server, so that the normal display of the webpage is ensured while the media information is filtered, the stability of the cloud application client is improved, and the user experience is improved.
According to the technical scheme of the embodiment, when a media information acquisition request sent by a cloud application client is received, the media information acquisition request is analyzed, and a target request interface is acquired; if the target request interface is determined to be the promotion information request interface, intercepting the media information; and an empty return data result is constructed according to a response data format template matched with the promotion information request interface, and the empty return data result is provided to the cloud application client, so that the promotion information is efficiently intercepted, frequent switching of the cloud application by a user is avoided, and the use experience of the user is improved.
In an implementation manner of this embodiment, the constructing an empty return data result according to the response data format template matched with the promotion information request interface may include: acquiring a target response data format template matched with the promotion information request interface; the response data template comprises at least one region to be filled, and each region to be filled is used for filling promotion contents of a set media type; and filling each area to be filled in the target response data format template with empty information matched with the media type to construct and obtain an empty return data result.
The media type is set, and may include pictures, texts, videos, or voices. In this embodiment, each area to be filled in the target response data format template is filled with null information matching the media type, for example, if the media type corresponding to the area to be filled is voice, a voice signal with null content is acquired to fill the area to be filled. Optionally, null information of different media types is pre-established; after the target response data format template is obtained, the set media types of all the areas to be filled in the current target response data format template are determined, matched pre-established null information is obtained according to all the set media types, and the areas to be filled are filled with the null information respectively to obtain null return data results.
In this embodiment, the efficiency of constructing the null returned data result can be improved by acquiring the target response data format template matched with the promotion information request interface and filling the region to be filled with the null information matched with the media type.
Fig. 2 is a schematic flow diagram of a filtering method of promotion information in another cloud service system according to an embodiment of the present disclosure, where this embodiment is a further refinement of the foregoing technical solution, and the technical solution in this embodiment may be combined with one or more of the foregoing implementations. Specifically, referring to fig. 2, the method specifically includes the following steps:
s210, when a media information acquisition request sent by a cloud application client is received, analyzing the media information acquisition request to acquire a target request interface.
The domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system.
It should be noted that, since the domain name of the cloud application server is remapped through the intranet DNS, all requests sent by the cloud application client to the cloud application server and all information fed back by the cloud application server to the cloud application client are forwarded through the proxy server.
S220, if the target request interface is determined to be a normal information request interface, forwarding the media information acquisition request to the cloud application server.
In this embodiment, if the receiving server determines that the target request interface is a normal information request interface, it indicates that the media information requested by the current media information acquisition request is normal information, and at this time, the media information acquisition request is forwarded to the cloud application server to acquire the corresponding normal media information.
In this embodiment, optionally, when remapping the domain name of the cloud application server to the IP address of the proxy server, the intranet DNS sends the mapping relationship between the domain name of the cloud application server and the IP address of the cloud application server to the proxy server for storage.
Correspondingly, if the proxy server determines that the current target request interface is the normal information request interface, the proxy server obtains the domain name of the cloud application server in the request according to the media information, and searches the mapping relation between the domain name of the cloud application server and the IP address of the cloud application server to obtain the IP address corresponding to the domain name; and then forwarding the media information acquisition request to the matched cloud application server according to the IP address so as to acquire the corresponding media information through the current cloud application server.
S230, receiving a standard return result of the cloud application server for the media information acquisition request, and providing the standard return result to the cloud application client.
The standard return result may include normal media information acquired by the cloud application server according to the media information acquisition request, and the media information acquisition request.
In this embodiment, after receiving a media information acquisition request forwarded by a proxy server, a cloud application server calls a matched server interface to acquire corresponding media information according to a target request interface in the media information acquisition request, and forms a standard return result according to current media information and the media information acquisition request and feeds the standard return result back to the proxy server. And after receiving the standard return result fed back by the cloud application server, the proxy server determines the corresponding cloud application client according to the media information acquisition request in the standard return result, and forwards the current standard return result to the corresponding cloud application client. The media information acquisition request comprises an IP address of the cloud application client.
According to the technical scheme of the embodiment, when a media information acquisition request sent by a cloud application client is received, the media information acquisition request is analyzed to acquire a target request interface, and if the target request interface is determined to be a normal information request interface, the media information acquisition request is forwarded to a cloud application server; and receiving a standard return result of the cloud application server for the media information acquisition request, and providing the standard return result to the cloud application client, so that forwarding of a normal media information acquisition request and the standard return result is realized, and the security of media information acquisition is improved.
Fig. 3A is a schematic flow chart of a filtering method for promotion information in a cloud service system according to another embodiment of the present disclosure, which is a further refinement of the foregoing technical solution, and the technical solution in this embodiment may be combined with one or more of the foregoing embodiments. Specifically, referring to fig. 3A, the method specifically includes the following steps:
and S310, performing packet capturing processing on the received and sent information of each cloud application client installed on each cloud device in the cloud service system.
The packet capturing refers to operations of intercepting, editing, retransmitting, unloading and the like of data packets sent and received in network transmission. In this embodiment, the data packet capturing operation may be performed by a packet capturing tool such as Fiddler, charles, or Wireshark.
In this embodiment, optionally, the proxy server may perform real-time detection on the use condition of the cloud application client within a preset time period, and perform packet capture processing on the information received and sent by the cloud application client by using a packet capture tool when it is detected that the cloud application client is in a use state. In addition, in the time period when the cloud application client is in the use state, the proxy server can execute packet capturing operation for receiving and sending information at preset intervals; for example, the service time of the cloud application client is 2-00, and the proxy server may perform packet capture operation of sending and receiving information of the cloud application client once every one minute. The preset time period and the preset period are not particularly limited in this embodiment.
And S320, identifying each target cloud application client displaying the popularization information and domain name information of each cloud application server corresponding to each target cloud application client according to the packet capturing processing result.
It can be understood that the sending information of the cloud application client is a media information obtaining request including domain name information of the cloud application server, and the receiving information is media information fed back by the cloud application server. Therefore, the proxy server performs packet capture processing on the receiving and sending information of the cloud application client, and can acquire the domain name information of the cloud application server and the media information fed back by the cloud application server.
In this embodiment, after the proxy server obtains the packet capturing processing result, if it is determined that the media information fed back by the cloud application server in the packet capturing processing result is the promotion information, the corresponding cloud application client is recorded as the target cloud application client and the domain name information of the cloud application server corresponding to the target cloud application client.
S330, constructing a remapping construction request according to the domain name information and the IP address of the proxy server and sending the remapping construction request to the intranet domain name server.
The remapping construction request is used for indicating an intranet domain name server to establish a remapping relation between domain name information and an IP address of the proxy server.
In this embodiment, after obtaining the domain name information of the target cloud application client and each cloud application server, the proxy server constructs a remapping construction request according to each domain name information and the IP address of the proxy server, and sends the remapping construction request to the internal network DNS. After receiving a remapping construction request sent by a proxy server, the intranet DNS converts the mapping relation between the domain name of the cloud application server and the IP address of the cloud application server into the mapping relation between the domain name of the cloud application server and the IP address of the proxy server, and realizes construction of the remapping relation between the domain name information and the IP address of the proxy server.
Correspondingly, when the intranet DNS acquires the IP address acquisition request corresponding to the current domain name, the IP address of the proxy server is fed back. After receiving the IP address fed back by the intranet DNS, the cloud application client sends a media information acquisition request according to the IP address of the current proxy server, so that the proxy server can accurately intercept the media information acquisition request corresponding to the current domain name.
Note that, for a domain name of a cloud application server that is not remapped by the intranet DNS, when receiving an IP address acquisition request of the domain name, the intranet DNS will feed back an IP address of the cloud application server corresponding to the current domain name. Correspondingly, after receiving the IP address fed back by the intranet DNS, the cloud application client directly accesses the corresponding interface of the cloud application server according to the current IP address to obtain the corresponding media information.
S340, when a media information acquisition request sent by the cloud application client is received, analyzing the media information acquisition request to acquire a target request interface.
The domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system.
And S350, if the target request interface is determined to be the promotion information request interface, intercepting the media information acquisition request.
S360, constructing an empty return data result according to a response data format template matched with the promotion information request interface, and providing the empty return data result to the cloud application client.
In an implementation manner of this embodiment, after performing packet capturing processing on the send-receive information of each cloud application client installed on each cloud device in the cloud service system, the method further includes: acquiring promotion information request interfaces respectively corresponding to the target cloud application clients and response data format templates respectively corresponding to the promotion information request interfaces according to a packet capturing processing result; and storing the mapping relation between the promotion information request interface of each target cloud application client and the matched response data format template.
In this embodiment, after acquiring the packet capture processing result, the proxy server may further acquire, according to the packet capture processing result, an HTTP interface used by the cloud application server to return the promotion information, and a data format template of the promotion information returned by the HTTP interface; further, the proxy server stores the mapping relationship between the HTTP interface and the data format template, that is, stores the mapping relationship between the promotion information request interface and the matched response data format template.
Correspondingly, after determining the promotion information request interface according to the media information acquisition request, the proxy server can acquire the matched response data format template according to the mapping relation between the promotion information request interface and the response data format template, and further construct an empty return data result according to the response data format template and send the empty return data result to the corresponding cloud application client.
In this embodiment, according to the packet capturing processing result, a mapping relationship between the promotion information request interface of the cloud application client and the matched response data format template is established and stored, so that the efficiency of constructing the null-return data result can be further improved.
In a specific implementation manner of this embodiment, the method for filtering media information in a cloud service system in this embodiment may be applied to a scenario shown in fig. 3B. Specifically, the proxy server captures and analyzes the received and transmitted data packets of each cloud application client on the cloud equipment to determine domain name information of the cloud application server corresponding to the media information acquisition request returning the promotion information; and simultaneously determining an HTTP interface used by the cloud application server for returning promotion information and a response data format template of the promotion information corresponding to the HTTP interface.
Secondly, the proxy server constructs a remapping construction request aiming at the acquired domain name information and the IP address of the proxy server and sends the request to an intranet DNS so as to establish a remapping relation between the domain name information and the IP address of the proxy server through the intranet DNS. Correspondingly, when a cloud application client on the cloud equipment needs to send a media information acquisition request to the cloud application server of the domain name, a DNS request is sent to the intranet DNS to acquire the IP address of the domain name, and at the moment, the intranet DNS feeds the IP address of the proxy server back to the cloud application client, so that the cloud application client sends the current media information acquisition request to the proxy server according to the IP address of the proxy server instead of directly sending the current media information acquisition request to the cloud application server.
After receiving a media information acquisition request of a cloud application client, a proxy server firstly judges whether a request interface of the media information acquisition request is a promotion information request interface; and if so, intercepting the media information acquisition request, constructing a corresponding empty return data result and feeding the empty return data result back to the cloud application client based on a response data format template of the current popularization information request interface so as to realize interception of the popularization information.
According to the technical scheme of the embodiment, the proxy server carries out packet capturing processing on the receiving and sending information of each cloud application client installed on each cloud device in the cloud service system, and according to the packet capturing processing result, each target cloud application client displaying the promotion information and the domain name information of each cloud application server corresponding to each target cloud application client are identified, and then a remapping construction request is constructed according to each domain name information and the IP address of the proxy server and sent to the intranet domain name server so as to indicate the intranet domain name server to establish the remapping relation between the domain name information and the IP address of the proxy server, and the construction of the remapping relation between the domain name information and the IP address of the proxy server is realized; further, when the proxy server receives a media information acquisition request sent by the cloud application client, the media information acquisition request is analyzed to acquire a target request interface; if the target request interface is determined to be the promotion information request interface, intercepting the media information; and an empty return data result is constructed according to a response data format template matched with the promotion information request interface, and the empty return data result is provided to the cloud application client, so that the promotion information is efficiently intercepted, the frequent switching of the cloud application by a user is avoided, and the use experience of the user is improved.
It should be noted that, in the technical solution of the present disclosure, the acquisition, storage, application, and the like of the personal information of the related user all conform to the regulations of the relevant laws and regulations, and do not violate the common customs of the public order.
The embodiment of the disclosure also provides a device for filtering the popularization information in the cloud service system, which is used for executing the method for filtering the popularization information in the cloud service system.
Fig. 4 is a structural diagram of a filtering apparatus 400 for popularization information in a cloud service system according to an embodiment of the present disclosure, where the apparatus includes: a target request interface acquisition module 410, an information interception module 420 and a null return data result construction module 430.
The target request interface obtaining module 410 is configured to, when receiving a media information obtaining request sent by a cloud application client, parse the media information obtaining request to obtain a target request interface;
the domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system;
an information interception module 420, configured to intercept the media information acquisition request if it is determined that the target request interface is a promotion information request interface;
and the empty return data result constructing module 430 is configured to construct an empty return data result according to the response data format template matched with the promotion information request interface, and provide the empty return data result to the cloud application client.
According to the technical scheme of the embodiment, when a media information acquisition request sent by a cloud application client is received, the media information acquisition request is analyzed, and a target request interface is acquired; if the target request interface is determined to be the promotion information request interface, intercepting the media information; and an empty return data result is constructed according to a response data format template matched with the promotion information request interface, and the empty return data result is provided to the cloud application client, so that the promotion information is efficiently intercepted, the frequent switching of the cloud application by a user is avoided, and the use experience of the user is improved.
On the basis of the foregoing embodiments, the apparatus further includes:
the request forwarding module is used for forwarding the media information acquisition request to the cloud application server if the target request interface is determined to be a normal information request interface;
and the standard return result receiving module is used for receiving a standard return result of the cloud application server for the media information acquisition request and providing the standard return result to the cloud application client.
The device, still include:
the information packet capturing module is used for capturing the received and sent information of each cloud application client installed on each cloud device in the cloud service system;
the domain name information identification module is used for identifying each target cloud application client for displaying the popularization information and the domain name information of each cloud application server corresponding to each target cloud application client according to the packet capturing processing result;
a remapping construction request construction module, configured to construct a remapping construction request according to the domain name information and the IP address of the proxy server, and send the remapping construction request to the intranet domain name server;
the remapping construction request is used for indicating an intranet domain name server to establish the remapping relation between the domain name information and the IP address of the proxy server.
The device, still include:
the response data format template acquisition module is used for acquiring promotion information request interfaces respectively corresponding to the target cloud application clients and response data format templates respectively corresponding to the promotion information request interfaces according to a packet capture processing result;
and the mapping relation storage module is used for storing the mapping relation between the promotion information request interface of each target cloud application client and the matched response data format template.
The empty return data result construction module 430 includes:
a response data template obtaining unit, configured to obtain a target response data format template that matches the promotion information request interface;
the response data template comprises at least one region to be filled, and each region to be filled is used for filling promotion contents of a set media type;
and the empty return data result construction unit is used for filling the empty information matched with the media type into each area to be filled in the target response data format template so as to construct and obtain the empty return data result.
The filtering device for the promotion information in the cloud service system provided by the embodiment of the disclosure can execute the filtering method for the promotion information in the cloud service system provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the device 500 comprises a computing unit 501 which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 executes the above-described respective methods and processes, such as a filtering method of promotion information in a cloud service system. For example, in some embodiments, the filtering method of promotional information in a cloud service system may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 500 via ROM 502 and/or communications unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the filtering method of promotion information in the cloud service system described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured by any other suitable means (e.g., by way of firmware) to perform the filtering method of the promotional information in the cloud service system.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome. The server may also be a server of a distributed system, or a server incorporating a blockchain.
Artificial intelligence is the subject of research that makes computers simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge map technology and the like.
Cloud computing (cloud computing) refers to accessing an elastically extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be a technical system that deploys and manages resources in a self-service manner as needed. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application such as artificial intelligence and block chains and model training.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (7)

1. A method for filtering promotion information in a cloud service system, which is executed by a proxy server in the cloud service system, the method comprising:
performing packet capturing processing on the receiving and sending information of each cloud application client installed on each cloud device in the cloud service system;
according to the packet capturing processing result, identifying each target cloud application client displaying the promotion information and domain name information of each cloud application server corresponding to each target cloud application client;
according to the domain name information and the IP address of the proxy server, constructing a remapping construction request and sending the remapping construction request to an intranet domain name server;
the remapping construction request is used for indicating an intranet domain name server to establish a remapping relation between domain name information and an IP address of the proxy server;
acquiring promotion information request interfaces respectively corresponding to the target cloud application clients and response data format templates respectively corresponding to the promotion information request interfaces according to a packet capturing processing result;
storing a mapping relation between the promotion information request interface of each target cloud application client and the matched response data format template;
when a media information acquisition request sent by a cloud application client is received, analyzing the media information acquisition request to acquire a target request interface;
the domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system;
if the target request interface is determined to be a promotion information request interface, intercepting the media information acquisition request;
wherein, determining that the target request interface is a promotion information request interface comprises:
searching in a pre-established promotion information request interface list according to the target request interface, and if a promotion information request interface matched with the target request interface is determined to be searched, determining that the target request interface is a promotion information request interface;
constructing an empty return data result according to a response data format template matched with the promotion information request interface, and providing the empty return data result to the cloud application client;
wherein, the constructing an empty return data result according to the response data format template matched with the promotion information request interface comprises:
acquiring a target response data format template matched with the promotion information request interface;
the response data template comprises at least one region to be filled, and each region to be filled is used for filling promotion contents of a set media type;
and filling each area to be filled in the target response data format template with empty information matched with the media type to construct and obtain an empty return data result.
2. The method of claim 1, further comprising:
if the target request interface is determined to be a normal information request interface, forwarding the media information acquisition request to the cloud application server;
and receiving a standard return result of the cloud application server for the media information acquisition request, and providing the standard return result to the cloud application client.
3. A filtering device for promotion information in a cloud service system is applied to a proxy server in the cloud service system, and the device comprises:
the information packet capturing module is used for capturing the received and sent information of each cloud application client installed on each cloud device in the cloud service system;
the domain name information identification module is used for identifying each target cloud application client for displaying the popularization information and the domain name information of each cloud application server corresponding to each target cloud application client according to the packet grabbing processing result;
a remapping construction request constructing module, configured to construct a remapping construction request according to the domain name information and the IP address of the proxy server, and send the remapping construction request to an intranet domain name server;
the remapping construction request is used for indicating an intranet domain name server to establish a remapping relation between domain name information and the IP address of the proxy server;
the response data format template acquisition module is used for acquiring promotion information request interfaces respectively corresponding to the target cloud application clients and response data format templates respectively corresponding to the promotion information request interfaces according to a packet capturing processing result;
the mapping relation storage module is used for storing the mapping relation between the promotion information request interface of each target cloud application client and the matched response data format template;
the target request interface acquisition module is used for analyzing the media information acquisition request to acquire a target request interface when receiving the media information acquisition request sent by the cloud application client;
the domain name of the cloud application server in the media information acquisition request is remapped to the internet protocol IP address of the proxy server through an intranet domain name server in the cloud service system;
the information interception module is used for intercepting the media information acquisition request if the target request interface is determined to be a promotion information request interface;
wherein, determining that the target request interface is a promotion information request interface comprises:
searching in a pre-established promotion information request interface list according to the target request interface, and if a promotion information request interface matched with the target request interface is determined to be searched, determining that the target request interface is a promotion information request interface;
the null return data result construction module is used for constructing a null return data result according to a response data format template matched with the promotion information request interface and providing the null return data result to the cloud application client;
wherein, the empty return data result construction module comprises:
a response data template obtaining unit, configured to obtain a target response data format template that matches the promotion information request interface;
the response data template comprises at least one region to be filled, and each region to be filled is used for filling promotion contents of a set media type;
and the empty return data result construction unit is used for filling the empty information matched with the media type into each area to be filled in the target response data format template so as to construct and obtain the empty return data result.
4. The apparatus of claim 3, further comprising:
the request forwarding module is used for forwarding the media information acquisition request to the cloud application server if the target request interface is determined to be a normal information request interface;
and the standard return result receiving module is used for receiving a standard return result of the cloud application server for the media information acquisition request and providing the standard return result to the cloud application client.
5. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of claim 1 or 2.
6. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of claim 1 or 2.
7. A computer program product comprising a computer program which, when executed by a processor, implements the method according to claim 1 or 2.
CN202110996230.8A 2021-08-27 2021-08-27 Method, device, equipment and medium for filtering promotion information Active CN113726872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110996230.8A CN113726872B (en) 2021-08-27 2021-08-27 Method, device, equipment and medium for filtering promotion information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110996230.8A CN113726872B (en) 2021-08-27 2021-08-27 Method, device, equipment and medium for filtering promotion information

Publications (2)

Publication Number Publication Date
CN113726872A CN113726872A (en) 2021-11-30
CN113726872B true CN113726872B (en) 2022-12-06

Family

ID=78678558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110996230.8A Active CN113726872B (en) 2021-08-27 2021-08-27 Method, device, equipment and medium for filtering promotion information

Country Status (1)

Country Link
CN (1) CN113726872B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530560A (en) * 2013-09-29 2014-01-22 北京金山网络科技有限公司 Method, device and client side for advertisement blocking
CN104021172A (en) * 2014-05-30 2014-09-03 北京搜狗科技发展有限公司 Advertisement filtering method and advertisement filtering device
CN105530248A (en) * 2015-12-07 2016-04-27 珠海市君天电子科技有限公司 Media advertisement blocking method and device
CN106777194A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of Ad blocking method and mobile terminal
CN107040541A (en) * 2017-04-26 2017-08-11 努比亚技术有限公司 A kind of Ad blocking method, device and computer-readable medium
CN109842617A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 Ad blocking method, apparatus and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557465A (en) * 2019-09-09 2019-12-10 浪潮云信息技术有限公司 method and device for acquiring IP address of user side
CN111629273B (en) * 2020-04-14 2022-02-11 北京奇艺世纪科技有限公司 Video management method, device, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530560A (en) * 2013-09-29 2014-01-22 北京金山网络科技有限公司 Method, device and client side for advertisement blocking
CN104021172A (en) * 2014-05-30 2014-09-03 北京搜狗科技发展有限公司 Advertisement filtering method and advertisement filtering device
CN105530248A (en) * 2015-12-07 2016-04-27 珠海市君天电子科技有限公司 Media advertisement blocking method and device
CN106777194A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of Ad blocking method and mobile terminal
CN107040541A (en) * 2017-04-26 2017-08-11 努比亚技术有限公司 A kind of Ad blocking method, device and computer-readable medium
CN109842617A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 Ad blocking method, apparatus and storage medium

Also Published As

Publication number Publication date
CN113726872A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN113766487A (en) Cloud mobile phone information acquisition method, device, equipment and medium
US20220245208A1 (en) Method for switching skin of mini-program page, and electronic device
US20220053335A1 (en) Method for detecting an abnormal device, device and storage medium
CN113726872B (en) Method, device, equipment and medium for filtering promotion information
CN116561179A (en) Data query method, device, equipment and program product
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN114861097A (en) Browser caching method and device, electronic equipment and storage medium
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
CN113051510A (en) Interactive processing method and device, front-end equipment, back-end equipment and storage medium
CN113536031A (en) Video searching method and device, electronic equipment and storage medium
CN114461502B (en) Model monitoring method and device
CN112560462B (en) Event extraction service generation method, device, server and medium
CN115333858B (en) Login page cracking method, device, equipment and storage medium
CN113722642B (en) Webpage conversion method and device, electronic equipment and storage medium
CN114793234B (en) Message processing method, device, equipment and storage medium
CN113360689B (en) Image retrieval system, method, related device and computer program product
CN115334040B (en) Method and device for determining Internet Protocol (IP) address of domain name
CN114500438B (en) File sharing method and device, electronic equipment and storage medium
CN114895898A (en) Instruction processing method, device, equipment and storage medium
CN116436883A (en) Method, device, electronic equipment and readable storage medium for link transmission
CN117785413A (en) Task forwarding method, device, equipment and storage medium
CN114328224A (en) Method and device for reproducing exception request, electronic equipment and storage medium
CN113536163A (en) Processing method, device and equipment for picture linking and storage medium

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