WO2016127799A1 - Video advertisement filter method, apparatus and system - Google Patents

Video advertisement filter method, apparatus and system Download PDF

Info

Publication number
WO2016127799A1
WO2016127799A1 PCT/CN2016/072160 CN2016072160W WO2016127799A1 WO 2016127799 A1 WO2016127799 A1 WO 2016127799A1 CN 2016072160 W CN2016072160 W CN 2016072160W WO 2016127799 A1 WO2016127799 A1 WO 2016127799A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
address
description information
advertisement
terminal
Prior art date
Application number
PCT/CN2016/072160
Other languages
French (fr)
Chinese (zh)
Inventor
李光胜
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016127799A1 publication Critical patent/WO2016127799A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements

Definitions

  • This document relates to, but is not limited to, the field of computer network technology, and in particular, to a method, device and system for video advertisement filtering.
  • the advertisement filtering software mainly filters the advertisements in the webpage, and the video advertisement filtering effect is general; in addition, the advertisement filtering software is mostly developed for a specific browser, and different browsers need to install different plug-ins, which is very inconvenient for the user;
  • the current ad filtering software can only solve the browser-based video ad filtering problem, but there is no corresponding solution for users who watch videos through the mobile phone/appphone APP (Application).
  • Embodiments of the present invention provide a method, an apparatus, and a system for video advertisement filtering, which solve the technical problem of how to remove an advertisement video in video playback.
  • the embodiment of the invention provides a method for filtering video advertisements, which is applied to a gateway, and includes:
  • the IP address or the URL address is included in the second filtering address list, intercepting the video description information returned by the first network side server; deleting or modifying the advertisement video description information in the video description information, and obtaining the filtered advertisement
  • the played video description information is sent to the terminal.
  • the method further includes:
  • the terminal Receiving a second HTTP request message sent by the terminal, where the second HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway;
  • the terminal requests, from the second network side server, the video player that downloads the filtered advertisement to play through the gateway.
  • the method further includes: returning a redirect message to the terminal.
  • modifying the advertisement video description information in the video description information request includes:
  • the advertisement video description information in the video description information request is modified into substitute video description information whose play duration is less than a threshold.
  • the method before modifying the advertisement video description information in the video description information request to the replacement video description information that is less than the threshold, the method further includes: returning the redirect message to the terminal.
  • the method further includes updating the first filtered address list and the second filtered address list according to a predetermined rule.
  • An embodiment of the present invention further provides a device for filtering a video advertisement, which is disposed at a gateway, and includes:
  • An acquiring module configured to obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a unified request by the terminal to access the first network side server by using the gateway Resource locator URL address;
  • the first matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the first filtering address list;
  • the first processing module is configured to: when the IP address or the URL address is included in the first filtering address list, send a response message including a download address of the video player that filters the advertisement playing to the terminal;
  • the second matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the second filtering address list;
  • a second processing module configured to: when the IP address or the URL address is included in the second filtering address list, intercept the video description information returned by the first network side server; delete or modify the advertisement video description in the video description information The information is sent to the terminal by the obtained video description information of the filtered advertisement.
  • the device further includes: a communication module, configured to receive a second HTTP request message sent by the terminal, where the second HTTP request message includes the terminal requesting access to the second network side server by using the gateway a network protocol IP address or a uniform resource locator URL address; such that the terminal requests the video player to download the filtered advertisement from the second network side server through the gateway.
  • a communication module configured to receive a second HTTP request message sent by the terminal, where the second HTTP request message includes the terminal requesting access to the second network side server by using the gateway a network protocol IP address or a uniform resource locator URL address; such that the terminal requests the video player to download the filtered advertisement from the second network side server through the gateway.
  • the communication module is further configured to: after receiving the second HTTP request message sent by the terminal, return a redirect message to the terminal.
  • the second processing module includes: a first modifying unit or a second modifying unit,
  • the first modifying unit is configured to modify the advertisement video description information in the video description information request to a response message in which the body content is empty;
  • the second modifying unit is configured to modify the advertisement video description information in the video description information request to substitute video description information whose play duration is less than a threshold.
  • the communication module is further configured to: before modifying the advertisement video description information in the video description information request to the replacement video description information whose play duration is less than a threshold, return a redirect message to the terminal.
  • the apparatus further comprises an update module configured to update the first filtered address list and the second filtered address list according to a predetermined rule.
  • the embodiment of the present invention further provides a system for filtering video advertisements, comprising: the foregoing gateway and a second network side server, wherein the second network side server is configured to provide a filtering rule description document for updating a video advertisement filtering rule. So that the gateway updates the first filtered address list and the second filtered address list.
  • the second network side server is further configured to acquire a second HTTP request message sent by the terminal through the gateway, where the second request message includes an IP address or a URL requesting to access the second network side server. address;
  • the embodiment of the present invention is based on the video advertisement filtering method of the HTTP transparent proxy, and the advertisement video in the video playing can be effectively removed without any setting by the user on the client, and the method supports the automatic upgrade filtering rule function.
  • This filtering method can be conveniently implemented in the home gateway device, and all the terminals connected to the home gateway can easily filter the advertisements in the video when playing the video.
  • FIG. 1 is a flowchart of a method for filtering video advertisements according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for filtering video advertisements according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for filtering video advertisements according to an embodiment of the present invention.
  • FIG. 4 is a networking diagram of a system for video advertisement filtering according to an embodiment of the present invention.
  • FIG. 5 is a functional block diagram of a gateway according to an embodiment of the present invention.
  • the browser downloads the player plugin from the video website
  • the user browses and selects the video that he wants to play;
  • the browser requests the description information of the video, including the video file size, duration, download address, and the like;
  • the browser requests the advertisement video description information associated with the video, including the duration of the video advertisement, the download address, and the like;
  • the browser downloads and plays the advertisement video
  • the browser downloads and plays the normal video.
  • the download player plug-in operation in step 1 only watches the video in the browser mode, and the process is not needed when using the APP.
  • each request and response HTTP message has certain characteristics, so that when the home gateway intercepts the request message sent by the client to the video website server
  • the response message of the sending client can be controlled according to the characteristics of the request message by using a pre-verification and effective method, thereby achieving the purpose of video advertisement filtering.
  • the embodiment of the present invention is based on the interaction between the client (terminal) and the video server (the first network side server) when using the HTTP transmission protocol.
  • the specific method is as follows:
  • a method for filtering video advertisements according to an embodiment of the present invention is applied to a gateway, including:
  • A. Obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first The HTTP request packet includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the first network side server through the gateway;
  • step C1 it also includes:
  • the terminal Receiving a second HTTP request message sent by the terminal, where the second HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway;
  • the terminal requests, from the second network side server, the video player that downloads the filtered advertisement to play through the gateway.
  • the method further includes: returning, to the terminal, a redirect message with a status code of 302.
  • the gateway forwards the second HTTP request packet sent by the terminal to the second network side server, and forwards the description information of the video player that is filtered by the second network side server to the terminal.
  • Modifying the advertisement video description information in the video description information request in step C2 includes:
  • the advertisement video description information in the video description information request is modified into substitute video description information whose play duration is less than a threshold.
  • the method further includes: returning, to the terminal, a redirect message with a status code of 302.
  • the first method step A is combined with steps B1 and C1, which may be referred to as a method of replacing the video player.
  • the gateway When receiving the download request message (the first HTTP request message) of the terminal, the gateway responds to the download of the player of the original video website (the first network side server) by replying the redirect message with the status code 302. The address is redirected to another new address (the second network side server), and the player stored at the address is a replaced video player without the advertisement playing function.
  • the second method, step A, combined with steps B2 and C2, may be referred to as a method for controlling video advertisement description information.
  • the gateway intercepts the advertisement video description information of the player, it responds with a response status message of 200 OK. Because the terminal cannot obtain the video advertisement description information, the player will automatically skip the playback of the video advertisement and directly play the normal ordinary video.
  • the gateway intercepts the video (advertisement) description information request of the player, the original video (advertisement) description information is obtained from the destination server through the HTTP proxy method, and the advertisement video content in the original play list is deleted or modified, and then returned to the playback. In order to achieve the purpose of removing advertisements.
  • the return status code is 302 redirect message, and the original advertisement video is replaced with a substitute video with a short play duration, such as a short video of 1 second, thereby achieving a fast jump.
  • a short play duration such as a short video of 1 second
  • the method provided by the embodiment of the present invention is further capable of updating the first filtered address list and the second filtered address list according to a predetermined rule.
  • the first filtered address list and the second filtered address list may be in a merged form or in an independent form.
  • the method for filtering the video advertisement may be performed by setting an advertisement filtering rule.
  • the first filtered address list and the second filtered address list are combined, and the video advertisement filtering rule example may be in the following form:
  • the embodiment of the invention further provides a method for filtering video advertisements, which is applied to the second network side server, comprising: providing a filtering rule description document for updating the video advertisement filtering rule, so that the gateway updates the first filtering address list and the second filtering A list of addresses.
  • the method also includes:
  • the embodiment of the present invention uses the filtering rule description document of the updated video advertisement filtering rule provided by the second network side server to consider that the video website continuously adjusts the video interaction protocol, and in order to ensure that the filtering rule is always effective, the video advertisement filtering of the embodiment of the present invention is
  • the method also includes providing a filtering rule description document that updates the video advertisement filtering rules to cause the gateway to update the first filtered address list and the second filtered address list.
  • the video player download address that is sent to the terminal and includes the filtered advertisement play may be directed to other network elements or devices, or the video player that filters the advertisement play is stored on the gateway.
  • the gateway periodically (such as daily) or manually update operations by the user, query the server for new filtering rules, if any, download to the local;
  • the home gateway enables new filtering rules and performs actions to remove video ads by the new filtering method.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for the above method for video advertisement filtering.
  • an embodiment of the present invention provides a device for filtering video advertisements, which is disposed on a gateway, and includes:
  • An acquiring module configured to obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a unified request by the terminal to access the first network side server by using the gateway Resource locator URL address;
  • the first matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the first filtering address list;
  • the first processing module is configured to: when the IP address or the URL address is included in the first filtering address list, send a response message including a download address of the video player that filters the advertisement playing to the terminal;
  • the second matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the second filtering address list;
  • a second processing module configured to: when the IP address or the URL address is included in the second filtering address list, intercept the video description information returned by the first network side server; delete or modify the advertisement video description in the video description information The information is sent to the terminal by the obtained video description information of the filtered advertisement.
  • the device further includes: a communication module, configured to receive a second HTTP request report sent by the terminal
  • the second HTTP request message includes the network protocol IP address or the uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway, so that the terminal passes the gateway from the The second network side server requests to download a video player for filtering advertisement play.
  • the communication module is further configured to: after receiving the second HTTP request message sent by the terminal, return a redirect message with a status code of 302 to the terminal.
  • the second processing module comprises: a first modifying unit or a second modifying unit
  • the first modifying unit is configured to: modify the advertisement video description information in the video description information request to modify a response message whose status code is 200 OK;
  • the second modifying unit is configured to modify the advertisement video description information in the video description information request to substitute video description information whose play duration is less than a threshold.
  • the communication module is further configured to return a redirect message with a status code of 302 to the terminal before modifying the advertisement video description information in the video description information request to the substitute video description information whose play duration is less than a threshold.
  • the above apparatus further includes an update module configured to update the first filtered address list and the second filtered address list according to a predetermined rule.
  • the embodiment of the invention further provides a device for filtering a video advertisement, which is disposed on the second network side server, and includes:
  • a filtering module configured to provide a filtering rule description document for updating the video advertisement filtering rule, so that the gateway updates the first filtering address list and the second filtering address list.
  • the above device further includes:
  • a receiving module configured to acquire a second HTTP request message sent by the terminal through the gateway, where the second request message includes an IP address or a URL address that requests access to the second network side server;
  • a system for video advertisement filtering includes: the foregoing gateway, and the network side server.
  • the embodiment of the present invention uses the advertisement pre-filtering process to perform forwarding and filtering processing, as shown in FIG. 5, that is, only The HTTP packets related to the video filtering website are uploaded to the transparent HTTP proxy for forwarding and filtering. The packets unrelated to the advertisement filtering are directly forwarded by the protocol stack.
  • the pre-filtering process is as follows: after receiving the DNS query request of the connected terminal, the gateway queries the filtering rule (corresponding to the first filtering address list and the second filtering address list), if the requested domain name appears in the filtering rule in the server host name
  • the host host name may be represented by a HOST field, and the IP address or URL address corresponding to the domain name is added to the pre-filtered IP address list or the pre-filtered URL address list. If the destination address of the HTTP packet sent by the device is included in the pre-filtered IP address list, the protocol stack forwards all the packets to the transparent HTTP proxy server for advertisement filtering.
  • a family uses a PC browser to watch AAA website videos and automatically filter video ads
  • AAA website video can filter video ads by replacing the video player (flash player).
  • AAA video website home page is www.aaa.com
  • the website provides the player to download the server domain name is player.aaa.com
  • the IP address is "180.232.146.39”
  • browse The HTTP request key field of the download player initiated by the device is that the Host content is "player.aaa.com” and the request line contains: “player.swf”.
  • the alternative player (do not play video ads) can be downloaded from http://202.198.35.136/player.swf .
  • the browser sends a DNS query request with the domain name "player.aaa.com” to the gateway.
  • the gateway matches the Host field in the filtering rule, hits, and the IP address corresponding to the domain name. (180.232.146.39) is added to the "pre-filtered IP address list";
  • the browser initiates a connection establishment request to the host whose IP address is 180.232.146.39.
  • the gateway queries the destination IP address in the pre-filtered IP address list, and the query hits. After that, the gateway sends the destination IP address to the destination IP address as "180.232.146.39". "All HTTP messages are redirected to the local HTTP proxy server;
  • the gateway receives the HTTP message of the request player (player.swf) sent by the browser, and the device for filtering the video advertisement matches the advertisement filtering condition (matching with the first filtering address list), and the first processing module is called in advance after the hit.
  • the set hook function is processed;
  • the hook function constructs an HTTP response message, wherein the status code is 302, and the content of the location field is: http://202.198.35.136/player.swf, and the response message is sent to the browser;
  • the browser downloads the replacement player from http://202.198.35.136/player.swf;
  • the user selects the video and transmits the video ID number to the player for playing, and the video played at this time will not have the advertisement video.
  • a family uses a PC browser to watch CCC videos and filter video ads
  • the CCC website video can filter the advertisement video by replying to the advertisement video description information request response message with the HTTP content being empty.
  • the information related to video advertisement filtering is: the home page of the CCC video website is www.ccc.com, the domain name of the server providing the advertisement video description information file is ad.ccc.com, and the IP address is “186.111.26.52”.
  • the key segment of the HTTP request message is: the content of the Host field is "ad.ccc.com", and the request line contains: "adv”.
  • the hook function constructs an HTTP response message, wherein the status code is 200, the content of the body is empty, and the response message is sent to the player;
  • the player Since the player fails to obtain the video advertisement description information, the player skips the playback of the video advertisement and directly downloads and plays the normal video.
  • a family uses iPAD's APP software to watch BBB videos and filter video ads;
  • BBB website video can filter the advertisement video by modifying the video description information file.
  • the homepage of the BBB video website is www.bbb.com
  • the domain name of the server providing the video playlist file is video.bbb.com
  • the IP address is “182.139.26.46”
  • the HTTP request key field for requesting video description information is that the content of the Host field is "video.bbb.com”
  • the request line contains: "m3u8”.
  • the advertisement video entries in the m3u8 file all carry the keyword "video/other", which is a file format describing the media playlist.
  • the user opens the APP software on the iPAD to display the BBB video homepage information;
  • the APP sends a DNS query request with the domain name "video.bbb.com” to the gateway.
  • the gateway matches the Host field in the filtering rule, hits, and adds the IP address corresponding to the domain name (182.139.26.46) to the "pre-filtered IP address.” List";
  • the APP initiates a connection establishment request to the host whose IP address is 182.139.26.46, and the gateway queries the destination IP address in the pre-filtered IP address list to query the hit.
  • the gateway redirects all HTTP packets destined for the destination IP address "182.139.26.46" to the local HTTP proxy server through the firewall module.
  • the gateway receives the HTTP message of the request “snackless thief” playlist file sent by the APP, and the device advertisement filtering rule of the video advertisement filtering (matching with the second filtering address list), and discovers the host field in the HTTP message and The request command line meets the advertisement filtering condition, and the query hits, and the request message may be marked, and the hook function specified by the second processing module is called after receiving the response message;
  • the proxy server works, initiates a TCP connection to the server corresponding to the host field in the request message, and obtains a “worldless thief” playlist file, that is, an m3u8 file;
  • the hook function processes the m3u8 file, parses the file, and matches the play item one by one to check whether the keyword “video/other” is included, and if so, deletes the entry;
  • the proxy server sends the data processed by the hook function, that is, the m3u8 file that does not contain the advertisement video entry, to the APP;
  • 210.APP plays the m3u8 file, and the video played at this time will not have an advertisement video.
  • a family uses the android phone APP software to watch DDD videos and filter video ads.
  • the advertisement video file download request played by the DDD video website has the following keywords: the Host field is "video.ddd.com", and the request line includes "video/other"
  • the user opens the APP software on the Android mobile phone to display the DDD video homepage information;
  • APP sends a video playlist file download request to the server to obtain an m3u8 file, which includes an advertisement video entry in addition to the normal video entry;
  • APP parses the M3U8 file and plays the video files in the m3u8 file in sequence. Since the advertisement video is at the front of the playlist, the APP first plays the advertisement and initiates a download request for the advertisement video to the server;
  • the gateway receives the download request of the advertisement video, because the host field of the HTTP request is “video.ddd.com”, and the URL includes “video/other” meets the condition of the advertisement filtering rule (matches with the second filtered address list), the gateway Call the corresponding hook function for processing;
  • the hook function constructs an HTTP response message, wherein the status code is 302, and the location field points to a replacement video with a short playback duration, such as Location: http://192.168.1.1/video-ad.ts ;
  • the player downloads and plays the alternative advertisement video, and the advertisement plays very quickly because the duration of the video is very short;
  • the embodiment of the invention has the following advantages: supporting a plurality of playing terminals, including a PC browser, a mobile phone, a tablet computer, etc., and does not require any setting or configuration operation by the user on the terminal, and has good adaptability and ease of use; video advertisement filtering
  • the framework can be kept unchanged, and only the video advertisement rule and the hook function can be adjusted to remove the advertisement, and the scalability is good; the HTTP stream is performed.
  • the pre-filtering process only processes the HTTP stream related to the video advertisement by the HTTP proxy, and the data forwarding performance of the home gateway is less affected; the built-in rule update module can automatically upgrade the video advertisement filtering rule.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution can effectively remove the advertisement video in the video playback without any setting by the user on the client side.
  • the method supports the automatic upgrade of the filtering rule function to adapt to the continuously updated player software.

Abstract

A video advertisement filter method, apparatus and system, which relate to the technical field of computer networks and are capable of effectively removing an advertisement video in video playing. The method comprises: obtaining a first HTTP request message sent by a terminal, the first HTTP request message comprising an IP address or URL address of a first network side server that is requested to be accessed by the terminal by means of a gateway; when the IP address or URL address is contained in a first filter address list, sending a response message containing a video player downloading address for filtering advertisement playing to the terminal; and/or when the IP address or URL address is contained in a second filter address list, intercepting video description information returned by the first network side server; and deleting or modifying advertisement video description information in the video description information and sending the obtained video description information for filtering advertisement playing to the terminal.

Description

一种视频广告过滤的方法、装置和系统Method, device and system for video advertisement filtering 技术领域Technical field
本文涉及但不限于计算机网络技术领域,尤其涉及一种视频广告过滤的方法、装置和系统。This document relates to, but is not limited to, the field of computer network technology, and in particular, to a method, device and system for video advertisement filtering.
背景技术Background technique
目前在家中观看网络视频已经成为家庭娱乐和休闲的主要方式。各大视频网站都推出可在PC(personal computer,个人计算机)、智能手机、平板电脑等不同终端上运行的视频播放软件,以满足不同人群观看视频的需要。然而,为了维护自身利益,几乎所有的视频网站都会在视频播放前播放一段或几段视频广告,长度在10秒到数十秒不等,浪费了较多的时间和资源,对用户体验影响极大。目前用户可通过安装专门软件的方式对视频播放前的广告进行过滤。Watching online video at home has become the main way of home entertainment and leisure. All major video websites have launched video playback software that can be run on different terminals such as personal computers (computers), smart phones, and tablets to meet the needs of different groups of people watching videos. However, in order to protect their own interests, almost all video websites will play one or several video advertisements before the video is played, ranging from 10 seconds to tens of seconds, wasting more time and resources, and has a great impact on the user experience. Big. Currently, users can filter advertisements before video playback by installing specialized software.
目前广告过滤软件主要针对网页中的广告进行过滤,视频广告过滤效果一般;另外,广告过滤软件大多针对特定的浏览器进行开发,不同的浏览器则需要安装不同的插件,用户使用非常不便;而且,当前广告过滤软件只能解决浏览器方式的视频广告过滤问题,而对于通过手机/平板电脑APP(Application,应用程序)观看视频的用户来说,则没有相应的解决方法。At present, the advertisement filtering software mainly filters the advertisements in the webpage, and the video advertisement filtering effect is general; in addition, the advertisement filtering software is mostly developed for a specific browser, and different browsers need to install different plug-ins, which is very inconvenient for the user; The current ad filtering software can only solve the browser-based video ad filtering problem, but there is no corresponding solution for users who watch videos through the mobile phone/appphone APP (Application).
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种视频广告过滤的方法、装置和系统,解决如何去除视频播放中的广告视频的技术问题。Embodiments of the present invention provide a method, an apparatus, and a system for video advertisement filtering, which solve the technical problem of how to remove an advertisement video in video playback.
本发明实施例提供了一种视频广告过滤的方法,应用于网关,包括: The embodiment of the invention provides a method for filtering video advertisements, which is applied to a gateway, and includes:
获取终端发送的第一超文本传输协议HTTP请求报文,所述第一HTTP请求报文包括所述终端通过所述网关请求访问第一网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;Obtaining a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the first network side server by using the gateway ;
根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第一过滤地址列表中;Determining, according to the first HTTP request message, whether the IP address or the URL address is included in the first filtered address list;
当所述IP地址或者URL地址包含在第一过滤地址列表中时,向终端发送包含过滤广告播放的视频播放器下载地址的响应报文;Sending, by the terminal, a response message including a download address of the video player that filters advertisement play, when the IP address or the URL address is included in the first filter address list;
和/或and / or
根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第二过滤地址列表中;Determining, according to the first HTTP request message, whether the IP address or the URL address is included in the second filtered address list;
当所述IP地址或者URL地址包含在第二过滤地址列表中时,截获第一网络侧服务器返回的视频描述信息;删除或者修改所述视频描述信息中的广告视频描述信息,将获得的过滤广告播放的视频描述信息发送至终端。When the IP address or the URL address is included in the second filtering address list, intercepting the video description information returned by the first network side server; deleting or modifying the advertisement video description information in the video description information, and obtaining the filtered advertisement The played video description information is sent to the terminal.
可选地,所述方法还包括:Optionally, the method further includes:
接收终端发送的第二HTTP请求报文,所述第二HTTP请求报文包括所述终端通过所述网关请求访问第二网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。Receiving a second HTTP request message sent by the terminal, where the second HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway; The terminal requests, from the second network side server, the video player that downloads the filtered advertisement to play through the gateway.
可选地,接收终端发送的第二HTTP请求报文之后,还包括:向所述终端返回重定向报文。Optionally, after receiving the second HTTP request packet sent by the terminal, the method further includes: returning a redirect message to the terminal.
可选地,修改所述视频描述信息请求中的广告视频描述信息包括:Optionally, modifying the advertisement video description information in the video description information request includes:
将所述视频描述信息请求中的广告视频描述信息修改为报体内容为空的响应报文;Modifying the advertisement video description information in the video description information request to a response message whose content is empty;
或者,将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息。Alternatively, the advertisement video description information in the video description information request is modified into substitute video description information whose play duration is less than a threshold.
可选地,将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息之前,还包括:向所述终端返回重定向报文。 Optionally, before modifying the advertisement video description information in the video description information request to the replacement video description information that is less than the threshold, the method further includes: returning the redirect message to the terminal.
可选地,所述方法还包括根据预定规则更新第一过滤地址列表和第二过滤地址列表。Optionally, the method further includes updating the first filtered address list and the second filtered address list according to a predetermined rule.
本发明实施例还提供了一种视频广告过滤的装置,设置于网关,包括:An embodiment of the present invention further provides a device for filtering a video advertisement, which is disposed at a gateway, and includes:
获取模块,设置为获取终端发送的第一超文本传输协议HTTP请求报文,所述第一HTTP请求报文包括所述终端通过所述网关请求访问第一网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;An acquiring module, configured to obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a unified request by the terminal to access the first network side server by using the gateway Resource locator URL address;
第一匹配模块,设置为根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第一过滤地址列表中;The first matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the first filtering address list;
第一处理模块,设置为当所述IP地址或者URL地址包含在第一过滤地址列表中时,向终端发送包含过滤广告播放的视频播放器下载地址的响应报文;The first processing module is configured to: when the IP address or the URL address is included in the first filtering address list, send a response message including a download address of the video player that filters the advertisement playing to the terminal;
和/或and / or
第二匹配模块,设置为根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第二过滤地址列表中;The second matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the second filtering address list;
第二处理模块,设置为当所述IP地址或者URL地址包含在第二过滤地址列表中时,截获第一网络侧服务器返回的视频描述信息;删除或者修改所述视频描述信息中的广告视频描述信息,将获得的过滤广告播放的视频描述信息发送至终端。a second processing module, configured to: when the IP address or the URL address is included in the second filtering address list, intercept the video description information returned by the first network side server; delete or modify the advertisement video description in the video description information The information is sent to the terminal by the obtained video description information of the filtered advertisement.
可选地,所述装置还包括:通信模块,设置为接收终端发送的第二HTTP请求报文,所述第二HTTP请求报文包括所述终端通过所述网关请求访问第二网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。Optionally, the device further includes: a communication module, configured to receive a second HTTP request message sent by the terminal, where the second HTTP request message includes the terminal requesting access to the second network side server by using the gateway a network protocol IP address or a uniform resource locator URL address; such that the terminal requests the video player to download the filtered advertisement from the second network side server through the gateway.
可选地,所述通信模块,还设置为在接收终端发送的第二HTTP请求报文之后,向所述终端返回重定向报文。Optionally, the communication module is further configured to: after receiving the second HTTP request message sent by the terminal, return a redirect message to the terminal.
可选地,第二处理模块包括:第一修改单元或第二修改单元,Optionally, the second processing module includes: a first modifying unit or a second modifying unit,
所述第一修改单元设置为将所述视频描述信息请求中的广告视频描述信息修改为报体内容为空的响应报文; The first modifying unit is configured to modify the advertisement video description information in the video description information request to a response message in which the body content is empty;
所述第二修改单元设置为将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息。The second modifying unit is configured to modify the advertisement video description information in the video description information request to substitute video description information whose play duration is less than a threshold.
可选地,所述通信模块还设置为在将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息之前,向所述终端返回重定向报文。Optionally, the communication module is further configured to: before modifying the advertisement video description information in the video description information request to the replacement video description information whose play duration is less than a threshold, return a redirect message to the terminal.
优选地,所述装置还包括更新模块,设置为根据预定规则更新第一过滤地址列表和第二过滤地址列表。Preferably, the apparatus further comprises an update module configured to update the first filtered address list and the second filtered address list according to a predetermined rule.
本发明实施例还提供了一种视频广告过滤的系统,其中,包括:上述的网关和第二网络侧服务器,所述第二网络侧服务器,设置为提供更新视频广告过滤规则的过滤规则描述文档,以使所述网关更新第一过滤地址列表和第二过滤地址列表。The embodiment of the present invention further provides a system for filtering video advertisements, comprising: the foregoing gateway and a second network side server, wherein the second network side server is configured to provide a filtering rule description document for updating a video advertisement filtering rule. So that the gateway updates the first filtered address list and the second filtered address list.
可选地,所述第二网络侧服务器,还设置为获取终端通过所述网关发送的第二HTTP请求报文,所述第二请求报文包括请求访问第二网络侧服务器的IP地址或者URL地址;Optionally, the second network side server is further configured to acquire a second HTTP request message sent by the terminal through the gateway, where the second request message includes an IP address or a URL requesting to access the second network side server. address;
向所述网关发送过滤广告播放的视频播放器的描述信息,以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。Sending, to the gateway, description information of a video player that filters advertisement play, so that the terminal requests, from the second network side server, to download a video player that filters advertisement play through the gateway.
与相关技术相比,本发明实施例基于HTTP透明代理的视频广告过滤方法,无需用户在客户端进行任何设置,即可有效去除视频播放中的广告视频,同时,该方法支持自动升级过滤规则功能,以适应不断更新的播放器软件。这种过滤方法可以方便地在家庭网关设备中实施,家庭网关下挂的所有终端在播放视频时都可以轻松过滤掉视频中的广告。Compared with the related art, the embodiment of the present invention is based on the video advertisement filtering method of the HTTP transparent proxy, and the advertisement video in the video playing can be effectively removed without any setting by the user on the client, and the method supports the automatic upgrade filtering rule function. To adapt to the constantly updated player software. This filtering method can be conveniently implemented in the home gateway device, and all the terminals connected to the home gateway can easily filter the advertisements in the video when playing the video.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例的视频广告过滤的方法的流程图;1 is a flowchart of a method for filtering video advertisements according to an embodiment of the present invention;
图2为本发明实施例的视频广告过滤的方法的流程图;2 is a flowchart of a method for filtering video advertisements according to an embodiment of the present invention;
图3为本发明实施例的视频广告过滤的装置的结构示意图; 3 is a schematic structural diagram of an apparatus for filtering video advertisements according to an embodiment of the present invention;
图4为本发明实施例的视频广告过滤的系统的组网图;4 is a networking diagram of a system for video advertisement filtering according to an embodiment of the present invention;
图5为本发明实施例的网关的功能模块关系图。FIG. 5 is a functional block diagram of a gateway according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
相关技术中,视频播放的基本业务交互过程如下:In the related art, the basic service interaction process of video playback is as follows:
1.浏览器从视频网站下载播放器插件;1. The browser downloads the player plugin from the video website;
2.用户浏览并选择想要播放的视频;2. The user browses and selects the video that he wants to play;
3.浏览器请求该视频的描述信息,包括视频文件大小、时长、下载地址等;3. The browser requests the description information of the video, including the video file size, duration, download address, and the like;
4.浏览器请求与该视频关联的广告视频描述信息,包括视频广告时长、下载地址等;4. The browser requests the advertisement video description information associated with the video, including the duration of the video advertisement, the download address, and the like;
5.浏览器下载并播放广告视频;5. The browser downloads and plays the advertisement video;
6.浏览器下载并播放普通视频。6. The browser downloads and plays the normal video.
其中,步骤1中的下载播放器插件操作只针对于浏览器方式观看视频,当使用APP时无需该过程。Among them, the download player plug-in operation in step 1 only watches the video in the browser mode, and the process is not needed when using the APP.
由于上述交互过程都使用HTTP协议,且对于某个特定的视频网站,每个请求和响应的HTTP报文都具有一定的特征,这样,当家庭网关截获住客户端发往视频网站服务器的请求报文时,就可以根据请求报文的特征使用预先验证有效的方法控制发送客户端的响应报文,从而达到视频广告过滤的目的。本发明实施例基于在播放视频时客户端(终端)同视频服务器(第一网络侧服务器)之间的交互使用HTTP传输协议进行设计。具体方式如下:Since the above interaction process uses the HTTP protocol, and for a specific video website, each request and response HTTP message has certain characteristics, so that when the home gateway intercepts the request message sent by the client to the video website server In the text, the response message of the sending client can be controlled according to the characteristics of the request message by using a pre-verification and effective method, thereby achieving the purpose of video advertisement filtering. The embodiment of the present invention is based on the interaction between the client (terminal) and the video server (the first network side server) when using the HTTP transmission protocol. The specific method is as follows:
如图1和图2所示,本发明实施例提供的一种视频广告过滤的方法,应用于网关,包括:As shown in FIG. 1 and FIG. 2, a method for filtering video advertisements according to an embodiment of the present invention is applied to a gateway, including:
A、获取终端发送的第一超文本传输协议HTTP请求报文,所述第一 HTTP请求报文包括所述终端通过所述网关请求访问第一网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;A. Obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first The HTTP request packet includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the first network side server through the gateway;
B1、根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第一过滤地址列表中;B1, determining, according to the first HTTP request packet, whether the IP address or the URL address is included in the first filtered address list;
C1、当所述IP地址或者URL地址包含在第一过滤地址列表中时,向终端发送包含过滤广告播放的视频播放器下载地址的响应报文;C1. When the IP address or the URL address is included in the first filtering address list, send a response message including a download address of the video player that filters the advertisement playing to the terminal;
和/或and / or
B2、根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第二过滤地址列表中;B2, determining, according to the first HTTP request packet, whether the IP address or the URL address is included in the second filtering address list;
C2、当所述IP地址或者URL地址包含在第二过滤地址列表中时,截获第一网络侧服务器返回的视频信息请求;删除或者修改所述视频描述信息请中的广告视频描述信息,将获得的过滤广告播放的视频描述信息发送至终端。C2, when the IP address or the URL address is included in the second filtering address list, intercepting the video information request returned by the first network side server; deleting or modifying the advertisement video description information in the video description information, The video description information of the filtered advertisement is sent to the terminal.
步骤C1之后还包括:After step C1, it also includes:
接收终端发送的第二HTTP请求报文,所述第二HTTP请求报文包括所述终端通过所述网关请求访问第二网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。Receiving a second HTTP request message sent by the terminal, where the second HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway; The terminal requests, from the second network side server, the video player that downloads the filtered advertisement to play through the gateway.
接收终端发送的第二HTTP请求报文之后,还包括:向所述终端返回状态码为302的重定向报文。After receiving the second HTTP request message sent by the terminal, the method further includes: returning, to the terminal, a redirect message with a status code of 302.
本发明实施例中网关将终端发送的第二HTTP请求报文转发至第二网络侧服务器,并将第二网络侧服务器发送的过滤广告播放的视频播放器的描述信息转发至所述终端。In the embodiment of the present invention, the gateway forwards the second HTTP request packet sent by the terminal to the second network side server, and forwards the description information of the video player that is filtered by the second network side server to the terminal.
步骤C2中修改所述视频描述信息请求中的广告视频描述信息包括:Modifying the advertisement video description information in the video description information request in step C2 includes:
将所述视频描述信息请求中的广告视频描述信息修改为状态码为200OK的报体内容为空的响应报文;Transmitting the advertisement video description information in the video description information request to a response message with a status code of 200 OK;
或者,将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息。 Alternatively, the advertisement video description information in the video description information request is modified into substitute video description information whose play duration is less than a threshold.
将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息之前,还包括:向所述终端返回状态码为302的重定向报文。Before modifying the advertisement video description information in the video description information request to the replacement video description information whose play duration is less than the threshold, the method further includes: returning, to the terminal, a redirect message with a status code of 302.
其中第一种方式步骤A与步骤B1、C1组合,可以称为替换视频播放器的方式。网关在收到终端的下载播放器请求报文(第一HTTP请求报文)时,通过回复状态码为302的重定向报文,将指向原视频网站(第一网络侧服务器)播放器的下载地址重定向至另一新地址(第二网络侧服务器),该地址存放的播放器为不带广告播放功能的被替换掉的视频播放器。The first method step A is combined with steps B1 and C1, which may be referred to as a method of replacing the video player. When receiving the download request message (the first HTTP request message) of the terminal, the gateway responds to the download of the player of the original video website (the first network side server) by replying the redirect message with the status code 302. The address is redirected to another new address (the second network side server), and the player stored at the address is a replaced video player without the advertisement playing function.
第二种方式步骤A与步骤B2、C2组合,可以称为视频广告描述信息控制的方式,对于网关在截获住播放器的广告视频描述信息的请求时,回复报体状态码为200OK的响应报文,终端由于无法获取视频广告描述信息,播放器会自动跳过视频广告的播放,直接播放正常的普通视频。对于网关截获住播放器的视频(广告)描述信息请求后,通过HTTP代理方式从目的服务器获取原始的视频(广告)描述信息,删除或修改掉原播放列表中的广告视频内容后再返回给播放器,从而达到去除广告的目的。对于网关截获住播放器发送的下载广告视频请求时,返回状态码为302重定向报文,将原广告视频替换成播放时长很短的替代视频,如1秒钟的短视频,从而达到快速跳过视频广告播放的效果。The second method, step A, combined with steps B2 and C2, may be referred to as a method for controlling video advertisement description information. When the gateway intercepts the advertisement video description information of the player, it responds with a response status message of 200 OK. Because the terminal cannot obtain the video advertisement description information, the player will automatically skip the playback of the video advertisement and directly play the normal ordinary video. After the gateway intercepts the video (advertisement) description information request of the player, the original video (advertisement) description information is obtained from the destination server through the HTTP proxy method, and the advertisement video content in the original play list is deleted or modified, and then returned to the playback. In order to achieve the purpose of removing advertisements. When the gateway intercepts the download advertisement video request sent by the player, the return status code is 302 redirect message, and the original advertisement video is replaced with a substitute video with a short play duration, such as a short video of 1 second, thereby achieving a fast jump. The effect of video ad playback.
本发明实施例提供的方法还能够根据预定规则更新第一过滤地址列表和第二过滤地址列表。The method provided by the embodiment of the present invention is further capable of updating the first filtered address list and the second filtered address list according to a predetermined rule.
第一过滤地址列表和第二过滤地址列表可以为合并形式的,也可以为独立形式的。The first filtered address list and the second filtered address list may be in a merged form or in an independent form.
上述视频广告过滤的方法可以通过设置广告过滤规则进行,本发明实施例中利用合并第一过滤地址列表和第二过滤地址列表,视频广告过滤规则示例可以如下表形式:The method for filtering the video advertisement may be performed by setting an advertisement filtering rule. In the embodiment of the present invention, the first filtered address list and the second filtered address list are combined, and the video advertisement filtering rule example may be in the following form:
Figure PCTCN2016072160-appb-000001
Figure PCTCN2016072160-appb-000001
Figure PCTCN2016072160-appb-000002
Figure PCTCN2016072160-appb-000002
发明实施例还提供一种视频广告过滤的方法,应用于第二网络侧服务器,包括:提供更新视频广告过滤规则的过滤规则描述文档,以使所述网关更新第一过滤地址列表和第二过滤地址列表。The embodiment of the invention further provides a method for filtering video advertisements, which is applied to the second network side server, comprising: providing a filtering rule description document for updating the video advertisement filtering rule, so that the gateway updates the first filtering address list and the second filtering A list of addresses.
当所述第二网络侧服务器存放所述不带广告播放功能的视频播放器时,即网关向终端发送的包含过滤广告播放的视频播放器下载地址指向所述第二网络侧服务器时,所述方法还包括:When the second network side server stores the video player without the advertisement playing function, that is, when the video player download address sent by the gateway to the terminal including the filtered advertisement play points to the second network side server, The method also includes:
获取终端通过所述网关发送的第二HTTP请求报文,所述第二请求报文包括请求访问第二网络侧服务器的IP地址或者URL地址;Acquiring a second HTTP request message sent by the terminal through the gateway, where the second request message includes an IP address or a URL address requesting access to the second network side server;
向所述网关发送过滤广告播放的视频播放器的描述信息,以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。Sending, to the gateway, description information of a video player that filters advertisement play, so that the terminal requests, from the second network side server, to download a video player that filters advertisement play through the gateway.
本发明实施例利用第二网络侧服务器提供的更新视频广告过滤规则的过滤规则描述文档是考虑到视频网站会不断调整视频交互协议,为了保证过滤规则始终有效,本发明实施例的视频广告过滤的方法还包括:提供更新视频广告过滤规则的过滤规则描述文档,以使所述网关更新第一过滤地址列表和第二过滤地址列表。The embodiment of the present invention uses the filtering rule description document of the updated video advertisement filtering rule provided by the second network side server to consider that the video website continuously adjusts the video interaction protocol, and in order to ensure that the filtering rule is always effective, the video advertisement filtering of the embodiment of the present invention is The method also includes providing a filtering rule description document that updates the video advertisement filtering rules to cause the gateway to update the first filtered address list and the second filtered address list.
在其他实施例汇总网关向终端发送的包含过滤广告播放的视频播放器下载地址可以指向其他网元或者设备,或者过滤广告播放的视频播放器存储于所述网关上。In other embodiments, the video player download address that is sent to the terminal and includes the filtered advertisement play may be directed to other network elements or devices, or the video player that filters the advertisement play is stored on the gateway.
更新视频广告过滤规则的过程如下:The process of updating the video ad filtering rules is as follows:
1.当检测到某视频网站视频广告过滤功能失效时,根据其协议特征,找 出新的有效的视频广告过滤方法;1. When it is detected that the video advertisement filtering function of a video website is invalid, according to the characteristics of the protocol, look for New effective video ad filtering methods;
2.更新视频广告过滤规则服务器中的过滤规则描述文档;2. Update the filtering rule description document in the video advertisement filtering rule server;
3.网关定期(如每天)或由用户手动进行更新操作,向服务器查询是否有新的过滤规则,如果有,则下载至本地;3. The gateway periodically (such as daily) or manually update operations by the user, query the server for new filtering rules, if any, download to the local;
4.家庭网关启用新的过滤规则并按新的过滤方法执行操作去掉视频广告。4. The home gateway enables new filtering rules and performs actions to remove video ads by the new filtering method.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于上述的一种视频广告过滤的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for the above method for video advertisement filtering.
如图3所示,本发明实施例提供一种视频广告过滤的装置,设置于网关,包括:As shown in FIG. 3, an embodiment of the present invention provides a device for filtering video advertisements, which is disposed on a gateway, and includes:
获取模块,设置为获取终端发送的第一超文本传输协议HTTP请求报文,所述第一HTTP请求报文包括所述终端通过所述网关请求访问第一网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;An acquiring module, configured to obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a unified request by the terminal to access the first network side server by using the gateway Resource locator URL address;
第一匹配模块,设置为根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第一过滤地址列表中;The first matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the first filtering address list;
第一处理模块,设置为当所述IP地址或者URL地址包含在第一过滤地址列表中时,向终端发送包含过滤广告播放的视频播放器下载地址的响应报文;The first processing module is configured to: when the IP address or the URL address is included in the first filtering address list, send a response message including a download address of the video player that filters the advertisement playing to the terminal;
和/或and / or
第二匹配模块,设置为根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第二过滤地址列表中;The second matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the second filtering address list;
第二处理模块,设置为当所述IP地址或者URL地址包含在第二过滤地址列表中时,截获第一网络侧服务器返回的视频描述信息;删除或者修改所述视频描述信息中的广告视频描述信息,将获得的过滤广告播放的视频描述信息发送至终端。a second processing module, configured to: when the IP address or the URL address is included in the second filtering address list, intercept the video description information returned by the first network side server; delete or modify the advertisement video description in the video description information The information is sent to the terminal by the obtained video description information of the filtered advertisement.
上述装置还包括:通信模块,设置为接收终端发送的第二HTTP请求报 文,所述第二HTTP请求报文包括所述终端通过所述网关请求访问第二网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。The device further includes: a communication module, configured to receive a second HTTP request report sent by the terminal The second HTTP request message includes the network protocol IP address or the uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway, so that the terminal passes the gateway from the The second network side server requests to download a video player for filtering advertisement play.
可选地,所述通信模块,还设置为在接收终端发送的第二HTTP请求报文之后,向所述终端返回状态码为302的重定向报文。Optionally, the communication module is further configured to: after receiving the second HTTP request message sent by the terminal, return a redirect message with a status code of 302 to the terminal.
上述的装置,其中,第二处理模块包括:第一修改单元或第二修改单元,The above device, wherein the second processing module comprises: a first modifying unit or a second modifying unit,
所述第一修改单元设置为将所述视频描述信息请求中的广告视频描述信息修改状态码为200OK的报体内容为空的响应报文;The first modifying unit is configured to: modify the advertisement video description information in the video description information request to modify a response message whose status code is 200 OK;
所述第二修改单元设置为将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息。The second modifying unit is configured to modify the advertisement video description information in the video description information request to substitute video description information whose play duration is less than a threshold.
所述通信模块还设置为在将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息之前,向所述终端返回状态码为302的重定向报文。The communication module is further configured to return a redirect message with a status code of 302 to the terminal before modifying the advertisement video description information in the video description information request to the substitute video description information whose play duration is less than a threshold.
上述的装置还包括更新模块,设置为根据预定规则更新第一过滤地址列表和第二过滤地址列表。The above apparatus further includes an update module configured to update the first filtered address list and the second filtered address list according to a predetermined rule.
本发明实施例还提供一种视频广告过滤的装置,设置于第二网络侧服务器,包括:The embodiment of the invention further provides a device for filtering a video advertisement, which is disposed on the second network side server, and includes:
过滤模块,设置为提供更新视频广告过滤规则的过滤规则描述文档,以使所述网关更新第一过滤地址列表和第二过滤地址列表。And a filtering module, configured to provide a filtering rule description document for updating the video advertisement filtering rule, so that the gateway updates the first filtering address list and the second filtering address list.
上述装置,还包括:The above device further includes:
接收模块,设置为获取终端通过所述网关发送的第二HTTP请求报文,所述第二请求报文包括请求访问第二网络侧服务器的IP地址或者URL地址;a receiving module, configured to acquire a second HTTP request message sent by the terminal through the gateway, where the second request message includes an IP address or a URL address that requests access to the second network side server;
下载模块,向所述网关发送过滤广告播放的视频播放器的描述信息,以使得所述终端通过所述网关从所述第二网络侧服务器请求下载过滤广告播放的视频播放器。 And downloading, by the module, the description information of the video player that filters the advertisement to the gateway, so that the terminal requests, by the gateway, the video player that downloads the advertisement advertisement from the second network side server.
如图4所示,本发明实施例一种视频广告过滤的系统,包括:上述的网关,和上述的网络侧服务器。As shown in FIG. 4, a system for video advertisement filtering according to an embodiment of the present invention includes: the foregoing gateway, and the network side server.
另外,由于HTTP报文特征字段查询需要消耗较多的CPU,为提高家庭网关的数据转发性能,本发明实施例利用广告预过滤处理进行转发和过滤处理,如图5所示,即只将与视频过滤网站相关的HTTP报文上传至透明HTTP代理进行转发和过滤处理,与广告过滤无关的报文则由协议栈直接转发。预过滤处理过程如下:网关在接收到下挂终端的DNS查询请求后,查询过滤规则(与第一过滤地址列表和第二过滤地址列表对应),如果请求的域名出现在过滤规则中服务器主机名,本发明实施例中可以用HOST字段表示服务器主机名,则将该域名对应的IP地址或者URL地址添加至预过滤IP地址列表或者预过滤URL地址列表。后续如果下挂设备发送的HTTP报文的目的地址包含在预过滤IP地址列表,协议栈将该连接所有报文上交至透明HTTP代理服务器进行广告过滤处理。In addition, the HTTP packet feature field query needs to consume a large number of CPUs. To improve the data forwarding performance of the home gateway, the embodiment of the present invention uses the advertisement pre-filtering process to perform forwarding and filtering processing, as shown in FIG. 5, that is, only The HTTP packets related to the video filtering website are uploaded to the transparent HTTP proxy for forwarding and filtering. The packets unrelated to the advertisement filtering are directly forwarded by the protocol stack. The pre-filtering process is as follows: after receiving the DNS query request of the connected terminal, the gateway queries the filtering rule (corresponding to the first filtering address list and the second filtering address list), if the requested domain name appears in the filtering rule in the server host name In the embodiment of the present invention, the host host name may be represented by a HOST field, and the IP address or URL address corresponding to the domain name is added to the pre-filtered IP address list or the pre-filtered URL address list. If the destination address of the HTTP packet sent by the device is included in the pre-filtered IP address list, the protocol stack forwards all the packets to the transparent HTTP proxy server for advertisement filtering.
实施一Implementation one
某家庭使用PC浏览器观看AAA网站视频并自动过滤视频广告;A family uses a PC browser to watch AAA website videos and automatically filter video ads;
前提:AAA网站视频可以通过替换视频播放器(flash播放器)的方式过滤视频广告。Prerequisite: AAA website video can filter video ads by replacing the video player (flash player).
为描述方便,假设与视频网站相关的信息为:AAA视频网站首页为www.aaa.com,该网站提供播放器下载的服务器域名为player.aaa.com,IP地址为“180.232.146.39”,浏览器发起的下载播放器的HTTP请求关键字段为,Host内容为“player.aaa.com”,且请求行包含:“player.swf”。替代播放器(不播放视频广告)的下载地址为http://202.198.35.136/player.swfFor the convenience of description, it is assumed that the information related to the video website is: AAA video website home page is www.aaa.com, the website provides the player to download the server domain name is player.aaa.com, the IP address is "180.232.146.39", browse The HTTP request key field of the download player initiated by the device is that the Host content is "player.aaa.com" and the request line contains: "player.swf". The alternative player (do not play video ads) can be downloaded from http://202.198.35.136/player.swf .
其实施步骤如下:The implementation steps are as follows:
101.PC上打开浏览器,访问某视频网站主页,例如http://www.aaa.com101. Open a browser on the PC and visit a video website homepage, such as http://www.aaa.com ;
102.浏览器向网关发送域名为“player.aaa.com”的DNS查询请求,网关匹配过滤规则中的Host字段,命中,将该域名对应的IP地址 (180.232.146.39)添加至“预过滤IP地址列表”;102. The browser sends a DNS query request with the domain name "player.aaa.com" to the gateway. The gateway matches the Host field in the filtering rule, hits, and the IP address corresponding to the domain name. (180.232.146.39) is added to the "pre-filtered IP address list";
103.浏览器向IP地址为180.232.146.39的主机发起连接建立请求,网关在预过滤IP地址列表中查询目的IP地址,查询命中,此后,网关通过防火墙模块将发往目的IP为“180.232.146.39”的所有HTTP报文重定向至本地HTTP代理服务器;103. The browser initiates a connection establishment request to the host whose IP address is 180.232.146.39. The gateway queries the destination IP address in the pre-filtered IP address list, and the query hits. After that, the gateway sends the destination IP address to the destination IP address as "180.232.146.39". "All HTTP messages are redirected to the local HTTP proxy server;
104.网关收到浏览器发送的请求播放器(player.swf)的HTTP报文,视频广告过滤的装置匹配广告过滤条件(与第一过滤地址列表进行匹配),命中后调用第一处理模块预先设定的钩子函数进行处理;104. The gateway receives the HTTP message of the request player (player.swf) sent by the browser, and the device for filtering the video advertisement matches the advertisement filtering condition (matching with the first filtering address list), and the first processing module is called in advance after the hit. The set hook function is processed;
105.钩子函数构造HTTP响应报文,其中状态码为302,location字段内容为:http://202.198.35.136/player.swf,发送响应报文给浏览器;105. The hook function constructs an HTTP response message, wherein the status code is 302, and the content of the location field is: http://202.198.35.136/player.swf, and the response message is sent to the browser;
106.浏览器从http://202.198.35.136/player.swf处下载替换播放器;106. The browser downloads the replacement player from http://202.198.35.136/player.swf;
107.用户选择视频,将视频ID号传送给播放器进行播放,此时播放的视频将不带广告视频。107. The user selects the video and transmits the video ID number to the player for playing, and the video played at this time will not have the advertisement video.
通过以上流程,完成基于HTTP代理对广告视频过滤的应用。Through the above process, the application of advertising video filtering based on HTTP proxy is completed.
实施二Implementation two
某家庭使用PC浏览器观看CCC视频并过滤视频广告;A family uses a PC browser to watch CCC videos and filter video ads;
前提:CCC网站视频可以通过回复HTTP报体内容为空的广告视频描述信息请求响应报文来过滤广告视频。Prerequisite: The CCC website video can filter the advertisement video by replying to the advertisement video description information request response message with the HTTP content being empty.
为描述方便,假设与视频广告过滤相关的信息为:CCC视频网站首页为www.ccc.com,提供广告视频描述信息文件的服务器域名为ad.ccc.com,IP地址为“186.111.26.52”,广告视频描述信息HTTP请求报文的关键字段为,Host字段内容为“ad.ccc.com”,且请求行包含:“adv”。For the convenience of description, it is assumed that the information related to video advertisement filtering is: the home page of the CCC video website is www.ccc.com, the domain name of the server providing the advertisement video description information file is ad.ccc.com, and the IP address is “186.111.26.52”. The key segment of the HTTP request message is: the content of the Host field is "ad.ccc.com", and the request line contains: "adv".
其实施步骤如下:The implementation steps are as follows:
301.PC上打开浏览器,访问某视频网站主页,例如http://www.ccc.com,并从该网站下载视频播放器插件;301. Open a browser on the PC, visit a video website homepage, such as http://www.ccc.com, and download the video player plug-in from the website;
302.用户浏览并选择待播放的视频,设视频ID为vid=123456789; 302. The user browses and selects the video to be played, and sets the video ID to vid=123456789;
303.播放器客户端向视频服务器发起HTTP请求,获取vid=123456789的视频描述信息文件;303. The player client initiates an HTTP request to the video server, and obtains a video description information file of vid=123456789;
304.播放器客户端向广告视频服务器发起HTTP请求,获取vid=123456789对应的视频广告信息,由于该HTTP请求中Host字段为ad.ccc.com,且请求行包含:“adv”,网关查询过滤规则(与第二过滤地址列表进行匹配),命中,并调用第二处理模块相应的钩子函数处理;304. The player client initiates an HTTP request to the advertisement video server, and obtains video advertisement information corresponding to vid=123456789. Since the Host field in the HTTP request is ad.ccc.com, and the request line includes: “adv”, the gateway query filters Rules (matching with the second filtered address list), hitting, and calling the corresponding hook function processing of the second processing module;
305.钩子函数构造HTTP响应报文,其中状态码为200,报体内容为空,并将响应报文发送至播放器;305. The hook function constructs an HTTP response message, wherein the status code is 200, the content of the body is empty, and the response message is sent to the player;
306.由于播放器获取视频广告描述信息失败,播放器跳过视频广告的播放,并直接下载和播放普通视频。306. Since the player fails to obtain the video advertisement description information, the player skips the playback of the video advertisement and directly downloads and plays the normal video.
通过以上流程,完成整个基于HTTP代理对广告视频过滤的应用。Through the above process, the entire application based on HTTP proxy for advertising video filtering is completed.
实施三Implementation three
某家庭使用iPAD的APP软件观看BBB视频并滤视频广告;A family uses iPAD's APP software to watch BBB videos and filter video ads;
前提:BBB网站视频可以通过修改视频描述信息文件方式过滤广告视频。Prerequisite: BBB website video can filter the advertisement video by modifying the video description information file.
为描述方便,假设与视频广告过滤相关的信息为:BBB视频网站首页为www.bbb.com,提供视频播放列表文件的服务器域名为video.bbb.com,IP地址为“182.139.26.46”,APP请求视频描述信息的HTTP请求关键字段为,Host字段内容为“video.bbb.com”,且请求行包含:“m3u8”。m3u8文件中的广告视频条目都带有关键字“video/other”,所述m3u8文件是一种描述媒体播放列表的文件格式。For the convenience of description, it is assumed that the information related to video advertisement filtering is: the homepage of the BBB video website is www.bbb.com, the domain name of the server providing the video playlist file is video.bbb.com, and the IP address is “182.139.26.46”, APP The HTTP request key field for requesting video description information is that the content of the Host field is "video.bbb.com", and the request line contains: "m3u8". The advertisement video entries in the m3u8 file all carry the keyword "video/other", which is a file format describing the media playlist.
其实施步骤如下:The implementation steps are as follows:
201.用户打开iPAD上的APP软件,显示BBB视频首页信息;201. The user opens the APP software on the iPAD to display the BBB video homepage information;
202.选择某一视频,如电影“天下无贼”,APP显示该电影相关描述信息;202. Select a certain video, such as a movie "There is no thief in the world", and the APP displays the description information of the movie;
203.点击“播放”按钮,选择播放该视频; 203. Click the "Play" button and select to play the video;
204.APP向网关发送域名为“video.bbb.com”的DNS查询请求,网关匹配过滤规则中的Host字段,命中,将该域名对应的IP地址(182.139.26.46)添加至“预过滤IP地址列表”;204. The APP sends a DNS query request with the domain name "video.bbb.com" to the gateway. The gateway matches the Host field in the filtering rule, hits, and adds the IP address corresponding to the domain name (182.139.26.46) to the "pre-filtered IP address." List";
205.APP向IP地址为182.139.26.46的主机发起连接建立请求,网关在预过滤IP地址列表中查询目的IP地址,查询命中。网关通过防火墙模块将发往目的IP为“182.139.26.46”的所有HTTP报文重定向至本地HTTP代理服务器;205. The APP initiates a connection establishment request to the host whose IP address is 182.139.26.46, and the gateway queries the destination IP address in the pre-filtered IP address list to query the hit. The gateway redirects all HTTP packets destined for the destination IP address "182.139.26.46" to the local HTTP proxy server through the firewall module.
206.网关收到APP发送的请求“天下无贼”播放列表文件的HTTP报文,视频广告过滤的装置查询过滤规则(与第二过滤地址列表进行匹配),发现HTTP报文中的host字段和请求命令行符合广告过滤条件,查询命中,可以对该请求报文进行标记,要求收到响应报文后调用第二处理模块指定的钩子函数;206. The gateway receives the HTTP message of the request “snackless thief” playlist file sent by the APP, and the device advertisement filtering rule of the video advertisement filtering (matching with the second filtering address list), and discovers the host field in the HTTP message and The request command line meets the advertisement filtering condition, and the query hits, and the request message may be marked, and the hook function specified by the second processing module is called after receiving the response message;
207.代理服务器工作,向请求报文中host字段对应的服务器发起TCP连接并获取到“天下无贼”播放列表文件,即m3u8文件;207. The proxy server works, initiates a TCP connection to the server corresponding to the host field in the request message, and obtains a “worldless thief” playlist file, that is, an m3u8 file;
208.钩子函数对m3u8文件进行处理,解析文件,逐条匹配播放条目检查是否包含关键字“video/other”,如果包含,则删除该条目;208. The hook function processes the m3u8 file, parses the file, and matches the play item one by one to check whether the keyword “video/other” is included, and if so, deletes the entry;
209.代理服务器将钩子函数处理后的数据,即不包含广告视频条目的m3u8文件回送至APP;209. The proxy server sends the data processed by the hook function, that is, the m3u8 file that does not contain the advertisement video entry, to the APP;
210.APP播放m3u8文件,此时播放的视频将不带广告视频。210.APP plays the m3u8 file, and the video played at this time will not have an advertisement video.
通过以上流程,完成整个基于HTTP代理对广告视频过滤的应用。Through the above process, the entire application based on HTTP proxy for advertising video filtering is completed.
实施四Implementation four
某家庭使用android手机的APP软件观看DDD视频并滤视频广告A family uses the android phone APP software to watch DDD videos and filter video ads.
为描述方便,假设DDD视频网站播放的广告视频文件下载请求都带有下列关键字:Host字段为“video.ddd.com”,且请求行包括“video/other”For convenience of description, it is assumed that the advertisement video file download request played by the DDD video website has the following keywords: the Host field is "video.ddd.com", and the request line includes "video/other"
其实施步骤如下:The implementation steps are as follows:
401.用户打开Android手机上的APP软件,显示DDD视频首页信息; 401. The user opens the APP software on the Android mobile phone to display the DDD video homepage information;
402.选择某一视频,如电影“天下无贼”,APP显示该电影相关描述信息;402. Select a video, such as the movie "The World Without Thieves", the APP displays the description information of the movie;
403.点击“播放”按钮,选择播放该视频;403. Click the "Play" button and select to play the video;
404.APP向服务器发送视频播放列表文件下载请求以获取m3u8文件,该文件除包括普通视频条目外还包括广告视频条目;404. APP sends a video playlist file download request to the server to obtain an m3u8 file, which includes an advertisement video entry in addition to the normal video entry;
405.APP解析M3U8文件,并依次播放m3u8文件中的视频文件。由于广告视频在播放列表的前部,APP首先播放广告,并向服务器发起广告视频的下载请求;405. APP parses the M3U8 file and plays the video files in the m3u8 file in sequence. Since the advertisement video is at the front of the playlist, the APP first plays the advertisement and initiates a download request for the advertisement video to the server;
406.网关收到广告视频的下载请求,由于HTTP请求host字段为“video.ddd.com”,且URL包含“video/other”符合广告过滤规则条件(与第二过滤地址列表进行匹配),网关调用对应的钩子函数进行处理;406. The gateway receives the download request of the advertisement video, because the host field of the HTTP request is “video.ddd.com”, and the URL includes “video/other” meets the condition of the advertisement filtering rule (matches with the second filtered address list), the gateway Call the corresponding hook function for processing;
407.钩子函数构造HTTP响应报文,其中状态码为302,location字段指向一条播放时长很短的替代视频,如Location:http://192.168.1.1/video-ad.ts407. The hook function constructs an HTTP response message, wherein the status code is 302, and the location field points to a replacement video with a short playback duration, such as Location: http://192.168.1.1/video-ad.ts ;
408.播放器下载并播放替代广告视频,由于该视频时长很短,广告播放很快结束;408. The player downloads and plays the alternative advertisement video, and the advertisement plays very quickly because the duration of the video is very short;
409.播放器继续下载并播放正常的视频。409. The player continues to download and play normal video.
通过以上流程,完成整个基于HTTP代理对广告视频过滤的应用。Through the above process, the entire application based on HTTP proxy for advertising video filtering is completed.
本发明实施例具有以下优点:支持多种播放终端,包括PC浏览器、手机、平板电脑等,且无需用户在终端上进行任何设置或配置操作,适应性强、易用性好;视频广告过滤通过在家庭网关上增加透明HTTP代理服务器实现,当视频网站广告过滤规则更新后,可保持该框架不变,只调整视频广告规则和钩子函数即可去除广告,扩展性好;对HTTP流进行了预过滤处理,只将与视频广告相关的HTTP流交由HTTP代理处理,家庭网关的数据转发性能影响较小;内置规则更新模块,可自动升级视频广告过滤规则。 The embodiment of the invention has the following advantages: supporting a plurality of playing terminals, including a PC browser, a mobile phone, a tablet computer, etc., and does not require any setting or configuration operation by the user on the terminal, and has good adaptability and ease of use; video advertisement filtering By adding a transparent HTTP proxy server on the home gateway, when the video website advertisement filtering rule is updated, the framework can be kept unchanged, and only the video advertisement rule and the hook function can be adjusted to remove the advertisement, and the scalability is good; the HTTP stream is performed. The pre-filtering process only processes the HTTP stream related to the video advertisement by the HTTP proxy, and the data forwarding performance of the home gateway is less affected; the built-in rule update module can automatically upgrade the video advertisement filtering rule.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
上述技术方案无需用户在客户端进行任何设置,即可有效去除视频播放中的广告视频,同时,该方法支持自动升级过滤规则功能,以适应不断更新的播放器软件。 The above technical solution can effectively remove the advertisement video in the video playback without any setting by the user on the client side. At the same time, the method supports the automatic upgrade of the filtering rule function to adapt to the continuously updated player software.

Claims (15)

  1. 一种应用于网关的视频广告过滤的方法,包括:A method for video advertisement filtering applied to a gateway, comprising:
    获取终端发送的第一超文本传输协议HTTP请求报文,所述第一HTTP请求报文包括所述终端通过所述网关请求访问第一网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;Obtaining a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the first network side server by using the gateway ;
    根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第一过滤地址列表中;Determining, according to the first HTTP request message, whether the IP address or the URL address is included in the first filtered address list;
    当所述IP地址或者URL地址包含在第一过滤地址列表中时,向终端发送包含过滤广告播放的视频播放器下载地址的响应报文;Sending, by the terminal, a response message including a download address of the video player that filters advertisement play, when the IP address or the URL address is included in the first filter address list;
    和/或and / or
    根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第二过滤地址列表中;Determining, according to the first HTTP request message, whether the IP address or the URL address is included in the second filtered address list;
    当所述IP地址或者URL地址包含在第二过滤地址列表中时,截获第一网络侧服务器返回的视频描述信息;删除或者修改所述视频描述信息中的广告视频描述信息,将获得的过滤广告播放的视频描述信息发送至终端。When the IP address or the URL address is included in the second filtering address list, intercepting the video description information returned by the first network side server; deleting or modifying the advertisement video description information in the video description information, and obtaining the filtered advertisement The played video description information is sent to the terminal.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    接收终端发送的第二HTTP请求报文,所述第二HTTP请求报文包括所述终端通过所述网关请求访问第二网络侧服务器的网络协议IP地址或者统一资源定位器URL地址。Receiving a second HTTP request message sent by the terminal, where the second HTTP request message includes a network protocol IP address or a uniform resource locator URL address that the terminal requests to access the second network side server by using the gateway.
  3. 根据权利要求2所述的方法,接收终端发送的第二HTTP请求报文之后,还包括:向所述终端返回重定向报文。The method of claim 2, after receiving the second HTTP request message sent by the terminal, further comprising: returning a redirect message to the terminal.
  4. 根据权利要求1所述的方法,所述修改所述视频描述信息请求中的广告视频描述信息包括:The method according to claim 1, wherein the modifying the advertisement video description information in the video description information request comprises:
    将所述视频描述信息请求中的广告视频描述信息修改为报体内容为空的响应报文;Modifying the advertisement video description information in the video description information request to a response message whose content is empty;
    或者,将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息。 Alternatively, the advertisement video description information in the video description information request is modified into substitute video description information whose play duration is less than a threshold.
  5. 根据权利要求4所述的方法,将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息之前,还包括:向所述终端返回重定向报文。The method of claim 4, before modifying the advertisement video description information in the video description information request to the replacement video description information whose play duration is less than a threshold, further comprising: returning a redirect message to the terminal.
  6. 根据权利要求1所述的方法,还包括根据预定规则更新第一过滤地址列表和第二过滤地址列表。The method of claim 1, further comprising updating the first filtered address list and the second filtered address list according to a predetermined rule.
  7. 一种设置于网关的视频广告过滤的装置,包括:A device for filtering video advertisements disposed at a gateway, comprising:
    获取模块,设置为获取终端发送的第一超文本传输协议HTTP请求报文,所述第一HTTP请求报文包括所述终端通过所述网关请求访问第一网络侧服务器的网络协议IP地址或者统一资源定位器URL地址;An acquiring module, configured to obtain a first hypertext transfer protocol HTTP request message sent by the terminal, where the first HTTP request message includes a network protocol IP address or a unified request by the terminal to access the first network side server by using the gateway Resource locator URL address;
    第一匹配模块,设置为根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第一过滤地址列表中;The first matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the first filtering address list;
    第一处理模块,设置为当所述IP地址或者URL地址包含在第一过滤地址列表中时,向终端发送包含过滤广告播放的视频播放器下载地址的响应报文;The first processing module is configured to: when the IP address or the URL address is included in the first filtering address list, send a response message including a download address of the video player that filters the advertisement playing to the terminal;
    和/或and / or
    第二匹配模块,设置为根据所述第一HTTP请求报文,确定所述IP地址或者URL地址是否包含在第二过滤地址列表中;The second matching module is configured to determine, according to the first HTTP request packet, whether the IP address or the URL address is included in the second filtering address list;
    第二处理模块,设置为当所述IP地址或者URL地址包含在第二过滤地址列表中时,截获第一网络侧服务器返回的视频描述信息;删除或者修改所述视频描述信息中的广告视频描述信息,将获得的过滤广告播放的视频描述信息发送至终端。a second processing module, configured to: when the IP address or the URL address is included in the second filtering address list, intercept the video description information returned by the first network side server; delete or modify the advertisement video description in the video description information The information is sent to the terminal by the obtained video description information of the filtered advertisement.
  8. 根据权利要求7所述的装置,还包括:通信模块,设置为接收终端发送的第二HTTP请求报文,所述第二HTTP请求报文包括所述终端通过所述网关请求访问第二网络侧服务器的网络协议IP地址或者统一资源定位器URL地址。The apparatus according to claim 7, further comprising: a communication module, configured to receive a second HTTP request message sent by the terminal, where the second HTTP request message includes the terminal requesting access to the second network side by using the gateway The network protocol IP address of the server or the Uniform Resource Locator URL address.
  9. 根据权利要求8所述的装置,其中,所述通信模块,还设置为在接收终端发送的第二HTTP请求报文之后,向所述终端返回重定向报文。The apparatus according to claim 8, wherein the communication module is further configured to: after receiving the second HTTP request message sent by the terminal, return a redirect message to the terminal.
  10. 根据权利要求7所述的装置,其中,第二处理模块包括:第一修改 单元或第二修改单元,The apparatus of claim 7, wherein the second processing module comprises: a first modification Unit or second modification unit,
    所述第一修改单元设置为将所述视频描述信息请求中的广告视频描述信息修改为报体内容为空的响应报文;The first modifying unit is configured to modify the advertisement video description information in the video description information request to a response message in which the body content is empty;
    所述第二修改单元设置为将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息。The second modifying unit is configured to modify the advertisement video description information in the video description information request to substitute video description information whose play duration is less than a threshold.
  11. 根据权利要求10所述的装置,还包括通信模块,The apparatus of claim 10 further comprising a communication module,
    所述通信模块设置为在将所述视频描述信息请求中的广告视频描述信息修改为播放时长小于阈值的替代视频描述信息之前,向所述终端返回重定向报文。The communication module is configured to return a redirect message to the terminal before modifying the advertisement video description information in the video description information request to the substitute video description information whose play duration is less than a threshold.
  12. 根据权利要求7所述的装置,还包括更新模块,设置为根据预定规则更新第一过滤地址列表和第二过滤地址列表。The apparatus of claim 7, further comprising an update module configured to update the first filtered address list and the second filtered address list in accordance with a predetermined rule.
  13. 一种视频广告过滤的系统,包括:如权利要求7-12任一项所述的网关和第二网络侧服务器,所述第二网络侧服务器,设置为提供使所述网关更新第一过滤地址列表和第二过滤地址列表的更新视频广告过滤规则的过滤规则描述文档。A system for filtering video advertisements, comprising: the gateway according to any one of claims 7-12 and a second network side server, the second network side server being arranged to provide the gateway to update the first filtering address The filtering rule description document for the updated video ad filtering rules of the list and the second filtered address list.
  14. 根据权利要求13所述的系统,所述第二网络侧服务器,还设置为获取终端通过所述网关发送的第二HTTP请求报文,所述第二请求报文包括请求访问第二网络侧服务器的IP地址或者URL地址;The system according to claim 13, wherein the second network side server is further configured to acquire a second HTTP request message sent by the terminal through the gateway, where the second request message includes requesting access to the second network side server. IP address or URL address;
    向所述网关发送过滤广告播放的视频播放器的描述信息。Sending description information of the video player that filters the advertisement play to the gateway.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-6.
PCT/CN2016/072160 2015-02-13 2016-01-26 Video advertisement filter method, apparatus and system WO2016127799A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510079330.9 2015-02-13
CN201510079330.9A CN105992060A (en) 2015-02-13 2015-02-13 Method, device and system for filtering video ad

Publications (1)

Publication Number Publication Date
WO2016127799A1 true WO2016127799A1 (en) 2016-08-18

Family

ID=56615301

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/072160 WO2016127799A1 (en) 2015-02-13 2016-01-26 Video advertisement filter method, apparatus and system

Country Status (2)

Country Link
CN (1) CN105992060A (en)
WO (1) WO2016127799A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109325192A (en) * 2018-10-11 2019-02-12 网宿科技股份有限公司 A kind of method and apparatus of the anti-shielding of advertisement
CN113268690A (en) * 2021-04-15 2021-08-17 微梦创科网络科技(中国)有限公司 Method and system for safely filtering website short video playing information

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256894B (en) * 2017-02-07 2022-03-29 阿里巴巴(中国)有限公司 Advertisement display control method, equipment, server and client
CN107463926B (en) * 2017-09-11 2020-06-12 广西师范大学 Method for acquiring and processing video in artistic examination performance process
CN108055586A (en) * 2017-11-28 2018-05-18 努比亚技术有限公司 Video ads control method, mobile terminal and computer readable storage medium
CN108024124B (en) * 2017-12-15 2019-08-30 中广热点云科技有限公司 A kind of advertisement filter method of video program
CN109618230B (en) * 2018-12-21 2022-03-11 深圳Tcl数字技术有限公司 Advertisement filtering method, intelligent terminal and computer readable storage medium
CN110110232A (en) * 2019-04-30 2019-08-09 努比亚技术有限公司 Page promotion link filter method, computer readable storage medium and mobile terminal
CN113242454B (en) * 2021-03-31 2023-05-12 深圳市鹰硕技术有限公司 Account management method, device and system based on virtual view and storage medium
CN113347496A (en) * 2021-06-22 2021-09-03 聚好看科技股份有限公司 Display device and advertisement exception handling method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255321A1 (en) * 2002-06-20 2004-12-16 Bellsouth Intellectual Property Corporation Content blocking
WO2008056358A2 (en) * 2006-11-10 2008-05-15 Media Layers Ltd Method and computer program product for providing advertisements to a mobile user device
CN103916702A (en) * 2014-03-20 2014-07-09 北京金山网络科技有限公司 Method and terminal for intercepting advertisements
CN104159154A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Multimedia playing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255321A1 (en) * 2002-06-20 2004-12-16 Bellsouth Intellectual Property Corporation Content blocking
WO2008056358A2 (en) * 2006-11-10 2008-05-15 Media Layers Ltd Method and computer program product for providing advertisements to a mobile user device
CN103916702A (en) * 2014-03-20 2014-07-09 北京金山网络科技有限公司 Method and terminal for intercepting advertisements
CN104159154A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Multimedia playing method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109325192A (en) * 2018-10-11 2019-02-12 网宿科技股份有限公司 A kind of method and apparatus of the anti-shielding of advertisement
CN113268690A (en) * 2021-04-15 2021-08-17 微梦创科网络科技(中国)有限公司 Method and system for safely filtering website short video playing information
CN113268690B (en) * 2021-04-15 2023-08-29 微梦创科网络科技(中国)有限公司 Method and system for safely filtering website short video playing information

Also Published As

Publication number Publication date
CN105992060A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
WO2016127799A1 (en) Video advertisement filter method, apparatus and system
US10986141B2 (en) Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device
US9166949B2 (en) Method and system of managing a captive portal with a router
US9703947B2 (en) Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device
US10574771B2 (en) Methods and systems for rewriting scripts to redirect web requests
US20170289222A1 (en) System and method of discovery and launch associated with a networked media device
US9386356B2 (en) Targeting with television audience data across multiple screens
US9258383B2 (en) Monetization of television audience data across muliple screens of a user watching television
US20170264701A1 (en) System and method for context specific website optimization
WO2016023357A1 (en) Webpage access method and apparatus, and router
US7702813B2 (en) Using personal data for advertisements
WO2019021048A1 (en) Ephemeral content sharing and connecting users based on sharing unique link from 3r parties' applications and storing and relating unique identity or code of link sharing user with link accessing user
US20160140122A1 (en) Relevancy improvement through targeting of information based on data gathered from a capture device associated with a client device
US20130061127A1 (en) Providing toolbars
US8499088B1 (en) Parallel multiple format downloads
US9549036B2 (en) Network injected storage redirection for embedded applications
CN105611422B (en) Online live broadcasting method and device based on multimedia list
JP2006246434A (en) Content distribution method and relay apparatus
WO2012028103A1 (en) Method and system for accessing micro blog, and method and system for sending picture on micro blog website
WO2012106647A2 (en) System and method for interaction between e-mail/web browser and communication devices
US10140125B1 (en) Methods and apparatus for interactive content injection
CN104468761B (en) Control the method and mobile terminal of player carry shared file
CN107295513B (en) Portal advertisement authentication method and system
JP2015005014A (en) Advertisement selection device, advertisement processing system, advertisement selection method and program
JP5389846B2 (en) Mail processing apparatus and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16748600

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16748600

Country of ref document: EP

Kind code of ref document: A1