WO2017181802A1 - 一种无线路由器及其信息植入***、方法 - Google Patents
一种无线路由器及其信息植入***、方法 Download PDFInfo
- Publication number
- WO2017181802A1 WO2017181802A1 PCT/CN2017/077415 CN2017077415W WO2017181802A1 WO 2017181802 A1 WO2017181802 A1 WO 2017181802A1 CN 2017077415 W CN2017077415 W CN 2017077415W WO 2017181802 A1 WO2017181802 A1 WO 2017181802A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless router
- http
- commodity
- packet
- remote server
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000003780 insertion Methods 0.000 title claims abstract 5
- 230000037431 insertion Effects 0.000 title claims abstract 5
- 238000002513 implantation Methods 0.000 claims description 14
- 239000007943 implant Substances 0.000 claims description 12
- 239000000284 extract Substances 0.000 claims description 7
- 238000011144 upstream manufacturing Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 abstract 3
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 210000001072 colon Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/60—Router architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Definitions
- the present invention relates to the field of network communication technologies, and in particular, to a wireless router and an information implantation system and method thereof.
- the method of implanting information widely used in the field of wireless routers is to load an HTTP proxy server plug-in inside the router, and send all HTTP messages of the client terminal to the remote server through the proxy server, and obtain the goods to be implanted from the remote server.
- the related information is sent to the client terminal, and all HTTP messages are sent to the remote server and the related information is obtained from the remote server and sent to the client terminal, so that the client terminal obtains a lot of valuable product information and consumes a large number of router systems. And bandwidth resources.
- the present invention aims to provide a wireless router and an information embedding system and method thereof, which intercept and receive a client by using a packet processing module of a wireless router located at a network card driver layer. After all the HTTP packets are copied, the uplink HTTP request packet and the first and second packets of the downlink HTTP are copied, and then forwarded to the remote server in a real-time concurrent manner, and the obtained remote server obtains the commodity-related information. After the product-related information is sent in the form of a message, the product-related information is implanted into the product page currently accessed by the client, thereby achieving the purpose of remotely implanting information under the condition of minimizing the wireless router system and bandwidth resources.
- the present invention provides a wireless router, including:
- the packet processing module is configured to intercept all the HTTP packets sent and received by the client, and copy the uplink HTTP request packet and the first N packets in the downlink HTTP packet, and then send the packet to the sending module.
- the sending module forwards the received HTTP message to the remote server in a real-time concurrent manner
- the information embedding module after receiving the HTTP message containing the commodity-related information sent by the remote server, embedding the product-related information into the commodity page currently accessed by the client.
- the packet processing module copies the first and second packets in the uplink HTTP request packet and the downlink HTTP packet, and then transmits the packet to the sending module.
- the message processing module is located at a network card driver layer of the wireless router.
- the information implantation module implants the product related information into the commodity page currently accessed by the client through a Javascript script.
- the present invention also provides a wireless router-based information implantation system, including:
- a client configured to send an access request for a certain page to a remote server, receive a response from the remote server, and respond to an implant operation of the wireless router;
- the wireless router uses the packet processing module at the NIC driver layer to intercept all HTTP packets sent and received by the client, and copies the upstream HTTP request packet and the first N packets of the downlink HTTP packet. Forwarding to the remote server in a real-time concurrent manner, after receiving the HTTP message containing the commodity-related information sent by the remote server, the wireless router implants the commodity-related information into the commodity page currently accessed by the client;
- the remote server After receiving the HTTP message sent by the wireless router, the remote server extracts the basic information of the commodity, searches the database for related information of the commodity, and sends the commodity related information to the wireless router through the HTTP message format.
- the packet processing module of the wireless router copies the first HTTP packet and the first packet and the second packet of the downlink HTTP packet, and then forwards the packet to the remote service in a real-time concurrent manner. Server.
- the remote server does not search for related information of the commodity in the database
- the related information of the commodity is captured by the web crawler.
- the wireless router embeds the product related information into the commodity page currently accessed by the client through a Javascript script.
- the present invention also provides a wireless router-based information implantation method, including the following steps:
- Step 1 using the client to send an access request for a certain page to the remote server;
- Step 2 The wireless router uses the packet processing module at the NIC driver layer to intercept all the HTTP packets sent and received by the client, and then copy the upstream HTTP request packet and the first N packets of the downlink HTTP packet. Forward to a remote server in a real-time concurrent manner;
- Step 3 After receiving the message sent by the wireless router, the remote server extracts basic information of the commodity, and searches the database for related information of the commodity to obtain related information of the commodity;
- Step 4 After obtaining the related information of the commodity, the remote server sends the commodity related information to the wireless router by using an HTTP message format;
- step 5 the wireless router implants the product related information into a page currently accessed by the client.
- step 2 the wireless router copies the first HTTP packet and the first and second packets of the downlink HTTP packet, and then forwards the packet to the remote server in a real-time concurrent manner.
- a wireless router and an information embedding system and method thereof of the present invention intercept all HTTP messages sent and received by a client by using a packet processing module of a wireless router located at a network card driver layer, and After the uplink HTTP request message and the first and second messages of the downlink HTTP are copied, the device forwards the message to the remote server in a real-time concurrent manner, and receives the product-related information that is sent by the remote server in the form of the message. After that, the product related information is implanted into the commodity page currently accessed by the client, thereby achieving the purpose of remotely implanting information under the condition of consuming a very small wireless router system and bandwidth resources.
- FIG. 1 is a schematic structural diagram of a system of a wireless router according to the present invention.
- FIG. 2 is a schematic structural diagram of an HTTP request message according to the present invention.
- FIG. 3 is a schematic structural diagram of an HTTP response packet in the present invention.
- FIG. 4 is a system architecture diagram of a wireless router-based information implantation system according to the present invention.
- FIG. 5 is a system structural diagram of a wireless router-based information implantation system according to an embodiment of the present invention.
- FIG. 6 is a flow chart showing the steps of a method for implanting information based on a wireless router according to the present invention.
- FIG. 1 is a schematic structural diagram of a system of a wireless router according to the present invention.
- a wireless router includes a message processing module 101, a sending module 102, and an information implanting module 103.
- the packet processing module 101 is located at the network card driver layer, and is configured to intercept all HTTP packets sent and received by the client, and transmit the HTTP packets in the uplink HTTP request packet and the downlink HTTP packet.
- the packet processing module 101 copies the first and second packets in the uplink HTTP request packet and the downlink HTTP packet, and then transmits the packet to the sending module 102. . That is, when the client sends an access request for a certain page to the remote server, the HTTP request packet is sent, and the HTTP response packet is received.
- the HTTP request packet is an uplink HTTP packet, and the HTTP response packet is a downlink packet.
- the packet processing module 101 copies the first HTTP packet and the first and second packets in the downlink HTTP packet, and then transmits the packet to the sending module 102.
- the HTTP request message is mainly composed of a request line, a request header, and a request body, as shown in FIG. 2, and the specific parts are as follows:
- Request methods include GET, HEAD, PUT, POST, TRACE, OPTIONS, DELETE, and extension.
- Method of course, not all servers implement all methods. Some methods are not available for security considerations even if they are supported; URLs identify resources by describing the location of the resource; the format of the protocol version is: HTTP/main version No. The minor version number, commonly used are HTTP/1.0 and HTTP/1.1.
- the request header adds some additional information to the request message, consisting of a "name/value" pair, one pair per line, and the name and value are usually separated by a colon.
- the common request headers are shown in Table 1 below:
- Request header Description Host The server address that accepts the request, which can be IP: port number or domain name User_Agent
- the name of the application that sent the request Connection Specify connection-related properties, such as connection:Keep-Alive Accept-Charset Notify the encoding format that the server can send Accept-Encoding Notify the data compression format that the server can send Accept-Language Notify the language that the server can send
- the request body is an optional part, such as a GET request, there is no request body.
- the HTTP response message is mainly composed of the status line, the response header, and the response body.
- the status line consists of three parts, which are the protocol version, status code, and status code description, separated by spaces.
- the status code is 3 digits, the status code of 200 to 299 indicates success, the status code of 300 to 399 refers to resource redirection, the status code of 400 to 499 refers to the client request error, and the status code of 500 to 599 refers to the error of the server.
- HTTP/1.1 introduces an informational status code into the protocol, ranging from 100 to 199); response
- the header is similar to the request header, adding some additional information to the response message.
- the sending module 102 after receiving the first N (the first and second) packets of the uplink HTTP request packet and the downlink HTTP packet sent by the packet processing module, The concurrent method is forwarded to the remote server.
- the information embedding module 103 after receiving the HTTP message containing the commodity-related information sent by the remote server, embeds the product-related information into the commodity page currently accessed by the client.
- the information implantation module 103 implants the product related information into the product page currently accessed by the client through a Javascript script.
- FIG. 4 is a system architecture diagram of a wireless router-based information implantation system according to the present invention. As shown in FIG. 4, the present invention relates to a wireless router-based information implantation system, including: a client 40, a wireless router 41, and a remote server 42.
- the client 40 is configured to send an access request for a certain page to the remote server 42 and receive a response from the remote server, that is, send an HTTP request message (uplink) and receive an HTTP response message (downstream), and respond to the wireless router.
- the wireless router 41 intercepts all the HTTP messages sent and received by the client 40 by using the message processing module located at the network card driver layer, and the first N of the uplink HTTP request messages and the downlink HTTP messages. After being copied (the first and second in the preferred embodiment of the present invention), the message is forwarded to the remote server 42 in a real-time concurrent manner, and at the same time, the wireless router 41 receives the information related to the product sent by the remote server.
- the product related information is implanted into the product page currently accessed by the client 40.
- the wireless router 41 inserts the product related information into the product page currently accessed by the client 40 through a Javascript script;
- the server 42 extracts the basic information of the commodity, and searches the database for the relevant information of the commodity.
- the product related information is sent to the wireless router 41 through the HTTP message form.
- the network crawler captures the information. Product related information.
- the present invention utilizes the wireless router to intercept only the uplink HTTP request message and the first and second messages of the downlink HTTP in all the HTTP messages sent and received by the client, and send them to the remote server instead of the existing one.
- all HTTP messages are sent to the remote server, which achieves the purpose of remotely implanting information when the wireless router system and bandwidth resources are consumed.
- FIG. 5 is a system structural diagram of a wireless router-based information implantation system according to an embodiment of the present invention. The working process of the present invention will be further illustrated by a specific embodiment:
- Step 1 The client terminal 50 opens a browser or an APP to access a product page
- Step 2 The packet processing module of the wireless router 51 located at the NIC driver layer intercepts all the HTTP packets sent and received by the client terminal, and copies the uplink HTTP request packet and the first and second packets of the downlink HTTP. Forwarded to the remote server 51 in a real-time concurrent manner;
- Step 3 After receiving the message sent by the wireless router, the remote server 52 extracts the basic information of the commodity, and searches for related information of the commodity in the database, and if not, searches for the relevant information of the commodity through the web crawler;
- Step 4 After obtaining the relevant information of the commodity, the remote server 52 sends the commodity related information to the wireless router 51 through the HTTP message format;
- Step 5 The wireless router 51 implants the product related information into the product page that the client 50 is accessing by implanting JavaScript.
- the wireless router-based information embedding method of the present invention includes the following steps:
- Step 601 The client sends an access request for a certain page to the remote server, that is, sends an HTTP request message.
- Step 602 The wireless router uses the packet processing module located at the NIC driver layer to intercept all the HTTP packets sent and received by the client, and the first N packets of the uplink HTTP request packet and the downlink HTTP packet.
- the first and second copies are forwarded to the remote server in a real-time concurrent manner. That is, when the client sends an access request for a certain page to the remote server, the HTTP request packet is sent, and the HTTP response packet is received.
- the HTTP request packet is an uplink HTTP packet, and the HTTP response packet is a downlink packet.
- the packet processing module 101 intercepts all the HTTP packets, and the first and second of the uplink HTTP request packets and the downlink HTTP packets. After the packets are copied, they are forwarded to the remote server in real time.
- Step 603 After receiving the message sent by the wireless router, the remote server extracts basic information of the commodity, and searches the database for related information of the commodity to obtain related information of the commodity.
- the network crawler crawls the related information of the commodity;
- Step 604 After obtaining the item related information, the remote server sends the item related information to the wireless router in an HTTP message format.
- Step 605 The wireless router implants the commodity related information into a page currently accessed by the client. Specifically, the wireless router implants the item related information into the item page currently accessed by the client by implanting JavaScript.
- the wireless router and the information embedding system and method thereof of the present invention intercept all HTTP messages sent and received by the client by using a packet processing module of the wireless router located at the network card driver layer, and After the first packet and the second packet of the request packet and the downlink HTTP packet are copied, the packet is forwarded to the remote server in a real-time concurrent manner, and the remote server receives the commodity related information and obtains the commodity in the form of the message. After the related information, the product related information is implanted into the commodity page currently accessed by the client, and the purpose of remotely implanting information under the condition of minimizing wireless router system and bandwidth resources is achieved.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种无线路由器及其信息植入***、方法,该无线路由器包括:报文处理模块,用于截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文中的前N个报文复制后,传送至发送模块;发送模块,将接收的HTTP报文通过实时并发的方式转发给远程服务器;信息植入模块,于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到客户端当前访问的商品页,本发明可在消耗极小无线路由器***和带宽资源情况下实现远程植入信息的目的。
Description
本发明涉及网络通信技术领域,特别是涉及一种无线路由器及其信息植入***、方法。
随着无线路由器的广泛使用,进行线上购物的人越来越多,消费者挑选商品时也希望能获取与商品相关的一些有价值信息,但是消费者往往获取的却是无价值的广告、垃圾网页等信息,而且极大的消耗了网络带宽以及无线路由器***资源,大大降低了网速及用户体验。
当前在无线路由器领域广泛采用的植入信息方式是在路由器内部加载HTTP代理服务器插件,并通过该代理服务器发送客户终端访问商品的所有HTTP报文到远程服务器,及从远程服务器获取需植入商品相关信息后发送给客户终端,发送所有HTTP报文到远端服务器以及从远端服务器获取商品相关信息发送给客户终端,使得客户终端获取了很多无价值的商品信息,并耗费了大量的路由器***和带宽资源。
发明内容
为克服上述现有技术存在的不足,本发明之目的在于提供一种无线路由器及其信息植入***、方法,其通过利用无线路由器位于网卡驱动层的报文处理模块截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP的第一、二个报文复制后,通过实时并发的方式转发给远程服务器,并于接收到远程服务器在获得商品相关信息通过报文形式发送的该商品相关信息后,将该商品相关信息植入到客户端当前访问的商品页,达到了消耗极小无线路由器***和带宽资源情况下实现远程植入信息的目的。
为达上述目的,本发明提出一种无线路由器,包括:
报文处理模块,用于截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文中的前N个报文复制后,传送至发送模块;
发送模块,将接收的HTTP报文通过实时并发的方式转发给远程服务器;
信息植入模块,于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到客户端当前访问的商品页。
进一步地,该报文处理模块将该上行HTTP请求报文及下行HTTP报文中的第一个、第二个报文复制后传送至发送模块。
进一步地,该报文处理模块位于该无线路由器的网卡驱动层。
进一步地,该信息植入模块通过Javascript脚本将该商品相关信息植入到客户端当前访问的商品页。
为达到上述目的,本发明还提供一种基于无线路由器的信息植入***,包括:
客户端,用于向远程服务器发送针对某一页面的访问请求,接收远程服务器的响应,并响应无线路由器的植入操作;
无线路由器,利用位于网卡驱动层的报文处理模块截取该客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的前N个报文复制后,通过实时并发的方式转发给远程服务器,该无线路由器于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到该客户端当前访问的商品页;
远程服务器,于收到该无线路由器发送过来的HTTP报文后,提炼出商品的基本信息,并于数据库中搜索该商品的相关信息,通过HTTP报文形式将商品相关信息发送给无线路由器。
进一步地,该无线路由器的报文处理模块将上行HTTP请求报文及下行HTTP报文的第一个、第二个报文复制后,通过实时并发的方式转发给该远程服
务器。
进一步地,当该远程服务器于数据库中没有搜索到该商品的相关信息时,则通过网络爬虫抓取该商品相关信息。
进一步地,该无线路由器通过Javascript脚本将该商品相关信息植入到客户端当前访问的商品页。
为达到上述目的,本发明还提供一种基于无线路由器的信息植入方法,包括如下步骤:
步骤一,利用客户端向远程服务器发送针对某一页面的访问请求;
步骤二,无线路由器利用位于网卡驱动层的报文处理模块截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的前N个报文复制后,通过实时并发的方式转发给远程服务器;
步骤三,远程服务器于收到无线路由器发送过来的报文后,提炼出商品的基本信息,并在数据库中搜索该商品的相关信息获得该商品的相关信息;
步骤四,获得该商品相关信息后,该远程服务器通过HTTP报文形式将该商品相关信息发送给无线路由器;
步骤五,该无线路由器将该商品相关信息植入到客户端当前访问的页面。
进一步地,于步骤二中,无线路由器将该上行HTTP请求报文及下行HTTP报文的第一个、第二个报文复制后,通过实时并发的方式转发给远程服务器。
与现有技术相比,本发明一种无线路由器及其信息植入***、方法通过利用无线路由器位于网卡驱动层的报文处理模块截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP的第一、二个报文复制后,通过实时并发的方式转发给远程服务器,并于接收到远程服务器在获得商品相关信息通过报文形式发送的该商品相关信息后,将该商品相关信息植入到客户端当前访问的商品页,达到了消耗极小无线路由器***和带宽资源情况下实现远程植入信息的目的。
图1为本发明一种无线路由器的***结构示意图;
图2为本发明中HTTP请求报文的结构示意图;
图3为本发明中HTTP响应报文的结构示意图;
图4为本发明一种基于无线路由器的信息植入***的***架构图;
图5为本发明具体实施例之基于无线路由器的信息植入***的***结构图;
图6为本发明一种基于无线路由器的信息植入方法的步骤流程图。
以下通过特定的具体实例并结合附图说明本发明的实施方式,本领域技术人员可由本说明书所揭示的内容轻易地了解本发明的其它优点与功效。本发明亦可通过其它不同的具体实例加以施行或应用,本说明书中的各项细节亦可基于不同观点与应用,在不背离本发明的精神下进行各种修饰与变更。
图1为本发明一种无线路由器的***结构示意图。如图1所示,本发明一种无线路由器,包括:报文处理模块101、发送模块102以及信息植入模块103。
其中,报文处理模块101,位于网卡驱动层,用于截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文中的钱N个报文,传送至发送模块102,在本发明较佳实施例中,报文处理模块101会将上行HTTP请求报文及下行HTTP报文中的第一个、第二个报文复制后,传送至发送模块102。即,当客户端向远程服务器发送针对某一页面的访问请求时,会发送HTTP请求报文,并接收到HTTP响应报文,该HTTP请求报文为上行HTTP报文,HTTP响应报文为下行HTTP报文,报文处理模块101截取所有HTTP报文后,对其中的上行HTTP请求报文以及下行HTTP报文中的第一个、第二个报文进行复制后传送至发送模块102。
具体地说,HTTP请求报文主要由请求行、请求头部、请求正文3部分组成,如图2所示,具体各部分说明如下:
1、请求行
由3部分组成,分别为:请求方法、URL(Uniform Resource Locator,统一资源定位)以及协议版本,它们之间由空格分隔,请求方法包括GET、HEAD、PUT、POST、TRACE、OPTIONS、DELETE以及扩展方法,当然并不是所有的服务器都实现了所有的方法,部分方法即便支持,处于安全性的考虑也是不可用的;URL通过描述资源的位置来标识资源;协议版本的格式为:HTTP/主版本号.次版本号,常用的有HTTP/1.0和HTTP/1.1。
2、请求头部
请求头部为请求报文添加了一些附加信息,由“名/值”对组成,每行一对,名和值之间一般使用冒号分隔。常见的请求头部如下表1所示:
表1
请求头 | 说明 |
Host | 接受请求的服务器地址,可以是IP:端口号,也可以是域名 |
User_Agent | 发送请求的应用程序名称 |
Connection | 指定与连接相关的属性,如connection:Keep-Alive |
Accept-Charset | 通知服务端可以发送的编码格式 |
Accept-Encoding | 通知服务端可以发送的数据压缩格式 |
Accept-Language | 通知服务端可以发送的语言 |
一般请求头部的最后会有一个空行,表示请求头部结束,接下来为请求正文。
3、请求正文
HTTP请求报文中,请求正文为可选部分,比如GET请求就没有请求正文。
HTTP响应报文主要由状态行、响应头部、响应正文3部分组成,如图3所示,其中状态行由3部分组成,分别为协议版本,状态码,状态码描述,之间由空格分隔,状态代码为3位数字,200~299的状态码表示成功,300~399的状态码指资源重定向,400~499的状态码指客户端请求出错,500~599的状态码指服务端出错(HTTP/1.1向协议中引入了信息性状态码,范围为100~199);响应
头部与请求头部类似,为响应报文添加一些附加信息。
发送模块102,于接收到报文处理模块发送的上行HTTP请求报文及下行HTTP报文的前N个(本发明较佳实施例中为第一个、第二个)报文后,通过实时并发的方式转发给远程服务器。
信息植入模块103,于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到客户端当前访问的商品页。在本发明中,信息植入模块103通过Javascript脚本将该商品相关信息植入到客户端当前访问的商品页。
图4为本发明一种基于无线路由器的信息植入***的***架构图。如图4所示,本发明一种基于无线路由器的信息植入***,包括:客户端40、无线路由器41以及远程服务器42。
其中,客户端40,用于向远程服务器42发送针对某一页面的访问请求,接收远程服务器的响应,即发送HTTP请求报文(上行)与接收HTTP响应报文(下行),并响应无线路由器的植入操作;无线路由器41,利用位于网卡驱动层的报文处理模块截取客户端40发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的前N个报文(本发明较佳实施例中为第一个、第二个)复制后,通过实时并发的方式转发给远程服务器42,同时,无线路由器41于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到客户端40当前访问的商品页,具体地,该无线路由器41通过Javascript脚本将该商品相关信息植入到客户端40当前访问的商品页;远程服务器42于收到无线路由器41发送过来的HTTP报文后,提炼出商品的基本信息,并于数据库中搜索该商品的相关信息,并于获得该商品相关信息后,通过HTTP报文形式将商品相关信息发送给无线路由器41,当远程服务器42于数据库中没有搜索到该商品的相关信息时,则通过网络爬虫抓取该商品相关信息。由于本发明利用无线路由器只是截取客户端发送和接收的所有HTTP报文中的上行HTTP请求报文及下行HTTP的第一、二个报文,并发送至远程服务器,而不是像现有
技术中将所有HTTP报文都发送至远程服务器,达到了消耗极小无线路由器***和带宽资源情况下实现远程植入信息的目的。
图5为本发明具体实施例之基于无线路由器的信息植入***的***结构图。以下将通过一具体实施例来进一步说明本发明的工作过程:
步骤一、客户终端50打开浏览器或APP,访问某个商品页;
步骤二、无线路由器51位于网卡驱动层的报文处理模块截取客户终端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP的第一、二个报文复制后,通过实时并发的方式转发给远程服务器51;
步骤三、远程服务器52收到无线路由器发送过来的报文后,提炼出商品的基本信息,并在数据库中搜索该商品的相关信息,如没有搜索到则通过网络爬虫抓取该商品相关信息;
步骤四、远程服务器52在获得该商品相关信息后,通过HTTP报文形式将商品相关信息发送给无线路由器51;
步骤五、无线路由器51通过植入JavaScript将该商品相关信息植入到客户端50正在访问的商品页。
图6为本发明一种基于无线路由器的信息植入方法的步骤流程图。如图6所示,本发明一种基于无线路由器的信息植入方法,包括如下步骤:
步骤601,利用客户端向远程服务器发送针对某一页面的访问请求,即发送HTTP请求报文。
步骤602,无线路由器利用位于网卡驱动层的报文处理模块截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的前N个报文(本发明较佳实施例中为第一个、第二个)复制后,通过实时并发的方式转发给远程服务器。即,当客户端向远程服务器发送针对某一页面的访问请求时,会发送HTTP请求报文,并接收到HTTP响应报文,该HTTP请求报文为上行HTTP报文,HTTP响应报文为下行HTTP报文,报文处理模块101截取所有HTTP报文后,对其中的上行HTTP请求报文以及下行HTTP报文中的第一、二
个报文进行复制后通过实时并发的方式转发给远程服务器。
步骤603,远程服务器于收到无线路由器发送过来的报文后,提炼出商品的基本信息,并在数据库中搜索该商品的相关信息获得该商品的相关信息。当远程服务器在数据库中没有搜索到该商品的相关信息时则通过网络爬虫抓取该商品相关信息;
步骤604,获得该商品相关信息后,远程服务器通过HTTP报文形式将该商品相关信息发送给无线路由器。
步骤605,无线路由器将该商品相关信息植入到客户端当前访问的页面。具体地说,无线路由器通过植入JavaScript将该商品相关信息植入到客户端当前访问的商品页。
综上所述,本发明一种无线路由器及其信息植入***、方法通过利用无线路由器位于网卡驱动层的报文处理模块截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的第一个、第二个报文复制后,通过实时并发的方式转发给远程服务器,并于接收到远程服务器在获得商品相关信息通过报文形式发送的该商品相关信息后,将该商品相关信息植入到客户端当前访问的商品页,达到了消耗极小无线路由器***和带宽资源情况下实现远程植入信息的目的。
任何本领域技术人员均可在不违背本发明的精神及范畴下,对上述实施例进行修饰与改变。因此,本发明的权利保护范围,应如权利要求书所列。
Claims (10)
- 一种无线路由器,其特征在于,包括:报文处理模块,用于截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文中的前N个报文复制后,传送至发送模块;发送模块,将接收的HTTP报文通过实时并发的方式转发给远程服务器;信息植入模块,于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到客户端当前访问的商品页。
- 如权利要求1所述的一种无线路由器,其特征在于:该报文处理模块将该上行HTTP请求报文及下行HTTP报文中的第一个、第二个报文复制后传送至发送模块。
- 如权利要求1所述的一种无线路由器,其特征在于:该报文处理模块位于该无线路由器的网卡驱动层。
- 如权利要求1所述的一种无线路由器,其特征在于:该信息植入模块通过Javascript脚本将该商品相关信息植入到客户端当前访问的商品页。
- 一种基于无线路由器的信息植入***,其特征在于,包括:客户端,用于向远程服务器发送针对某一页面的访问请求,接收远程服务器的响应,并响应无线路由器的植入操作;无线路由器,利用位于网卡驱动层的报文处理模块截取该客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的前N个报文复制后,通过实时并发的方式转发给远程服务器,该无线路由器于接收到远程服务器发送的含有商品相关信息的HTTP报文后,将该商品相关信息植入到该客户端当前访问的商品页;远程服务器,于收到该无线路由器发送过来的HTTP报文后,提炼出商品的基本信息,并于数据库中搜索该商品的相关信息,通过HTTP报文形式将商品相关信息发送给无线路由器。
- 如权利要求5所述的一种基于无线路由器的信息植入***,其特征在 于:该无线路由器的报文处理模块将上行HTTP请求报文及下行HTTP报文的第一个、第二个报文复制后,通过实时并发的方式转发给该远程服务器。
- 如权利要求5所述的一种基于无线路由器的信息植入***,其特征在于:当该远程服务器于数据库中没有搜索到该商品的相关信息时,则通过网络爬虫抓取该商品相关信息。
- 如权利要求5所述的一种基于无线路由器的信息植入***,其特征在于:该无线路由器通过Javascript脚本将该商品相关信息植入到客户端当前访问的商品页。
- 一种基于无线路由器的信息植入方法,其特征在于,包括如下步骤:步骤一,利用客户端向远程服务器发送针对某一页面的访问请求;步骤二,无线路由器利用位于网卡驱动层的报文处理模块截取客户端发送和接收的所有HTTP报文,并将其中的上行HTTP请求报文及下行HTTP报文的前N个报文复制后,通过实时并发的方式转发给远程服务器;步骤三,远程服务器于收到无线路由器发送过来的报文后,提炼出商品的基本信息,并在数据库中搜索该商品的相关信息获得该商品的相关信息;步骤四,获得该商品相关信息后,该远程服务器通过HTTP报文形式将该商品相关信息发送给无线路由器;步骤五,该无线路由器将该商品相关信息植入到客户端当前访问的页面。
- 如权利要求9所述的一种基于无线路由器的信息植入方法,其特征在于:于步骤二中,无线路由器将该上行HTTP请求报文及下行HTTP报文的第一个、第二个报文复制后,通过实时并发的方式转发给远程服务器。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610250017.1A CN105933237B (zh) | 2016-04-20 | 2016-04-20 | 一种无线路由器及其信息植入***、方法 |
CN201610250017.1 | 2016-04-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017181802A1 true WO2017181802A1 (zh) | 2017-10-26 |
Family
ID=56839585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/077415 WO2017181802A1 (zh) | 2016-04-20 | 2017-03-21 | 一种无线路由器及其信息植入***、方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105933237B (zh) |
WO (1) | WO2017181802A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933237B (zh) * | 2016-04-20 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | 一种无线路由器及其信息植入***、方法 |
CN108984355A (zh) * | 2018-07-10 | 2018-12-11 | 郑州云海信息技术有限公司 | 一种接口测试的自动化测试方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075570A (zh) * | 2010-12-31 | 2011-05-25 | 南京中兴特种软件有限责任公司 | 一种基于关键字的http报文缓存机制的实现方法 |
US8510431B2 (en) * | 2007-07-13 | 2013-08-13 | Front Porch, Inc. | Method and apparatus for internet traffic monitoring by third parties using monitoring implements transmitted via piggybacking HTTP transactions |
CN103425656A (zh) * | 2012-05-15 | 2013-12-04 | 阿里巴巴集团控股有限公司 | 商品信息的搜索方法、服务器和终端 |
CN103532941A (zh) * | 2013-09-30 | 2014-01-22 | 华为技术有限公司 | 一种cgs模式下图形化页面呈现的方法及装置 |
CN105933237A (zh) * | 2016-04-20 | 2016-09-07 | 上海斐讯数据通信技术有限公司 | 一种无线路由器及其信息植入***、方法 |
-
2016
- 2016-04-20 CN CN201610250017.1A patent/CN105933237B/zh not_active Expired - Fee Related
-
2017
- 2017-03-21 WO PCT/CN2017/077415 patent/WO2017181802A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8510431B2 (en) * | 2007-07-13 | 2013-08-13 | Front Porch, Inc. | Method and apparatus for internet traffic monitoring by third parties using monitoring implements transmitted via piggybacking HTTP transactions |
CN102075570A (zh) * | 2010-12-31 | 2011-05-25 | 南京中兴特种软件有限责任公司 | 一种基于关键字的http报文缓存机制的实现方法 |
CN103425656A (zh) * | 2012-05-15 | 2013-12-04 | 阿里巴巴集团控股有限公司 | 商品信息的搜索方法、服务器和终端 |
CN103532941A (zh) * | 2013-09-30 | 2014-01-22 | 华为技术有限公司 | 一种cgs模式下图形化页面呈现的方法及装置 |
CN105933237A (zh) * | 2016-04-20 | 2016-09-07 | 上海斐讯数据通信技术有限公司 | 一种无线路由器及其信息植入***、方法 |
Also Published As
Publication number | Publication date |
---|---|
CN105933237B (zh) | 2018-09-28 |
CN105933237A (zh) | 2016-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018121331A1 (zh) | 攻击请求的确定方法、装置及服务器 | |
CN107025234B (zh) | 一种信息推送方法及缓存服务器 | |
CN107341160B (zh) | 一种拦截爬虫的方法及装置 | |
US8797920B2 (en) | Methods and systems for access to real-time full-duplex web communications platforms | |
US8856279B2 (en) | Method and system for object prediction | |
EP1783954B1 (en) | System and method for discovering network resources | |
US6519646B1 (en) | Method and apparatus for encoding content characteristics | |
US8560669B2 (en) | Tracking identifier synchronization | |
CN105812402B (zh) | 基于物联网的文件传输方法和装置 | |
CN107222587B (zh) | 一种远程访问私网设备的方法 | |
Zhang et al. | Research and development of real-time monitoring system based on WebSocket technology | |
WO2017181802A1 (zh) | 一种无线路由器及其信息植入***、方法 | |
JP2008518538A (ja) | Httpリダイレクトリクエストをインターセプトする方法並びに前記方法を実行するためのシステム及びサーバー機器 | |
CN105393247A (zh) | 一种网页优化的设备及方法 | |
US9112829B2 (en) | Dynamic display using pushed streamed data | |
CN104767678B (zh) | 在内容中心网络中基于命名中内容属性实现的路由方法 | |
US20120284417A1 (en) | Endpoint Discriminator in Network Transport Protocol Startup Packets | |
US7987271B1 (en) | Methods and apparatus for inserting content within a content page | |
CN105391615B (zh) | 一种基于业务需求的即时通信方法、装置及*** | |
CN106453598B (zh) | 一种基于http协议的代理扫描方法 | |
CN104283957A (zh) | 基于持续连接机制的cdn缓存方法 | |
KR20060112630A (ko) | Tcp세션 가로채기를 이용한 광고 송출 시스템 및 방법 | |
CN101388907A (zh) | 一种互联网用户属性信息的传递方法和网络设备 | |
WO2013180255A1 (ja) | 通信装置および方法 | |
CN101257501B (zh) | 数据导入方法、***及Web服务器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17785287 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17785287 Country of ref document: EP Kind code of ref document: A1 |