CN111107056A - Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server - Google Patents

Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server Download PDF

Info

Publication number
CN111107056A
CN111107056A CN201911164247.6A CN201911164247A CN111107056A CN 111107056 A CN111107056 A CN 111107056A CN 201911164247 A CN201911164247 A CN 201911164247A CN 111107056 A CN111107056 A CN 111107056A
Authority
CN
China
Prior art keywords
link url
protocol stack
external link
client
domain name
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
CN201911164247.6A
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.)
Reyzar Technology Co ltd
Original Assignee
Reyzar 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 Reyzar Technology Co ltd filed Critical Reyzar Technology Co ltd
Priority to CN201911164247.6A priority Critical patent/CN111107056A/en
Publication of CN111107056A publication Critical patent/CN111107056A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for calling an external link URL resource and a protocol conversion server, which relate to the technical field of Internet and are used for identifying a first protocol stack used by a client and a second protocol stack supported by the external link URL in page response content of a response client; if the first protocol stack is inconsistent with the second protocol stack, rewriting the first-level domain name of the external link URL and the whole domain name string by using a preset rewriting rule, and sending the rewritten page response content to the client; receiving an external link URL (uniform resource locator) calling request which is sent by a client and contains rewritten page response content; acquiring the resource of the external link URL according to the external link URL calling request; the first-level domain name of the out-link URL and the whole domain name string are rewritten, so that the out-link URL is placed under the domain name of the accessed website, the phenomenon that unnecessary translation is increased due to rewriting of the domain name of the out-link website accessed by the user is effectively relieved, the communication time is shortened, and the use experience of the user is improved.

Description

Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for calling out an out-link URL resource and a protocol conversion server.
Background
Currently, most of the Internet adopts an IPv4(Internet Protocol Version 4) Protocol with 32-bit address, and since the development of the Internet is restricted by insufficient IP (Internet Protocol, Protocol for interconnection between networks) address space of the IPv4 Protocol, logic codes related to IP addresses are all modified to be compatible with IPv4/IPv6(Internet Protocol Version 6) protocols by using a dual stack technology or a translation technology, so that a website can be compatible with the access of IPv6 users and IPv4 users at the same time.
At present, a network modified by the technology is easy to have a blank window phenomenon when a client accesses the network, and more particularly, the blank window phenomenon is easy to occur when a link introduced by the network is not modified after the modification of the local website is completed.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a protocol conversion server for out-link URL resource invocation to alleviate the above technical problems.
In a first aspect, an embodiment of the present invention provides a method for calling an out-link URL resource, where the method is applied to a protocol conversion server, and the method includes: identifying a first protocol stack used by the client and identifying a second protocol stack supported by an out-link URL in page response content of the responding client; judging whether the first protocol stack is consistent with the second protocol stack; if not, rewriting the first-level domain name of the outer-link URL and the whole domain name string by using a preset rewriting rule, and sending the rewritten page response content to the client, wherein the rewritten outer-link URL can be resolved to the protocol conversion server through the domain name; receiving an external link URL (uniform resource locator) calling request which is sent by a client and contains rewritten page response content; and acquiring the resource of the external link URL according to the external link URL calling request.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of identifying a second protocol stack supported by an out-link URL in page response content of the responding client includes: detecting whether an address port corresponding to an external link URL works normally or not; if so, calling a DNS server to inquire the record information supported by the external link URL; and determining a second protocol stack supported by the external link URL according to the record information.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of determining, according to the record information, a second protocol stack supported by the out-link URL includes: if the record information supported by the external link URL is the first record information, determining that a second protocol stack supported by the external link URL is an IPv4 protocol stack; and if the record information supported by the external link URL is the second record information, determining that the second protocol stack supported by the external link URL is the IPv6 protocol stack.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where an external link protocol stack type cache database unit is built in a protocol conversion server, and the method further includes: and storing the identified second protocol stack into an external link protocol stack type cache database unit.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of obtaining a resource of an out-link URL according to an out-link URL call request includes: determining the address of the out-link URL through the out-link URL calling request; and acquiring the resource of the out-link URL according to the address of the out-link URL.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the step of determining an address of an out-link URL through an out-link URL call request includes: restoring the external link URL calling request according to a preset restoring rule; and the calling DNS server analyzes the restored external link URL calling request to determine a source station address corresponding to the external link URL.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the step of obtaining a resource of an out-link URL according to an address of the out-link URL includes: and sending the restored external link URL calling request to the source station address by utilizing a protocol stack corresponding to the source station address so as to acquire the resource of the external link URL responded by the restored external link URL calling request.
With reference to the sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the method further includes: and sending the resource of the out-link URL to the client for displaying by using the protocol stack corresponding to the first protocol stack.
In a second aspect, an embodiment of the present invention further provides an apparatus for out-link URL resource invocation, where the apparatus is applied to a protocol conversion server, and the apparatus includes: the identification module is used for identifying a first protocol stack used by the client and identifying a second protocol stack supported by an out-link URL in page response content of the response client; the judging module is used for judging whether the first protocol stack is consistent with the second protocol stack; the sending module is used for rewriting the first-level domain name of the external link URL and the whole domain name string by using a preset rewriting rule and sending the rewritten page response content to the client if the judging module judges that the external link URL is not the first-level domain name; wherein, the rewritten outer link URL can be resolved to the protocol conversion server through the domain name; the receiving module is used for receiving an external link URL calling request which is sent by the client and contains the rewritten page response content; and the acquisition module is used for acquiring the resources of the external link URL according to the external link URL calling request.
In a third aspect, an embodiment of the present invention further provides a protocol conversion server, where the protocol conversion server includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the foregoing method.
The embodiment of the invention has the following beneficial effects:
the method, the device and the protocol conversion server for calling the external link URL resource can identify a first protocol stack used by a client and identify a second protocol stack supported by the external link URL in the page response content of a response client; judging whether the first protocol stack is consistent with the second protocol stack; if not, utilizing a preset rewriting rule to rewrite the primary domain name of the external link URL and the whole domain name string, and sending the rewritten page response content to the client; wherein, the rewritten outer link URL can be resolved to the protocol conversion server through the domain name; receiving an external link URL (uniform resource locator) calling request which is sent by a client and contains rewritten page response content; acquiring the resource of the external link URL according to the external link URL calling request; the first-level domain name of the out-link URL and the whole domain name string are rewritten, so that the out-link URL is placed under the domain name of the accessed website, the problem of blank windows is effectively solved, the phenomenon that unnecessary translation is increased due to rewriting of the domain name of the out-link website accessed by the user is effectively relieved, the communication time is shortened, and the use experience of the user is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for out-link URL resource invocation according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for out-link URL resource invocation according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a protocol conversion server according to an embodiment of the present invention;
fig. 4 is a block diagram of a protocol conversion server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the development and demand of network technology, websites compatible with the IPv4/IPv6 protocol are accessed by more and more users, however, network modification using the dual stack technology or the translation technology is prone to have a blank window when a client accesses the network, and more so, when a link referenced by the modified website is not modified, the blank window is often called a "skylight", and the problem of the "skylight" is caused by a failure of accessing an out-link URL (Uniform resource locator) resource. For example, when a content page of a website a supporting the IPv6 protocol refers to a picture or other resources of a website B that does not support the IPv6 protocol, when an IPv6 client accesses the content of the website a, a DNS (Domain Name System) server is used to resolve the IPv6 address of the website a, and the website a server interacts with the IPv6 protocol to obtain a response page, when the IPv6 client analyzes that the picture or other resources of the website a needs to be fetched, the DNS server will also resolve the IPv6 address of the B first, because the website B does not complete the IPv6 modification, at this time, the IPv6 address cannot be resolved or the IPv6 address protocol fails to access the website B, and the IPv6 client fails to obtain the picture or resources of the website B, which causes some blank windows to appear when the client such as a browser displays the website a page, which is called "skylights". In the "skylights" problem example described above, the picture or other resource URL of website B contained in a is referred to as the out-link URL for original website a. I.e., the out-link URL refers to the URL of a domain name chain of a non-web content provider.
At present, the common method for solving the blank window solves the problems by rewriting the domain name of the out-link website accessed by the user, but the method increases unnecessary translation in the communication process of the network, prolongs the communication time and reduces the use experience of the user. Based on this, the method, the apparatus and the protocol conversion server for external link URL resource invocation provided in the embodiments of the present invention can alleviate the above technical problems.
To facilitate understanding of the embodiment, a detailed description is first given to a method for out-link URL resource invocation disclosed in the embodiment of the present invention.
The first embodiment is as follows:
the embodiment of the invention provides a method for calling an external link URL (Uniform resource locator) resource, which is applied to a protocol conversion server, wherein the protocol conversion server is a machine simultaneously having IPv6 and IPv4 addresses and protocol processing capacity, is deployed between a client and a source station server to play an agent role, is provided with seven layers of agent service software, and can communicate with two ends of an agent by using an IP (Internet protocol) protocol supported by an opposite end; the source site server is a web site content server that provides content service responses and may communicate with the protocol translation server using the supported IP address protocol.
In a specific implementation, as shown in fig. 1, a flowchart of a method for out-link URL resource invocation is provided, where the method includes the following steps:
step S102, identifying a first protocol stack used by a client and identifying a second protocol stack supported by an external link URL in page response content of a response client;
specifically, when a client accesses an HTTP:// www.abc.com/page, a DNS server resolves www.abc.com address to a Protocol conversion server, and the client sends an HTTP (Hyper text transport Protocol) request to the Protocol conversion server through a first Protocol stack, wherein the HTTP request comprises HTTP:// www.abc.com/; after receiving the request, the protocol conversion server forwards the http:// www.abc.com/returns to the server of the source station where www.abc.com is located; www.abc.com the source station server returns page response content to the protocol conversion server after receiving http:// www.abc.com/request, therefore, the protocol conversion server can identify the second protocol stack supported by the external link URL in the response page content sent by the client and the source station server.
Step S104, judging whether the first protocol stack is consistent with the second protocol stack;
step S106, if not, the first-level domain name of the outer-link URL and the whole domain name string are rewritten by utilizing a preset rewrite rule, and the rewritten page response content is sent to the client, wherein the rewritten outer-link URL can be resolved to the protocol conversion server through the domain name;
preferably, if the first protocol stack used by the client identified by the protocol conversion server is IPv6, and the identified out-link URL address www.v4exlink.com is an out-link supporting only IPv4, the out-link URL address www.v6exlink.com is an out-link supporting IPv 6; because the protocol stack of the out-link URL address www.v6exlink.com is the same as that of the client, the out-link URL address www.v6exlink.com does not need to be processed and can be directly accessed by the IPv6 client; the protocol stack of the out-link URL address www.v4exlink.com is different from that of the client, so the first-level domain name of the out-link URL and the whole domain name string need to be rewritten by a preset connection character string rewriting rule, for example, the IPv4 out-link URL address www.v4exlink.com can be rewritten to www.v4exlink.exl.ipv6.abc.com, and then the protocol conversion server sends the rewritten page response content to the client.
Step S108, receiving an external link URL calling request which is sent by the client and contains rewritten page response content;
and step S110, acquiring the resource of the external link URL according to the external link URL calling request.
Specifically, after receiving http:// www.abc.com/page response content sent by a protocol conversion server, a client analyzes and shows that the page also needs to load an external link URL www.v4exlink.exl.ipv6.abc.com, the IPv6 client requests a DNS server to analyze an IPv6 address of www.v4exlink.ex1.ipv6.abc.com, the analyzed address is the protocol conversion server, the IPv6 client sends www.v4exlink.exl.ipv6.abc.com external link URL calling request to the protocol conversion server based on an IPv6 protocol, and resources of the external link URL are obtained according to the external link URL calling request.
The method for calling the external link URL resource provided by the embodiment of the invention can identify a first protocol stack used by the client and identify a second protocol stack supported by the external link URL in the page response content of the response client; judging whether the first protocol stack is consistent with the second protocol stack; if not, utilizing a preset rewriting rule to rewrite the primary domain name of the external link URL and the whole domain name string, and sending the rewritten page response content to the client; wherein, the rewritten outer link URL can be resolved to the protocol conversion server through the domain name; receiving an external link URL (uniform resource locator) calling request which is sent by a client and contains rewritten page response content; acquiring the resource of the external link URL according to the external link URL calling request; the first-level domain name of the out-link URL and the whole domain name string are rewritten, so that the out-link URL is placed under the domain name of the accessed website, the problem of blank windows is effectively solved, the phenomenon that unnecessary translation is increased due to rewriting of the domain name of the out-link website accessed by the user is effectively relieved, the communication time is shortened, and the use experience of the user is improved.
Further, the second protocol stack supported by the out-link URL in the page response content of the identification responding client in step S106 can be implemented by steps 11 to 13:
step 11, detecting whether an address and a port corresponding to an external link URL work normally;
specifically, if the source station server responds to the HTTP request of the protocol conversion server, and returns a status code of 200 or 302, the address and the port operate normally, and the other status codes indicate that the address and the port operate abnormally.
Step 12, if yes, calling a DNS server to inquire the record information supported by the external link URL;
and step 13, determining a second protocol stack supported by the external link URL according to the record information.
During specific implementation, if the record information supported by the external link URL is first record information, wherein the first record information is an A record, determining that a second protocol stack supported by the external link URL is an IPv4 protocol stack; and if the record information supported by the external link URL is second record information, wherein the second record information is an AAAA record, determining that the second protocol stack supported by the external link URL is an IPv6 protocol stack.
In particular implementation, fig. 2 shows a flowchart of another method for out-link URL resource invocation, which includes the following steps:
step S201, identifying a first protocol stack used by a client and identifying a second protocol stack supported by an external link URL in page response content of a response client;
step S202, storing the identified second protocol stack into an external link protocol stack type cache database unit;
during specific implementation, an external link protocol stack type cache database unit is arranged in the protocol conversion server, and the detection result of the external link can be cached and recorded in the external link protocol stack type cache database unit, for example, the external link URL address www.v4exlink.com can record that the external link is an IPv4 protocol stack external link, and the external link URL address www.v6exlink.com can record that the external link is an IPv6 protocol stack external link; the same external link domain name for upgrading the website through the same protocol conversion server can directly inquire and respond through an external link protocol stack type cache database unit without repeated DNS server inquiry, thereby improving the access speed of a user. The buffering time of the external link protocol stack type buffer database unit can be independently set for different external link websites, and the buffering time of the external link protocol stack type buffer database unit is not limited in this embodiment.
Step S203, judging whether the first protocol stack is consistent with the second protocol stack;
step S204, if not, the first-level domain name of the outer-link URL and the whole domain name string are rewritten by utilizing a preset rewrite rule, and the rewritten page response content is sent to the client, wherein the rewritten outer-link URL can be resolved to the protocol conversion server through the domain name;
step S205, receiving an external link URL calling request containing rewritten page response content sent by a client;
step S206, acquiring resources of the external link URL according to the external link URL calling request;
specifically, the address of the out-link URL is determined through the out-link URL calling request; the method comprises the following steps that an external link URL calling request is restored according to a preset restoring rule; and the calling DNS server analyzes the restored external link URL calling request to determine a source station address corresponding to the external link URL. And then, acquiring the resource of the external link URL according to the address of the external link URL, specifically, sending the external link URL call request subjected to the reduction processing to the source station address by using a protocol stack corresponding to the source station address so as to acquire the resource of the external link URL responding to the external link URL call request subjected to the reduction processing.
And step S207, sending the resource of the out-link URL to the client for displaying by using the protocol stack corresponding to the first protocol stack.
Specifically, the protocol conversion server sends the resource of the out-link URL to the client for page display by using the IPv6 protocol stack. In this embodiment, the method for the protocol conversion server to process the HTTP request from the IPv4 client to invoke the IPv6/IPv4 out-link URL address is the same as the above, and will not be described herein again.
Example two:
corresponding to the method for calling out an out-link URL resource shown in fig. 1, an embodiment of the present invention provides an out-link URL resource calling apparatus, where the apparatus is applied to a protocol conversion server, and as shown in fig. 3, the apparatus includes:
an identifying module 302, configured to identify a first protocol stack used by the client and identify a second protocol stack supported by an out-link URL in page response content of the responding client;
a judging module 304, configured to judge whether the first protocol stack is consistent with the second protocol stack;
a sending module 306, configured to rewrite the first-level domain name of the out-link URL and the entire domain name string according to a preset rewrite rule if the determining module determines that the page response content is not the same as the first-level domain name of the out-link URL; wherein, the rewritten outer link URL can be resolved to the protocol conversion server through the domain name;
a receiving module 308, configured to receive an out-link URL invoking request that includes rewritten page response content and is sent by a client;
the obtaining module 310 is configured to obtain a resource of the out-link URL according to the out-link URL call request.
The device for calling the out-link URL resource provided by the embodiment of the invention has the same technical characteristics as the method for calling the out-link URL resource provided by the embodiment, so that the same technical problems can be solved, and the same technical effect can be achieved.
The embodiment of the invention also provides a protocol conversion server, wherein the protocol conversion server comprises a processor and a memory, the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the method for calling the external link URL resource.
Further, embodiments of the present invention also provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the method for calling the out-link URL resource.
Referring to fig. 4, a block diagram of a protocol conversion server is shown, which includes: the system comprises a processor 700, a memory 701, a bus 702 and a communication interface 703, wherein the processor 700, the communication interface 703 and the memory 701 are connected through the bus 702; the processor 700 is adapted to execute executable modules, such as computer programs, stored in the memory 701.
The Memory 701 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 703 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
Bus 702 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The processor 700 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 700. The Processor 700 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 701, and the processor 700 reads the information in the memory 701, and completes the steps of the method in combination with the hardware thereof.
The method, the apparatus, and the computer program product of the protocol conversion server for external link URL resource invocation provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the protocol conversion server described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for out-link URL resource invocation, wherein the method is applied to a protocol conversion server, the method comprising:
identifying a first protocol stack used by a client and identifying a second protocol stack supported by an out-link URL in page response content responding to the client;
judging whether the first protocol stack is consistent with the second protocol stack;
if not, rewriting the first-level domain name of the external link URL and the whole domain name string by using a preset rewriting rule, and sending the rewritten page response content to the client, wherein the rewritten external link URL can be analyzed to the protocol conversion server through the domain name;
receiving an external link URL (uniform resource locator) calling request which is sent by the client and contains the rewritten page response content;
and acquiring the resource of the external link URL according to the external link URL calling request.
2. The method of claim 1, wherein identifying a second protocol stack supported by an out-link URL in page response content responsive to the client comprises:
detecting whether an address port corresponding to the external link URL works normally or not;
if so, calling a DNS server to inquire the record information supported by the external link URL;
and determining a second protocol stack supported by the external link URL according to the record information.
3. The method of claim 2, wherein determining the second protocol stack supported by the out-link URL from the logging information comprises:
if the record information supported by the external link URL is the first record information, determining that a second protocol stack supported by the external link URL is an IPv4 protocol stack;
and if the record information supported by the external link URL is second record information, determining that a second protocol stack supported by the external link URL is an IPv6 protocol stack.
4. The method of claim 3, wherein the protocol translation server has an external link protocol stack type cache database unit built therein, and wherein the method further comprises:
and storing the identified second protocol stack into the external link protocol stack type cache database unit.
5. The method of claim 1, wherein the step of obtaining the resource of the out-link URL according to the out-link URL call request comprises:
determining the address of the out-link URL through the out-link URL calling request;
and acquiring the resource of the out-link URL according to the address of the out-link URL.
6. The method of claim 5, wherein determining the address of the out-link URL from the out-link URL call request comprises:
restoring the external link URL calling request according to a preset restoring rule;
and calling the DNS server to analyze the restored external link URL calling request so as to determine a source station address corresponding to the external link URL.
7. The method of claim 6, wherein the step of obtaining the resource of the out-link URL according to the address of the out-link URL comprises:
and sending the external link URL calling request subjected to the reduction processing to the source station address by utilizing a protocol stack corresponding to the source station address so as to acquire the resource of the external link URL responding to the external link URL calling request subjected to the reduction processing.
8. The method of claim 7, further comprising:
and sending the resource of the external link URL to a client for displaying by using the protocol stack corresponding to the first protocol stack.
9. An apparatus for out-link URL resource invocation, the apparatus being applied to a protocol conversion server, the apparatus comprising:
the identification module is used for identifying a first protocol stack used by a client and identifying a second protocol stack supported by an out-link URL in page response content responding to the client;
the judging module is used for judging whether the first protocol stack is consistent with the second protocol stack;
a sending module, configured to rewrite the first-level domain name of the outer link URL and the entire domain name string according to a preset rewrite rule and send the rewritten page response content to the client if the determination module determines that the outer link URL is not the first-level domain name, where the rewritten outer link URL is capable of being resolved to the protocol conversion server by a domain name;
a receiving module, configured to receive an out-link URL invoking request that includes the rewritten page response content and is sent by the client;
and the acquisition module is used for acquiring the resources of the external link URL according to the external link URL calling request.
10. A protocol translation server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of any one of claims 1 to 8.
CN201911164247.6A 2019-11-22 2019-11-22 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server Pending CN111107056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911164247.6A CN111107056A (en) 2019-11-22 2019-11-22 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911164247.6A CN111107056A (en) 2019-11-22 2019-11-22 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server

Publications (1)

Publication Number Publication Date
CN111107056A true CN111107056A (en) 2020-05-05

Family

ID=70420685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911164247.6A Pending CN111107056A (en) 2019-11-22 2019-11-22 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server

Country Status (1)

Country Link
CN (1) CN111107056A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756847A (en) * 2020-06-28 2020-10-09 北京百度网讯科技有限公司 Method and device for supporting https protocol by website
CN112367414A (en) * 2020-10-30 2021-02-12 山石网科通信技术股份有限公司 External link processing method and device, storage medium and processor
CN112398963A (en) * 2020-10-13 2021-02-23 易讯科技股份有限公司 Method for realizing intelligent recognition and flexible translation of IPv4 external link
CN112771835A (en) * 2020-12-25 2021-05-07 山石网科通信技术股份有限公司 Processing method and device for outer chain rewriting
CN115022284A (en) * 2022-06-01 2022-09-06 睿哲科技股份有限公司 Method and system for identifying external links in webpage and electronic equipment
CN115277809A (en) * 2022-08-02 2022-11-01 北京有竹居网络技术有限公司 Access request processing method, edge server and storage medium
WO2024021472A1 (en) * 2022-07-29 2024-02-01 天翼云科技有限公司 Interface information processing method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310779A1 (en) * 2011-07-29 2017-10-26 Fortinet, Inc. Facilitating content accessibility via different communication formats
CN107872548A (en) * 2017-11-10 2018-04-03 北京知道创宇信息技术有限公司 Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN109543121A (en) * 2018-11-09 2019-03-29 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN109561078A (en) * 2018-11-09 2019-04-02 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN110392130A (en) * 2019-08-23 2019-10-29 北京天融信网络安全技术有限公司 Network-based information processing method, electronic equipment and network system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310779A1 (en) * 2011-07-29 2017-10-26 Fortinet, Inc. Facilitating content accessibility via different communication formats
CN107872548A (en) * 2017-11-10 2018-04-03 北京知道创宇信息技术有限公司 Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN109543121A (en) * 2018-11-09 2019-03-29 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN109561078A (en) * 2018-11-09 2019-04-02 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN110392130A (en) * 2019-08-23 2019-10-29 北京天融信网络安全技术有限公司 Network-based information processing method, electronic equipment and network system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756847A (en) * 2020-06-28 2020-10-09 北京百度网讯科技有限公司 Method and device for supporting https protocol by website
CN112398963A (en) * 2020-10-13 2021-02-23 易讯科技股份有限公司 Method for realizing intelligent recognition and flexible translation of IPv4 external link
CN112367414A (en) * 2020-10-30 2021-02-12 山石网科通信技术股份有限公司 External link processing method and device, storage medium and processor
CN112367414B (en) * 2020-10-30 2023-04-18 山石网科通信技术股份有限公司 External link processing method and device, storage medium and processor
CN112771835A (en) * 2020-12-25 2021-05-07 山石网科通信技术股份有限公司 Processing method and device for outer chain rewriting
WO2022134016A1 (en) * 2020-12-25 2022-06-30 山石网科通信技术股份有限公司 Processing method and apparatus for external link rewriting
CN112771835B (en) * 2020-12-25 2023-05-02 山石网科通信技术股份有限公司 Method and device for processing outer link rewriting
US12058095B2 (en) 2020-12-25 2024-08-06 Hillstone Networks Co., Ltd. Processing method and device for external link rewriting
CN115022284A (en) * 2022-06-01 2022-09-06 睿哲科技股份有限公司 Method and system for identifying external links in webpage and electronic equipment
WO2024021472A1 (en) * 2022-07-29 2024-02-01 天翼云科技有限公司 Interface information processing method and apparatus
CN115277809A (en) * 2022-08-02 2022-11-01 北京有竹居网络技术有限公司 Access request processing method, edge server and storage medium
CN115277809B (en) * 2022-08-02 2024-05-24 北京有竹居网络技术有限公司 Processing method of access request in content distribution network and edge server

Similar Documents

Publication Publication Date Title
CN111107056A (en) Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server
US9883002B2 (en) Method and system for accessing website
US10783212B2 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
US20180183888A1 (en) Method and system for identifying website visitors
CN109561078B (en) External link url resource calling method and device
CN109543121B (en) Method and device for calling outer link url (real time communication) resources
CN108809890B (en) Vulnerability detection method, test server and client
CN107154963B (en) Request processing method and device and electronic equipment
WO2018001124A1 (en) Webpage file sending method, webpage rendering method and apparatus, and webpage rendering system
US20070239732A1 (en) Method and system for providing improved URL mangling performance using fast re-write
CN106911735B (en) Data acquisition method and device
CN109446801B (en) Method, device, server and storage medium for detecting simulator access
CN108156121B (en) Traffic hijacking monitoring method and device and traffic hijacking alarm method and device
CN104601601A (en) Web crawler detecting method and device
CN109672658B (en) JSON hijacking vulnerability detection method, device, equipment and storage medium
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN107070873B (en) Webpage illegal data screening method and system, data screening server and browser
WO2020088170A1 (en) Domain name system configuration method and related apparatus
CN110868361A (en) Gateway load balancing method, device and equipment
CN111106983A (en) Method and device for detecting network connectivity
CN106911733B (en) Cloud proxy website access method and device
EP2760183A1 (en) System for detecting hyperlink faults
CN110825603A (en) Page first loading time determining method and device, electronic equipment and storage medium
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN113127788B (en) Page processing method, object processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505