CN103581260B - Customize the system and method for http proxy content - Google Patents

Customize the system and method for http proxy content Download PDF

Info

Publication number
CN103581260B
CN103581260B CN201210276222.7A CN201210276222A CN103581260B CN 103581260 B CN103581260 B CN 103581260B CN 201210276222 A CN201210276222 A CN 201210276222A CN 103581260 B CN103581260 B CN 103581260B
Authority
CN
China
Prior art keywords
configuration information
url
request
server
http proxy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210276222.7A
Other languages
Chinese (zh)
Other versions
CN103581260A (en
Inventor
王立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI GEAK ELECTRONICS Co.,Ltd.
Original Assignee
SHANGHAI GUOKE ELECTRONIC CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI GUOKE ELECTRONIC CO Ltd filed Critical SHANGHAI GUOKE ELECTRONIC CO Ltd
Priority to CN201210276222.7A priority Critical patent/CN103581260B/en
Publication of CN103581260A publication Critical patent/CN103581260A/en
Application granted granted Critical
Publication of CN103581260B publication Critical patent/CN103581260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of system and methods for customizing http proxy content, and the system comprises routers, the URL for acquisition request;Built-in proxy server on the router generates customization http proxy content for storing the configuration information of customization http proxy content, and according to the URL of request and the configuration information;Configuration information server, for storing the configuration information of customization http proxy content, and the request of Receiving Agent server update configuration information, the feedback for updating configuration information is sent to the proxy server according to the request for updating configuration information, it realizes and the returned content of the URL of request is reset to customization http proxy content, one or a set of URL to be replaced can be replaced into target URL, proxy server regularly mode can carry out inquiring the configuration information for needing to update to server, and configuration information is updated according to the feedback dynamic of the update configuration information of configuration information server.

Description

Customize the system and method for http proxy content
Technical field
The present invention relates to a kind of system and methods for customizing http proxy content.
Background technique
Domestic consumer is that each class of electronic devices in family is enable to share internet link, it will usually buy wireless routing Device.Therefore, all access for internet of user will pass through router, and operator can be by being arranged in router Http proxy caching resets the specified URL content returned, such as former advertisement can be replaced with router confession Answer quotient's advertisement.
Therefore, a kind of system and method for customizing http proxy content is needed at present.
Summary of the invention
The purpose of the present invention is to provide a kind of system and methods for customizing http proxy content can be the URL's of request Returned content is reset to customization http proxy content, one or a set of URL to be replaced is replaced into target URL, and can be with The regularly configuration information that mode needs to update to server inquiry, and according to the update configuration information of configuration information server Feedback dynamic updates configuration information.
To solve the above problems, the present invention provides the system of a customization http proxy content, comprising:
Router, the URL for acquisition request;
The proxy server being built on the router, for storing the configuration information of customization http proxy content, and Customization http proxy content is generated according to the URL of request and the configuration information.
Further, in above system, the configuration information includes:
URL to be replaced and/or URL regular expression to be replaced;
Target URL, as the URL of the request and the URL to be replaced and/or URL regular expression matching to be replaced, The URL of the request is replaced with into target URL;
Customization http proxy content corresponding with the target URL.
It further, further include a configuration information server in above system, for storing customization http proxy content Configuration information, and the request of Receiving Agent server update configuration information, according to the request for updating configuration information to institute It states proxy server and sends the feedback for updating configuration information.
Further, in above system, the proxy server is also used to send more to the configuration information server The request of new configuration information.
Further, in above system, the proxy server is taken according to Fixed Time Interval to the configuration information Business device sends the request for updating configuration information.
Another side according to the present invention provides a kind of customization http generation of system using above-mentioned customization http proxy content The method for managing content, comprising:
It is built in the configuration information of the proxy server storage customization http proxy content on the router;
The URL of router acquisition request;
The proxy server generates customization http proxy content according to the URL of request and the configuration information.
Further, in the above-mentioned methods, the configuration information includes URL to be replaced and/or URL regular expressions to be replaced Formula, target URL and customization http proxy content corresponding with the target URL.
Further, in the above-mentioned methods, the proxy server generates fixed according to the URL of request and the configuration information The step of http proxy content processed includes:
As the URL of the request and the URL to be replaced and/or URL regular expression matching to be replaced, asked by described in The URL asked replaces with target URL;
Corresponding customization http proxy content is generated according to the target URL.
Further, in the above-mentioned methods, the proxy server storage customization http agency being built on the router The step of configuration information of content includes:
The configuration information of one configuration information server storage customization http proxy content;
The proxy server sends the request for updating configuration information to the configuration information server;
The configuration information server, which is sent according to the request for updating configuration information to the proxy server, to be updated The feedback of configuration information.
Further, in the above-mentioned methods, the proxy server takes according to Fixed Time Interval to the configuration information Business device sends the request for updating configuration information.
Compared with prior art, the present invention passes through the URL of router acquisition request, the agency being built on the router Server generates customization http proxy content according to the URL of request and the configuration information, realizes in the return the URL of request Appearance is reset to customization http proxy content.
In addition, URL and the URL to be replaced and/or URL regular expression matching to be replaced by working as the request When, the URL of the request is replaced with into target URL, supports the displacement of URL content, one or a set of URL to be replaced can be replaced For target URL.
Match confidence in addition, sending to update to the configuration information server according to Fixed Time Interval by proxy server The request of breath, configuration information server, which is sent according to the request for updating configuration information to the proxy server, updates configuration The feedback of information, proxy server regularly mode can carry out inquiry to server and need the configuration information that updates, and according to The feedback dynamic of the update configuration information of configuration information server updates configuration information.
Detailed description of the invention
Fig. 1 is the module diagram of the system of the customization http proxy content of the embodiment of the present invention one;
Fig. 2 is the module diagram of the system of the customization http proxy content of the embodiment of the present invention two;
Fig. 3 is the flow chart of the method for the customization http proxy content of the embodiment of the present invention three;
Fig. 4 is the flow chart of the method for the customization http proxy content of the embodiment of the present invention four.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Embodiment one
As shown in Figure 1, the present invention also provides a kind of systems for customizing http proxy content, including router 1 and it is built in Proxy server 2 on the router.
Router 1 is used for the URL of acquisition request.
Proxy server 2 is used to store the configuration information for customizing http proxy content, and according to the URL of request and described matches Confidence breath generates customization http proxy content.
Preferably, the configuration information includes:
URL to be replaced and/or URL regular expression to be replaced;
Target URL, as the URL of the request and the URL to be replaced and/or URL regular expression matching to be replaced, The URL of the request is replaced with into target URL;
Customization http proxy content corresponding with the target URL.
The present embodiment is based on http agent skill group, regular expression matching technology, in an agency built in router interior Server (http proxy server), proxy server can consult the configuration information of storage, and the URL of the request is replaced For target URL, realizes and the returned content of the URL of request is reset to customization http proxy content, it is such as real based on URL displacement Existing advertising business.
Embodiment two
As shown in Fig. 2, the present invention also provides a kind of systems for customizing http proxy content, including router 1, it is built in institute The proxy server 2 and configuration information server 3 on router are stated, the difference between this embodiment and the first embodiment lies in increasing one Configuration information server 3, proxy server regularly mode can carry out inquiring the configuration information for needing to update to server, and Configuration information is updated according to the feedback dynamic of the update configuration information of configuration information server.
Router 1 is used for the URL of acquisition request.
Proxy server 2 is used to store the configuration information for customizing http proxy content, and according to the URL of request and described matches Confidence breath generates customization http proxy content.
Configuration information server 3 is used to store the configuration information of customization http proxy content, and Receiving Agent server is more The request of new configuration information sends to the proxy server according to the request for updating configuration information and updates configuration information Feedback.
The proxy server 2, which is also used to send to the configuration information server 3, to be updated the request of configuration information and connects Receive the feedback for updating configuration information, wherein the proxy server is according to Fixed Time Interval to the configuration information server It sends the request for updating configuration information and receives the feedback for updating configuration information, i.e., proxy server 2 is according to Fixed Time Interval If 30 minutes query configuration information servers are primary, when the configuration information updated if necessary, configuration information server 3 is to described Proxy server 2 send institute the configuration information of update in need feedback, proxy server 2 receive configuration information server 3 need After the feedback for the configuration information to be updated, is indicated to update the configuration information in memory according to feedback, configuration information is made to come into force.
Preferably, the configuration information includes:
URL to be replaced and/or URL regular expression to be replaced;
Target URL, as the URL of the request and the URL to be replaced and/or URL regular expression matching to be replaced, The URL of the request is replaced with into target URL;
Customization http proxy content corresponding with the target URL.
The present embodiment is based under http agent skill group, regular expression matching technology and configuration information server configuration dynamic Characteristic is sent out, in a proxy server (http proxy server) built in router interior, proxy server is storable to be looked into Configuration information is read, the URL of the request is replaced into target URL, realizes the returned content of the URL of request to be reset to and determines Http proxy content processed, such as based on URL displacement realize advertising business, proxy server can regularly mode to server into The configuration information that row inquiry needs to update, and updated and configured according to the feedback dynamic of the update configuration information of configuration information server Information.
Embodiment three
As shown in figure 3, the present invention provides a kind of determining for the system of customization http proxy content using above-described embodiment one The method of http proxy content processed, comprising:
Step S11 is built in the configuration information of the proxy server storage customization http proxy content on the router;
Preferably, the configuration information include URL to be replaced and/or URL regular expression to be replaced, target URL and with The corresponding customization http proxy content of the target URL.
Step S12, the URL of router acquisition request;
Step S13, the proxy server generate in customization http agency according to the URL of request and the configuration information Hold.
Preferably, step S13 includes:
Step S131, when the URL and the URL to be replaced of the request and/or URL regular expression matching to be replaced When, the URL of the request is replaced with into target URL;
Step S132 generates corresponding customization http proxy content according to the target URL.
The present embodiment is based on http agent skill group, regular expression matching technology, in an agency built in router interior Server (http proxy server), proxy server can consult the configuration information of storage, and the URL of the request is replaced For target URL, realizes and the returned content of the URL of request is reset to customization http proxy content, it is such as real based on URL displacement Existing advertising business.
Example IV
As shown in figure 4, the present invention provides a kind of determining for the system of customization http proxy content using above-described embodiment two The difference of the method for http proxy content processed, the present embodiment and example IV be proxy server can regularly mode to clothes Business device carries out the configuration information that inquiry needs to update, and more according to the feedback dynamic of the update configuration information of configuration information server New configuration information, which comprises
Step S21, the configuration information of configuration information server storage customization http proxy content;
Step S22, the proxy server send the request for updating configuration information to the configuration information server, In, the proxy server according to Fixed Time Interval to the configuration information server send update configuration information request and The feedback for updating configuration information is received, i.e., proxy server is according to Fixed Time Interval such as 30 minutes query configuration information servers Once, when the configuration information updated if necessary, configuration information server sends institute's update in need to the proxy server Configuration information feedback, after proxy server receives the feedback of configuration information that configuration information server needs to update, according to Feedback instruction updates the configuration information in memory, and configuration information is made to come into force;
Step S23 updates the request of configuration information described in the configuration information server Receiving Agent server, according to institute State the feedback for updating the request of configuration information to proxy server transmission update configuration information;
Preferably, the configuration information include URL to be replaced and/or URL regular expression to be replaced, target URL and with The corresponding customization http proxy content of the target URL.
Step S24, the URL of router acquisition request;
Step S25, the proxy server generate in customization http agency according to the URL of request and the configuration information Hold.
Preferably, step S25 includes:
Step S251, when the URL and the URL to be replaced of the request and/or URL regular expression matching to be replaced When, the URL of the request is replaced with into target URL;
Step S252 generates corresponding customization http proxy content according to the target URL.
The present embodiment is based on http agent skill group, regular expression matching technology, in an agency built in router interior Server (http proxy server), proxy server can consult the configuration information of storage, and the URL of the request is replaced For target URL, realizes and the returned content of the URL of request is reset to customization http proxy content, it is such as real based on URL displacement Existing advertising business.
The present embodiment is based under http agent skill group, regular expression matching technology and configuration information server configuration dynamic Characteristic is sent out, in a proxy server (http proxy server) built in router interior, proxy server is storable to be looked into Configuration information is read, the URL of the request is replaced into target URL, realizes the returned content of the URL of request to be reset to and determines Http proxy content processed, such as based on URL displacement realize advertising business, proxy server can regularly mode to server into The configuration information that row inquiry needs to update, and updated and configured according to the feedback dynamic of the update configuration information of configuration information server Information.
In conclusion the present invention passes through the URL of router acquisition request, the proxy server being built on the router Customization http proxy content is generated according to the URL of request and the configuration information, is realized the returned content of the URL of request again It is set as customizing http proxy content.In addition, passing through the URL and the URL to be replaced and/or URL to be replaced that work as the request When regular expression matching, the URL of the request is replaced with into target URL, supports the displacement of URL content, it can be by one or one Group URL to be replaced is replaced into target URL.In addition, being taken according to Fixed Time Interval to the configuration information by proxy server Device of being engaged in sends the request for updating configuration information, and configuration information server is according to the request for updating configuration information to the agency Server send update configuration information feedback, proxy server can regularly mode to server carry out inquiry need to update Configuration information, and according to configuration information server update configuration information feedback dynamic update configuration information.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment For, due to corresponding to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from spirit of the invention to invention And range.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its equivalent technologies range it Interior, then the invention is also intended to include including these modification and variations.

Claims (7)

1. a kind of system for customizing http proxy content characterized by comprising
Router, the URL for acquisition request;
The proxy server being built on the router, for store customization http proxy content configuration information, and according to The URL of request and the configuration information generate customization http proxy content;
It further include a configuration information server, for storing the configuration information of customization http proxy content, and Receiving Agent service Device updates the request of configuration information, sends to update to the proxy server according to the request for updating configuration information and matches confidence The feedback of breath;
The proxy server is also used to send the request for updating configuration information to the configuration information server.
2. the system of customization http proxy content as described in claim 1, which is characterized in that the configuration information includes:
URL to be replaced and/or URL regular expression to be replaced;
Target URL, as the URL of the request and the URL to be replaced and/or URL regular expression matching to be replaced, by institute The URL for stating request replaces with target URL;
Customization http proxy content corresponding with the target URL.
3. the system of customization http proxy content as described in claim 1, which is characterized in that the proxy server is according to solid Fix time interval to the configuration information server send update configuration information request.
4. a kind of method using the customization http proxy content of the system of customization http proxy content as described in claim 1, It is characterised by comprising:
It is built in the configuration information of the proxy server storage customization http proxy content on the router;
The URL of the router acquisition request;
The proxy server generates customization http proxy content according to the URL of request and the configuration information;
Wherein, the step of being built in the configuration information of the proxy server storage customization http proxy content on router packet It includes:
The configuration information of one configuration information server storage customization http proxy content;
The proxy server sends the request for updating configuration information to the configuration information server;
The configuration information server, which is sent according to the request for updating configuration information to the proxy server, updates configuration The feedback of information.
5. the method for customization http proxy content as claimed in claim 4, which is characterized in that the configuration information includes wait replace Change URL and/or URL regular expression to be replaced, target URL and customization http proxy content corresponding with the target URL.
6. the method for customization http proxy content as claimed in claim 5, which is characterized in that the proxy server is according to asking The URL asked and the configuration information generate the step of customizing http proxy content
As the URL of the request and the URL to be replaced and/or URL regular expression matching to be replaced, by the request URL replaces with target URL;
Corresponding customization http proxy content is generated according to the target URL.
7. the method for customization http proxy content as claimed in claim 4, which is characterized in that the proxy server is according to solid Fix time interval to the configuration information server send update configuration information request.
CN201210276222.7A 2012-08-03 2012-08-03 Customize the system and method for http proxy content Active CN103581260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210276222.7A CN103581260B (en) 2012-08-03 2012-08-03 Customize the system and method for http proxy content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210276222.7A CN103581260B (en) 2012-08-03 2012-08-03 Customize the system and method for http proxy content

Publications (2)

Publication Number Publication Date
CN103581260A CN103581260A (en) 2014-02-12
CN103581260B true CN103581260B (en) 2019-01-01

Family

ID=50052176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210276222.7A Active CN103581260B (en) 2012-08-03 2012-08-03 Customize the system and method for http proxy content

Country Status (1)

Country Link
CN (1) CN103581260B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721549A (en) * 2016-01-20 2016-06-29 深圳创维数字技术有限公司 Router advertisement pushing method and router advertisement pushing device
CN107959929A (en) * 2017-11-08 2018-04-24 无线生活(杭州)信息科技有限公司 One kind switching Proxy Method and device
CN112968936A (en) * 2021-01-29 2021-06-15 紫光云技术有限公司 Proxy routing method for dynamically acquiring and selecting routing rule
CN117527885A (en) * 2022-07-29 2024-02-06 华为技术有限公司 Advertisement pushing method and device, electronic equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902450A (en) * 2009-11-13 2010-12-01 亿赞普(北京)科技有限公司 Network for realizing page push and control, page push method and page control method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060293962A1 (en) * 2005-05-20 2006-12-28 Anchorfree, Inc. Computerized networking device with embedded advanced content and web traffic monetization functionality
CN101127782B (en) * 2007-07-19 2011-04-20 中兴通讯股份有限公司 Method for forceful implementation of portal service
CN101355550B (en) * 2007-07-27 2011-12-21 中国电信股份有限公司 Method and system for pushing wideband information combining telecom wideband AAA system
CN101217568A (en) * 2008-01-15 2008-07-09 杭州华三通信技术有限公司 A webpage push method, system and device
CN102340526B (en) * 2010-07-20 2014-04-23 中国联合网络通信集团有限公司 Method and system for issuing directed information and home gateway

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902450A (en) * 2009-11-13 2010-12-01 亿赞普(北京)科技有限公司 Network for realizing page push and control, page push method and page control method

Also Published As

Publication number Publication date
CN103581260A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
US10374955B2 (en) Managing network computing components utilizing request routing
CN103209223B (en) distributed application session information sharing method, system and application server
CN111049854A (en) Service request transmission method and device
CN110580256B (en) Method, device and system for identifying application identification
CN104601736B (en) A kind of implementation method and device of short URL services
US8069224B2 (en) Method, equipment and system for resource acquisition
US20110271005A1 (en) Load balancing among voip server groups
CN104378452B (en) A kind of method, apparatus and system for domain name mapping
CN108696895A (en) Resource acquiring method, apparatus and system
US8161135B2 (en) Device identification number based name service
CN102118376A (en) CDN server and content download method
US8549118B2 (en) Updating a domain name server with information corresponding to dynamically assigned internet protocol addresses
CN103581260B (en) Customize the system and method for http proxy content
CN101375566A (en) Domain name system using dynamic DNS and dynamic DNS server global address management method
JP2016527817A (en) Method and system for associating an Internet Protocol (IP) address, a Media Access Control (MAC) address, and a location for a user device
US20120117214A1 (en) Service directory
US8230448B2 (en) Methods, systems and computer program products for web service interaction with a resource management system
CN109587290A (en) A kind of method and relevant apparatus of domain name mapping
CN101621548A (en) Method and system for realizing terminal resource sharing based on peer connection system
JP2013015991A (en) Information processor, server selection method, and program
RU2618943C2 (en) Method, device and system for distribution of applications
CN108063835B (en) Outer net domain name analytic method, server and system
JP5109901B2 (en) Session data sharing method
CN107223329B (en) A kind of dns resolution method, apparatus and network system
JP2007140975A (en) Service providing system, linkage information providing server, authentication server, service providing server, service providing method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: SHANGHAI GUOKE ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHENGYUE INFORMATION TECHNOLOGY (SHANGHAI) CO., LTD.

Effective date: 20140919

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140919

Address after: 201203, room 1, building 380, 108 Yin Yin Road, Shanghai, Pudong New Area

Applicant after: Shanghai Guoke Electronic Co., Ltd.

Address before: 201203 Shanghai Guo Shou Jing Road, Zhangjiang High Tech Park of Pudong New Area No. 356 building 3 Room 102

Applicant before: Shengle Information Technology (Shanghai) Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 127, building 3, 356 GuoShouJing Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Patentee after: SHANGHAI GEAK ELECTRONICS Co.,Ltd.

Address before: Room 108, building 1, 380 Yinbei Road, Pudong New Area, Shanghai 201203

Patentee before: Shanghai Nutshell Electronics Co.,Ltd.