Movatterモバイル変換


[0]ホーム

URL:


CN112637333A - A client-side intelligent proxy method - Google Patents

A client-side intelligent proxy method
Download PDF

Info

Publication number
CN112637333A
CN112637333ACN202011529441.2ACN202011529441ACN112637333ACN 112637333 ACN112637333 ACN 112637333ACN 202011529441 ACN202011529441 ACN 202011529441ACN 112637333 ACN112637333 ACN 112637333A
Authority
CN
China
Prior art keywords
proxy
user
client
request
proxy server
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.)
Pending
Application number
CN202011529441.2A
Other languages
Chinese (zh)
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.)
CHANJET INFORMATION TECHNOLOGY CO LTD
Original Assignee
CHANJET INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHANJET INFORMATION TECHNOLOGY CO LTDfiledCriticalCHANJET INFORMATION TECHNOLOGY CO LTD
Priority to CN202011529441.2ApriorityCriticalpatent/CN112637333A/en
Publication of CN112637333ApublicationCriticalpatent/CN112637333A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种客户端智能代理方法,包括:在用户客户端执行批处理,用户客户端根据批处理中多个代理服务器的ip地址进行网络优劣判断,批处理自动设置用户浏览器代理配置;启动用户浏览器,用户浏览器根据代理配置从代理服务器在线读取代理自动配置PAC文件;用户浏览器将PAC文件缓存到本地;用户浏览器根据PAC文件的内容对用户请求中的域名进行判断,确定将进行转发的域名;用户发起请求;请求数据被转发到代理服务器端;代理服务器根据确定的将进行转发的域名,将用户的请求直接转发给真实WEB服务器。

Figure 202011529441

The invention provides a client-side intelligent proxy method, comprising: executing batch processing on a user client, the user client judging the network quality according to the ip addresses of multiple proxy servers in the batch processing, and the batch processing automatically sets the user browser proxy Configuration; start the user browser, the user browser reads the proxy automatic configuration PAC file online from the proxy server according to the proxy configuration; the user browser caches the PAC file locally; the user browser performs the domain name in the user request according to the content of the PAC file Judgment, determine the domain name to be forwarded; the user initiates a request; the request data is forwarded to the proxy server; the proxy server directly forwards the user's request to the real WEB server according to the determined domain name to be forwarded.

Figure 202011529441

Description

Intelligent client agent method
Technical Field
The invention relates to the technical field of networks, in particular to an intelligent agent method for a client.
Background
Generally, when a user accesses a cloud product, some users may fail to access due to network quality differences. For example, due to network quality differences, user access may time out, resulting in end user access failure.
Therefore, it is desirable to provide a solution to the problem of user access timeout due to network quality differences.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an intelligent client proxy method, which can forward a user request to a cloud product through a proxy server in a proxy manner to solve the problem of user access timeout, aiming at the above defects in the prior art.
According to the invention, the intelligent agent method for the client comprises the following steps:
the first step is as follows: executing batch processing at a user client, and judging network quality by the user client according to ip addresses of a plurality of proxy servers in the batch processing, wherein the batch processing automatically sets proxy configuration of a user browser;
the second step is as follows: starting a user browser, and reading an agent automatic configuration PAC file from an agent server on line by the user browser according to agent configuration;
the third step: caching the PAC file to the local by the user browser;
the fourth step: the user browser judges the domain name in the user request according to the content of the PAC file and determines the domain name to be forwarded;
the fifth step: a user initiates a request;
a sixth step: the request data is forwarded to the proxy server side;
a seventh step of: and the proxy server directly forwards the request of the user to the real WEB server according to the determined domain name to be forwarded.
Preferably, the client-side intelligent agent method is used for realizing access agent under the condition of accessing a cloud product.
Preferably, the client-side intelligent agent method performs an intranet penetration function.
Preferably, the proxy server is implemented by the open source software require.
Preferably, the proxy server may be one or more of an arry cloud proxy server, a hua cloud proxy server, a sky cloud proxy server, and the like.
Preferably, the proxy server forwards the user's request directly to the real WEB server via a WEB application prevention system (WAF).
The invention can intelligently select routes, realize that the user can not directly access the cloud product through forward proxy, realize forward proxy on the appointed domain name, and forward the request of the user to the cloud product through the proxy server in a proxy mode to solve the problem of overtime access of the user.
Drawings
A more complete understanding of the present invention, and the attendant advantages and features thereof, will be more readily understood by reference to the following detailed description when considered in conjunction with the accompanying drawings wherein:
FIG. 1 schematically illustrates a flow diagram of a client-side intelligent agent method in accordance with a preferred embodiment of the present invention.
Fig. 2 schematically shows a principle schematic of the client-side intelligent agent method according to a preferred embodiment of the present invention.
Fig. 3 schematically shows a proxy server principle diagram of the client-side intelligent proxy method according to a preferred embodiment of the present invention.
It is to be noted, however, that the appended drawings illustrate rather than limit the invention. It is noted that the drawings representing structures may not be drawn to scale. Also, in the drawings, the same or similar elements are denoted by the same or similar reference numerals.
Detailed Description
In order that the present disclosure may be more clearly and readily understood, reference will now be made in detail to the present disclosure as illustrated in the accompanying drawings.
In the present invention, the intelligent agent consists of both a client batch script and a forward agent. The batch processing is carried out for intelligently selecting routes and downloading configuration files of the proxy server side according to the user network, and proxy forwarding is carried out on the appointed request; the proxy server is responsible for forwarding the user request to the cloud product website.
Specifically, fig. 1 schematically shows a flowchart of a client-side intelligent agent method according to a preferred embodiment of the present invention, and fig. 2 schematically shows a schematic diagram of a principle of the client-side intelligent agent method according to a preferred embodiment of the present invention. The client intelligent agent method according to the preferred embodiment of the invention can realize the intranet penetration function. The client intelligent agent method of the preferred embodiment of the invention is used for realizing access agent under the condition of accessing cloud products.
As shown in fig. 1 and 2, the client-side intelligent agent method according to the preferred embodiment of the present invention includes:
first step S1: executing batch processing at a user client, and judging network quality by the user client according to ip addresses of a plurality of proxy servers in the batch processing, wherein the batch processing automatically sets proxy configuration of a user browser;
wherein, the batch processing is a script file under Windows; by double-clicking the file, or entering the file name in the command line, the contents thereof can be executed line by line.
Second step S2: starting a user browser, and reading an agent automatic configuration PAC file from an agent server on line by the user browser according to agent configuration;
third step S3: caching the PAC file to the local by the user browser;
fourth step S4: the user browser judges the domain name in the user request according to the content of the PAC file, and determines the domain name to be forwarded (only the domain name which meets the requirement of proxy is forwarded);
the PAC file contains a JavaScript-form function "FindProxyForURL (url, host)". This function returns a string containing one or more access rules. The user agent adapts a particular agent or direct access according to these rules. Multiple access rules provide other backup access methods when a proxy server is not available to respond. The browser first accesses this PAC file before accessing other pages. The URL in the PAC file may be manually configured or may be automatically configured through a Web Proxy self discovery Protocol (Web Proxy automatic discovery Protocol) of the Web page.
The above-described first step S1 to fourth step S4 are processed for the setting of the agent as a preliminary stage.
Fifth step S5: a user initiates a request (e.g., requests access to a cloud product);
sixth step S6: the request data is forwarded to the proxy server side;
seventh step S7: and the proxy server directly forwards the request of the user to the real WEB server according to the determined domain name to be forwarded.
Preferably, the proxy server forwards the user's request directly to the real WEB server via a WEB application prevention system (WAF).
Specifically, for example, the proxy server is implemented by an open source software request supporting HTTP, HTTPs, FTP, or other protocols, and is used to help the user access the internet, as shown in fig. 3.
For example, the proxy server may be one or more of an arri cloud proxy server, a hua cloud proxy server, a sky cloud proxy server, and the like.
According to the invention, through the intelligent agent device, the user can access the cloud product in an agent mode when the user cannot directly access the cloud product.
The invention can intelligently select routes, realize that the user can not directly access the cloud product through forward proxy, realize forward proxy on the appointed domain name, and forward the request of the user to the cloud product through the proxy server in a proxy mode to solve the problem of overtime access of the user.
It should be noted that the terms "first", "second", "third", and the like in the description are used for distinguishing various components, elements, steps, and the like in the description, and are not used for indicating a logical relationship or a sequential relationship between the various components, elements, steps, and the like, unless otherwise specified.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.

Claims (6)

Translated fromChinese
1.一种客户端智能代理方法,其特征在于包括:1. a client-side intelligent proxy method, is characterized in that comprising:第一步骤:在用户客户端执行批处理,用户客户端根据批处理中多个代理服务器的ip地址进行网络优劣判断,批处理自动设置用户浏览器代理配置;The first step: execute batch processing on the user client, the user client performs network quality judgment according to the IP addresses of multiple proxy servers in the batch processing, and the batch processing automatically sets the user browser proxy configuration;第二步骤:启动用户浏览器,用户浏览器根据代理配置从代理服务器在线读取代理自动配置PAC文件;The second step: start the user browser, and the user browser reads the proxy automatic configuration PAC file online from the proxy server according to the proxy configuration;第三步骤:用户浏览器将PAC文件缓存到本地;The third step: the user browser caches the PAC file locally;第四步骤:用户浏览器根据PAC文件的内容对用户请求中的域名进行判断,确定将进行转发的域名;The fourth step: the user browser judges the domain name in the user request according to the content of the PAC file, and determines the domain name to be forwarded;第五步骤:用户发起请求;The fifth step: the user initiates a request;第六步骤:请求数据被转发到代理服务器端;Step 6: The request data is forwarded to the proxy server;第七步骤:代理服务器根据确定的将进行转发的域名,将用户的请求直接转发给真实WEB服务器。Step 7: The proxy server directly forwards the user's request to the real WEB server according to the determined domain name to be forwarded.2.根据权利要求1所述的客户端智能代理方法,其特征在于,所述客户端智能代理方法用于在访问云端产品的情况下实现访问代理。2 . The client-side intelligent proxy method according to claim 1 , wherein the client-side intelligent proxy method is used to implement an access proxy when accessing a cloud product. 3 .3.根据权利要求1或2所述的客户端智能代理方法,其特征在于,所述客户端智能代理方法执行内网穿透功能。3. The client-side intelligent proxy method according to claim 1 or 2, wherein the client-side intelligent proxy method performs an intranet penetration function.4.根据权利要求1或2所述的客户端智能代理方法,其特征在于,代理服务器由开源软件squid实现。4. The client-side intelligent proxy method according to claim 1 or 2, wherein the proxy server is realized by open source software squid.5.根据权利要求1或2所述的客户端智能代理方法,其特征在于,代理服务器是阿里云代理服务器、华为云代理服务器、天翼云代理服务器等中的一个或多个。5. The client-side intelligent proxy method according to claim 1 or 2, wherein the proxy server is one or more of Alibaba Cloud proxy server, Huawei Cloud proxy server, Tianyi Cloud proxy server and the like.6.根据权利要求1或2所述的客户端智能代理方法,其特征在于,代理服务器经由WEB应用防护系统(WAF)将用户的请求直接转发给真实WEB服务器。6. The client-side intelligent proxy method according to claim 1 or 2, wherein the proxy server directly forwards the user's request to the real WEB server via a WEB application protection system (WAF).
CN202011529441.2A2020-12-222020-12-22 A client-side intelligent proxy methodPendingCN112637333A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011529441.2ACN112637333A (en)2020-12-222020-12-22 A client-side intelligent proxy method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011529441.2ACN112637333A (en)2020-12-222020-12-22 A client-side intelligent proxy method

Publications (1)

Publication NumberPublication Date
CN112637333Atrue CN112637333A (en)2021-04-09

Family

ID=75321254

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011529441.2APendingCN112637333A (en)2020-12-222020-12-22 A client-side intelligent proxy method

Country Status (1)

CountryLink
CN (1)CN112637333A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114024947A (en)*2022-01-052022-02-08北京微步在线科技有限公司Web access method and device based on browser

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102624920A (en)*2012-03-312012-08-01奇智软件(北京)有限公司 A method and device for accessing through a proxy server
CN103516785A (en)*2013-08-192014-01-15上海艾泰网络信息有限公司Web page proxy system and communication method thereof
CN104065749A (en)*2014-07-102014-09-24上海斐讯数据通信技术有限公司Method and device for accessing web through proxy
CN105245607A (en)*2015-10-232016-01-13中国联合网络通信集团有限公司 Proxy server dynamic automatic selection method and system
CN106921699A (en)*2015-12-252017-07-04北京奇虎科技有限公司A kind of Network Access Method, device and system
CN107105033A (en)*2017-04-212017-08-29北京奇安信科技有限公司Cloud application access method, cloud proxy server and cloud application access system
CN107920101A (en)*2016-10-102018-04-17阿里巴巴集团控股有限公司A kind of file access method, device, system and electronic equipment
CN108156210A (en)*2016-12-062018-06-12腾讯科技(深圳)有限公司The acquisition methods and device of target resource
US20190386961A1 (en)*2018-06-192019-12-19Cisco Technology, Inc.Proxy-based clientless vpn with web browser proxy auto-configuration (pac) file and extension
CN111064795A (en)*2019-12-202020-04-24腾讯科技(深圳)有限公司Web page access acceleration method, system, computer equipment, server and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102624920A (en)*2012-03-312012-08-01奇智软件(北京)有限公司 A method and device for accessing through a proxy server
CN103516785A (en)*2013-08-192014-01-15上海艾泰网络信息有限公司Web page proxy system and communication method thereof
CN104065749A (en)*2014-07-102014-09-24上海斐讯数据通信技术有限公司Method and device for accessing web through proxy
CN105245607A (en)*2015-10-232016-01-13中国联合网络通信集团有限公司 Proxy server dynamic automatic selection method and system
CN106921699A (en)*2015-12-252017-07-04北京奇虎科技有限公司A kind of Network Access Method, device and system
CN107920101A (en)*2016-10-102018-04-17阿里巴巴集团控股有限公司A kind of file access method, device, system and electronic equipment
CN108156210A (en)*2016-12-062018-06-12腾讯科技(深圳)有限公司The acquisition methods and device of target resource
CN107105033A (en)*2017-04-212017-08-29北京奇安信科技有限公司Cloud application access method, cloud proxy server and cloud application access system
US20190386961A1 (en)*2018-06-192019-12-19Cisco Technology, Inc.Proxy-based clientless vpn with web browser proxy auto-configuration (pac) file and extension
CN111064795A (en)*2019-12-202020-04-24腾讯科技(深圳)有限公司Web page access acceleration method, system, computer equipment, server and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114024947A (en)*2022-01-052022-02-08北京微步在线科技有限公司Web access method and device based on browser
CN114024947B (en)*2022-01-052022-04-01北京微步在线科技有限公司Web access method and device based on browser

Similar Documents

PublicationPublication DateTitle
US7523193B2 (en)Method and apparatus for DNS pre-fetching for multiple clients
US10911561B2 (en)Method and network node for caching web content
US7490162B1 (en)Method and system for forwarding messages received at a traffic manager
US9183188B2 (en)Dynamic toolbar for markup language document
US8495719B2 (en)Cross-domain access prevention
KR100307374B1 (en)Filtered utilization of internet data transfers to reduce delay and increase user control
US6249804B1 (en)Computer network read-ahead caching method
US20030217173A1 (en)Automatic proxy detection
US20020083133A1 (en)Methods and apparatus for downloading a file from a server
US20130103782A1 (en)Apparatus and method for caching of compressed content in a content delivery network
JP2008538883A (en) Resource address request management method and related gateway device
US6606645B1 (en)Method for preconnecting to a server on a network
JP2004511852A (en) System and method for speeding up transfer of network data
JP2002518726A (en) A highly scalable proxy server using plug-in filters
US7305479B1 (en)Methods and apparatus for delivery of content requests within a content delivery network
WO2001046823A1 (en)Server-side caching engine
US9654575B1 (en)Pass-through web traffic systems and methods
US20090234961A1 (en)Server-side protocol configuration of accessing clients
CN112243013A (en) A method, system, server and storage medium for realizing cross-domain resource caching
JP2009140290A (en) Content relay apparatus, content relay system, content relay method, and program
CN112637333A (en) A client-side intelligent proxy method
EP1394701A2 (en)Establishment of network connections
US20110055342A1 (en)Method and system for retrieving a resource
US9443012B2 (en)Method of determining http process information
US20160323352A1 (en)Web proxy

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20210409

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp