CN109600458B - Website access method and device - Google Patents

Website access method and device Download PDF

Info

Publication number
CN109600458B
CN109600458B CN201910132415.7A CN201910132415A CN109600458B CN 109600458 B CN109600458 B CN 109600458B CN 201910132415 A CN201910132415 A CN 201910132415A CN 109600458 B CN109600458 B CN 109600458B
Authority
CN
China
Prior art keywords
domain name
protocol
website
data
port
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
CN201910132415.7A
Other languages
Chinese (zh)
Other versions
CN109600458A (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.)
Beijing Knownsec Information Technology Co Ltd
Original Assignee
Beijing Knownsec 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 Beijing Knownsec Information Technology Co Ltd filed Critical Beijing Knownsec Information Technology Co Ltd
Priority to CN201910132415.7A priority Critical patent/CN109600458B/en
Publication of CN109600458A publication Critical patent/CN109600458A/en
Application granted granted Critical
Publication of CN109600458B publication Critical patent/CN109600458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The embodiment of the application provides a website access method and a website access device, which are characterized in that a network access tool of an existing user terminal is modified, and a static data link library lib file is configured in the network access tool in advance, so that an adjustable function in the static data link library lib file configured in the network access tool can be called to obtain a target domain name during network access, corresponding domain name data is obtained from a DNS (domain name server) according to the target domain name, and then network access of the target domain name is performed according to the domain name data. Therefore, network access tools of various network protocol types for configuring the static data connection library lib file can adapt to the extended DNS protocol, so that the site can freely configure the protocol and the port, and the operation steps of webpage access are simplified.

Description

Website access method and device
Technical Field
The application relates to the technical field of internet, in particular to a website access method and device.
Background
Currently, the DNS (Domain Name System) is a distributed database on the internet as a mapping between Domain names and IP addresses, which enables users to access the internet more conveniently without remembering IP strings that can be read directly by machines. At present, the steps of analyzing a domain name port and a domain name protocol type of a target website are added on the basis of original domain name IP address analysis through expansion of a DNS protocol network, so that the site freely configures the protocol and the port, the operation steps of webpage access are simplified, and the safety of webpage access is improved. However, since the extended DNS protocol is not commonly used, the mainstream network tools communicate according to the existing network protocol. Although the network tool aiming at the HTTP protocol can redirect the subsequent access of the HTTP network tool according to the domain name port and the domain name protocol type returned by the DNS protocol, so that the HTTP network tool can be normally used. But for other network tools without redirection function (e.g. protocols such as FTP), the above scheme cannot be used.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present application provides a method and an apparatus for accessing a website, so as to solve or improve the above-mentioned problems.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a website access method, which is applied to a website access system, where the website access system includes a user terminal and a DNS server that are in communication connection with each other, the user terminal is installed with a network access tool, a static data connection library lib file is configured in the network access tool, the static data connection library lib file includes a callable function, and the callable function includes entry parameter information and exit parameter information, and the method includes:
the user terminal calls the callable function to input the target domain name into the input parameter information according to the target domain name generated by the network access tool, and sends a DNS request message to the DNS server according to the target domain name in the input parameter information;
the DNS server searches domain name data corresponding to the target domain name according to the DNS request message and sends the domain name data to the user terminal, wherein the domain name data at least comprises a domain name IP address;
the user terminal receives the domain name data through the callable function and returns the domain name data serving as parameter information to the network access tool;
if the domain name data comprises a domain name port and a domain name protocol, judging whether the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance through the network access tool, and judging whether the domain name protocol in the domain name data is a protocol supported by the network access tool;
if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, sending a website access request to a corresponding website server according to the domain name data, so that the website server responds to the website access request and returns corresponding website content.
In one possible embodiment, the method further comprises:
if the domain name data does not include domain name port information and domain name protocol information, a website access request is sent to a corresponding website server according to a domain name IP address in the domain name data, so that the website server responds to the website access request and returns corresponding website content.
In one possible embodiment, the method further comprises:
if the domain name port and the domain name protocol in the domain name data are different from the domain name port and the domain name protocol which are recorded in advance, outputting prompt information for changing the domain name port and the domain name protocol which are recorded in advance into the domain name port and the domain name protocol in the domain name data, or changing the domain name port which is recorded in advance into the domain name port and the domain name protocol in the domain name data through the callable function.
In one possible embodiment, the method further comprises:
and if the domain name protocol in the domain name data is not the protocol supported by the network access tool, outputting prompt information which does not support the domain name protocol in the domain name data.
In a possible implementation manner, the DNS server pre-stores domain name data corresponding to each website domain name, where the domain name data includes a domain name IP address, or a domain name IP address, a domain name port, and a domain name protocol, and the DNS server searches for the domain name data corresponding to the target domain name according to the DNS request packet, where the step includes:
analyzing the DNS request message to obtain the target domain name;
and searching the domain name data corresponding to the target domain name from the domain name data corresponding to each website domain name.
In a second aspect, an embodiment of the present application further provides a website access method, which is applied to a user terminal, where the user terminal is provided with a network access tool, the network access tool is configured with a static data connection library lib file, the static data connection library lib file includes a callable function, and the callable function includes entry parameter information and exit parameter information, and the method includes:
calling the callable function to input the target domain name into the input parameter information according to the target domain name generated by the network access tool;
sending a DNS request message to a DNS according to the target domain name in the input parameter information so that the DNS searches domain name data corresponding to the target domain name according to the DNS request message, wherein the domain name data at least comprises a domain name IP address;
receiving the domain name data through the callable function, and returning the domain name data serving as parameter information to the network access tool;
if the domain name data comprises a domain name port and a domain name protocol, judging whether the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance through the network access tool, and judging whether the domain name protocol in the domain name data is a protocol supported by the network access tool;
if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, sending a website access request to a corresponding website server according to the domain name data, so that the website server responds to the website access request and returns corresponding website content.
In a third aspect, an embodiment of the present application further provides a website access apparatus, which is applied to a user terminal, where the user terminal is installed with a network access tool, the network access tool is configured with a static data connection library lib file, the static data connection library lib file includes a callable function, and the callable function includes entry parameter information and exit parameter information, and the apparatus includes:
the calling module is used for calling the callable function to input the target domain name into the parameter input information according to the target domain name generated by the network access tool;
a message sending module, configured to send a DNS request message to a DNS server according to the target domain name in the entry parameter information, so that the DNS server searches domain name data corresponding to the target domain name according to the DNS request message, where the domain name data at least includes a domain name IP address;
the receiving and returning module is used for receiving the domain name data through the callable function and returning the domain name data serving as parameter information to the network access tool;
the judging module is used for judging whether the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance through the network access tool if the domain name data comprise the domain name port and the domain name protocol, and judging whether the domain name protocol in the domain name data is a protocol supported by the network access tool;
and the request sending module is used for sending a website access request to a corresponding website server according to the domain name data if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance and the domain name protocol in the domain name data is a protocol supported by the network access tool, so that the website server responds to the website access request and returns corresponding website content.
In a fourth aspect, an embodiment of the present application further provides a readable storage medium, on which a computer program is stored, where the computer program, when executed, implements the foregoing website access method.
Compared with the prior art, the method has the following beneficial effects:
according to the website access method and device, a network access tool of an existing user terminal is modified, and a static data link library lib file is configured in the network access tool in advance, so that an adjustable function in the static data link library lib file configured in the network access tool can be called to obtain a target domain name during network access, corresponding domain name data is obtained from a DNS (domain name server) according to the target domain name, and then network access of the target domain name is performed according to the domain name data. Therefore, network access tools of various network protocol types for configuring the static data connection library lib file can adapt to the extended DNS protocol, so that the site can freely configure the protocol and the port, and the operation steps of webpage access are simplified.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an interaction scenario of a website access system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a website access method according to an embodiment of the present application;
fig. 3 is another schematic flowchart of a website access method according to an embodiment of the present application;
fig. 4 is a functional block diagram of a website access apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Please refer to fig. 1, which is a schematic view illustrating an interaction scenario of a website access system 10 according to an embodiment of the present application. The website access method provided by this embodiment is applied to the website access system 10, and the website access system 10 includes a user terminal 100 and a DNS server 200 communicatively connected to the user terminal 100.
In this embodiment, the user terminal 100 may include a mobile device, a tablet computer, a laptop computer, or a built-in device in various business devices, or the like, or any combination thereof. In some embodiments, the mobile device may include a smart home device, a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home devices may include smart lighting devices, control devices for smart electrical devices, smart monitoring devices, smart televisions, smart cameras, or walkie-talkies, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart lace, smart glass, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, and the like, or any combination thereof. In some embodiments, the smart mobile device may include a smartphone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, or a point of sale (POS) device, or the like, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device and/or augmented reality device may include various virtual reality products and the like. In some embodiments, the built-in device may include an on-board computer, an on-board television, and the like.
In the prior art, the DNS server 200 may add a step of analyzing a domain name port and a domain name protocol type of a target website on the basis of an original domain name IP address analysis by extending a DNS protocol network, so that a site freely configures a protocol and a port, simplifies an operation step of web page access, and improves security of web page access. However, since the extended DNS protocol is not commonly used, the mainstream network tools communicate according to the existing network protocol. Although the network tool aiming at the HTTP protocol can redirect the subsequent access of the HTTP network tool according to the domain name port and the domain name protocol type returned by the DNS protocol, so that the HTTP network tool can be normally used. But for other network tools without redirection function (e.g. protocols such as FTP), the above scheme cannot be used.
Based on the above technical problem, the present inventors propose the following technical solution to solve or improve the above problem. It should be noted that the above prior art solutions have shortcomings, which are the results of practical and careful study by the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the following embodiments of the present application for the above problems should be the contribution of the inventor to the present application in the process of the present application.
Fig. 2 is a flowchart illustrating a website access method provided in some embodiments of the present application, which may be performed by the website access system 10 shown in fig. 1. It should be understood that, in other embodiments, the order of some steps in the website access method of this embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted. The detailed steps of the website access method are described as follows.
Step S110, the user terminal 100 calls the callable function to input the target domain name into the entry parameter information according to the target domain name generated by the network access tool, and sends a DNS request packet to the DNS server 200 according to the target domain name in the entry parameter information.
In this embodiment, the user terminal 100 may be installed with network access tools of various network protocols, such as a network access tool of HTTP (HTTP, HyperText Transfer Protocol), HTTPs (HyperText Transfer Protocol over Secure Socket Layer or HyperText Transfer Protocol Secure, HyperText Transfer security Protocol), FTP (File Transfer Protocol), SMTP (Simple Mail Transfer Protocol).
In order to enable each network access tool to be capable of adapting to the extended DNS protocol network, in this embodiment, a static data connection library lib file may be configured in each network access tool, and various callable functions and parameter information called by the callable functions may be stored in the lib file. On this basis, when any network access tool on the user terminal 100 generates a DNS query request to query the DNS, the callable function in the lib file of the static data connection library may be called to obtain the target domain name from the DNS query request, and a DNS request packet is sent to the DNS server 200 according to the target domain name.
It should be noted that, in other embodiments, the above-mentioned static data link library lib file may also be replaced by other callable programs, only that the callable program can provide the input function of the target domain name and the output function of the domain name data.
Step S120, the DNS server 200 searches for domain name data corresponding to the target domain name according to the DNS request packet, and sends the domain name data to the user terminal 100.
As an implementation manner, the DNS server 200 may store domain name data corresponding to domain names of various websites in advance, where the domain name data includes a domain name IP address, or a domain name IP address, a domain name port, and a domain name protocol. For example, when each website domain name is registered, the corresponding website server sends a registration request to the DNS server 200, the DNS server 200 records domain name data of each website domain name in response to the registration request, and for a general DNS protocol, the domain name data may only include a domain name IP address. For the extended DNS protocol, the domain name data may include domain name IP addresses, domain name ports, and domain name protocols.
On the basis, the DNS server 200 may obtain the target domain name by analyzing the DNS request message sent by the user terminal 100, and then search the domain name data corresponding to the target domain name from the domain name data corresponding to the domain names of the respective websites.
Step S130, the user terminal 100 receives the domain name data through the callable function, and returns the domain name data as parameter information to the network access tool.
In detail, if the domain name data includes domain name port information and domain name protocol information, returning the domain name data to the network access tool, and executing:
step S140, if the domain name data includes a domain name port and a domain name protocol, determining, by the network access tool, whether the domain name port and the domain name protocol in the domain name data are respectively the same as a domain name port and a domain name protocol recorded in advance, and determining whether the domain name protocol in the domain name data is a protocol supported by the network access tool.
In detail, if a domain name port and a domain name protocol in the domain name data are respectively the same as a domain name port and a domain name protocol recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, then:
step S150, sending a website access request to a corresponding website server according to the domain name data, so that the website server returns corresponding website contents, such as pictures, characters, audio, video, and the like, in response to the website access request.
In another case, if the domain name data does not include domain name port information and domain name protocol information, performing:
step S160, sending a website access request to a corresponding website server according to the domain name IP address in the domain name data, so that the website server returns corresponding website content in response to the website access request.
In addition, if the domain name port and the domain name protocol in the domain name data are different from the domain name port and the domain name protocol which are recorded in advance, prompt information for changing the domain name port and the domain name protocol which are recorded in advance into the domain name port and the domain name protocol in the domain name data is output, or the domain name port and the domain name protocol in the domain name data are changed into the domain name port and the domain name protocol in the domain name data through the callable function.
The domain name port recorded in advance may refer to a domain name port selected by a user when inputting a website domain name, for example, if the selected domain name port is an 80 port, but actually, if the selected domain name port is a 90 port of the domain name port in the domain name data, the user is prompted to change the 80 port to the 90 port, or the 80 port is automatically changed to the 90 port through the callable function.
Or if the domain name protocol in the domain name data is not the protocol supported by the network access tool, outputting prompt information which does not support the domain name protocol in the domain name data.
Based on the above design, the website access method provided in this embodiment modifies the network access tool of the existing user terminal 100, and pre-configures the static data link library lib file in the network access tool, so that during network access, an adjustable function in the static data link library lib file configured in the network access tool can be called to obtain a target domain name and obtain corresponding domain name data from the DNS server 200 according to the target domain name, and then network access of the target domain name is performed according to the domain name data. Therefore, network access tools of various network protocol types for configuring the static data connection library lib file can adapt to the extended DNS protocol, so that the site can freely configure the protocol and the port, and the operation steps of webpage access are simplified.
Further, referring to fig. 3, an embodiment of the present application further provides a website access method, which is different from the above embodiment, that the website access method is executed by the user terminal 100, it is understood that steps involved in the website access method to be described next have been described in the above embodiment, and specific details of each step may be described with reference to the above embodiment, and only the steps executed by the user terminal 100 will be briefly described below.
Step S210, according to the target domain name generated by the network access tool, invoking the callable function to input the target domain name into the entry parameter information.
Step S220, sending a DNS request packet to the DNS server 200 according to the target domain name in the entry parameter information, so that the DNS server 200 searches, according to the DNS request packet, domain name data corresponding to the target domain name, where the domain name data at least includes a domain name IP address.
Step S230, receiving the domain name data through the callable function, and returning the domain name data as parameter information to the network access tool.
Step S240, if the domain name data includes a domain name port and a domain name protocol, determining, by the network access tool, whether the domain name port and the domain name protocol in the domain name data are respectively the same as a domain name port and a domain name protocol recorded in advance, and determining whether the domain name protocol in the domain name data is a protocol supported by the network access tool.
Step S250, if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, sending a website access request to a corresponding website server according to the domain name data, so that the website server responds to the website access request and returns corresponding website content.
In a possible implementation manner, if the domain name data does not include domain name port information and domain name protocol information, a website access request is sent to a corresponding website server according to a domain name IP address in the domain name data, so that the website server returns corresponding website content in response to the website access request.
In a possible implementation manner, if the domain name port and the domain name protocol in the domain name data are different from the domain name port and the domain name protocol recorded in advance, prompt information for changing the domain name port and the domain name protocol recorded in advance into the domain name port and the domain name protocol in the domain name data is output, or the domain name port recorded in advance is changed into the domain name port and the domain name protocol in the domain name data through the callable function.
In a possible implementation manner, if the domain name protocol in the domain name data is not a protocol supported by the network access tool, the prompt message that the domain name protocol in the domain name data is not supported is output.
Fig. 4 is a functional block diagram of a website accessing apparatus 110 according to some embodiments of the present application, where the functions implemented by the website accessing apparatus 110 may correspond to the steps performed by the website accessing method shown in fig. 3. The website access apparatus 110 may be understood as the processor of the user terminal 100, or may be understood as a component that implements the functions of the present application under the control of the user terminal 100 independently of the user terminal 100 or the processor, as shown in fig. 4, the website access apparatus 110 may include a calling module 111, a message sending module 112, a receiving return 113, a determining module 114, and a request sending module 115, and the functions of the function modules of the website access apparatus 110 are described in detail below.
The calling module 111 is configured to call the callable function to input the target domain name into the entry parameter information according to the target domain name generated by the network access tool.
A message sending module 112, configured to send a DNS request message to the DNS server 200 according to the target domain name in the entry parameter information, so that the DNS server 200 searches, according to the DNS request message, domain name data corresponding to the target domain name, where the domain name data at least includes a domain name IP address.
A receiving and returning module 113, configured to receive the domain name data through the callable function, and return the domain name data as parameter information to the network access tool.
A determining module 114, configured to determine, by the network access tool, whether a domain name port and a domain name protocol in the domain name data are respectively the same as a domain name port and a domain name protocol recorded in advance, and determine whether the domain name protocol in the domain name data is a protocol supported by the network access tool if the domain name data includes the domain name port and the domain name protocol.
A request sending module 115, configured to send a website access request to a corresponding website server according to the domain name data if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, so that the website server responds to the website access request and returns corresponding website content.
It can be understood that, for the specific operation method of each functional module in this embodiment, reference may be made to the detailed description of the corresponding step in the foregoing method embodiment, and no repeated description is provided herein.
Further, an embodiment of the present application also provides a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the website access method in any of the above method embodiments.
To sum up, the embodiments of the present application provide a method and an apparatus for website access, where a network access tool of an existing user terminal is modified, and a static data link library lib file is configured in advance in the network access tool, so that an adjustable function in the static data link library lib file configured in the network access tool can be called to obtain a target domain name during network access, and corresponding domain name data is obtained from a DNS server according to the target domain name, and then network access of the target domain name is performed according to the domain name data. Therefore, network access tools of various network protocol types for configuring the static data connection library lib file can adapt to the extended DNS protocol, so that the site can freely configure the protocol and the port, and the operation steps of webpage access are simplified.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as an electronic device, server, data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (8)

1. A website access method is applied to a website access system, the website access system comprises a user terminal and a DNS (domain name system) server which are in communication connection with each other, the user terminal is provided with a network access tool, a static data connection library lib file is configured in the network access tool, the static data connection library lib file comprises a callable function, and the callable function comprises incoming parameter information and outgoing parameter information, and the method comprises the following steps:
the user terminal calls the callable function to input the target domain name into the input parameter information according to the target domain name generated by the network access tool, and sends a DNS request message to the DNS server according to the target domain name in the input parameter information;
the DNS server searches domain name data corresponding to the target domain name according to the DNS request message and sends the domain name data to the user terminal, wherein the domain name data comprise domain name IP addresses or domain name IP addresses, domain name ports and domain name protocols;
the user terminal receives the domain name data through the callable function and returns the domain name data serving as parameter information to the network access tool;
if the domain name data comprises a domain name port and a domain name protocol, judging whether the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance through the network access tool, and judging whether the domain name protocol in the domain name data is a protocol supported by the network access tool;
if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, sending a website access request to a corresponding website server according to the domain name IP address, the domain name port and the domain name protocol so that the website server responds to the website access request and returns corresponding website content;
if the domain name data does not include domain name port information and domain name protocol information, a website access request is sent to a corresponding website server according to a domain name IP address in the domain name data, so that the website server responds to the website access request and returns corresponding website content.
2. The method for accessing a website according to claim 1, further comprising:
if the domain name port and the domain name protocol in the domain name data are different from the domain name port and the domain name protocol which are recorded in advance, outputting prompt information for changing the domain name port and the domain name protocol which are recorded in advance into the domain name port and the domain name protocol in the domain name data, or changing the domain name port which is recorded in advance into the domain name port and the domain name protocol in the domain name data through the callable function.
3. The method for accessing a website according to claim 1, further comprising:
and if the domain name protocol in the domain name data is not the protocol supported by the network access tool, outputting prompt information which does not support the domain name protocol in the domain name data.
4. The website access method according to claim 1, wherein the DNS server stores domain name data corresponding to each website domain name in advance, the domain name data includes a domain name IP address, or a domain name IP address, a domain name port, and a domain name protocol, and the step of the DNS server searching for the domain name data corresponding to the target domain name according to the DNS request packet includes:
analyzing the DNS request message to obtain the target domain name;
and searching the domain name data corresponding to the target domain name from the domain name data corresponding to each website domain name.
5. A website access method is applied to a user terminal, the user terminal is provided with a network access tool, a static data connection library lib file is configured in the network access tool, the static data connection library lib file comprises a callable function, the callable function comprises in-parameter information and out-parameter information, and the method comprises the following steps:
calling the callable function to input the target domain name into the input parameter information according to the target domain name generated by the network access tool;
sending a DNS request message to a DNS according to the target domain name in the input parameter information so that the DNS searches domain name data corresponding to the target domain name according to the DNS request message, wherein the domain name data comprise domain name IP addresses or domain name IP addresses, domain name ports and domain name protocols;
receiving the domain name data through the callable function, and returning the domain name data serving as parameter information to the network access tool;
if the domain name data comprises a domain name port and a domain name protocol, judging whether the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance through the network access tool, and judging whether the domain name protocol in the domain name data is a protocol supported by the network access tool;
if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, sending a website access request to a corresponding website server according to the domain name IP address, the domain name port and the domain name protocol so that the website server responds to the website access request and returns corresponding website content;
if the domain name data does not include domain name port information and domain name protocol information, a website access request is sent to a corresponding website server according to a domain name IP address in the domain name data, so that the website server responds to the website access request and returns corresponding website content.
6. The method for accessing a website according to claim 5, further comprising:
if the domain name port and the domain name protocol in the domain name data are different from the domain name port and the domain name protocol which are recorded in advance, outputting prompt information for changing the domain name port and the domain name protocol which are recorded in advance into the domain name port and the domain name protocol in the domain name data, or changing the domain name port which is recorded in advance into the domain name port and the domain name protocol in the domain name data through the callable function.
7. The method for accessing a website according to claim 5, further comprising:
and if the domain name protocol in the domain name data is not the protocol supported by the network access tool, outputting prompt information which does not support the domain name protocol in the domain name data.
8. A website access device is applied to a user terminal, the user terminal is provided with a network access tool, a static data connection library lib file is configured in the network access tool, the static data connection library lib file comprises a callable function, the callable function comprises in-parameter information and out-parameter information, and the website access device comprises:
the calling module is used for calling the callable function to input the target domain name into the parameter input information according to the target domain name generated by the network access tool;
a message sending module, configured to send a DNS request message to a DNS server according to the target domain name in the entry parameter information, so that the DNS server searches domain name data corresponding to the target domain name according to the DNS request message, where the domain name data includes a domain name IP address, or includes a domain name IP address, a domain name port, and a domain name protocol;
the receiving and returning module is used for receiving the domain name data through the callable function and returning the domain name data serving as parameter information to the network access tool;
the judging module is used for judging whether the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol which are recorded in advance through the network access tool if the domain name data comprise the domain name port and the domain name protocol, and judging whether the domain name protocol in the domain name data is a protocol supported by the network access tool;
a request sending module, configured to send a website access request to a corresponding website server according to the domain name IP address, the domain name port, and the domain name protocol if the domain name port and the domain name protocol in the domain name data are respectively the same as the domain name port and the domain name protocol recorded in advance, and the domain name protocol in the domain name data is a protocol supported by the network access tool, so that the website server returns corresponding website content in response to the website access request;
the request sending module is further configured to send a website access request to a corresponding website server according to a domain name IP address in the domain name data if the domain name data does not include domain name port information and domain name protocol information, so that the website server returns corresponding website content in response to the website access request.
CN201910132415.7A 2019-02-22 2019-02-22 Website access method and device Active CN109600458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910132415.7A CN109600458B (en) 2019-02-22 2019-02-22 Website access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910132415.7A CN109600458B (en) 2019-02-22 2019-02-22 Website access method and device

Publications (2)

Publication Number Publication Date
CN109600458A CN109600458A (en) 2019-04-09
CN109600458B true CN109600458B (en) 2022-03-29

Family

ID=65967378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910132415.7A Active CN109600458B (en) 2019-02-22 2019-02-22 Website access method and device

Country Status (1)

Country Link
CN (1) CN109600458B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414208B (en) * 2020-03-13 2023-08-01 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111770161B (en) * 2020-06-28 2022-06-07 北京百度网讯科技有限公司 https sniffing jump method and device
CN112039869B (en) * 2020-08-27 2023-01-24 建信金融科技有限责任公司 Method, device, storage medium and equipment for establishing network access relationship
CN114900427A (en) * 2022-04-29 2022-08-12 网宿科技股份有限公司 Port multiplexing method, device and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662357A (en) * 2008-08-29 2010-03-03 公安部第三研究所 Method for accessing secure gateway client
CN101924801A (en) * 2010-05-21 2010-12-22 中国科学院计算机网络信息中心 IP (Internet Protocol) address management method and system as well as DHCP (Dynamic Host Configuration Protocol) server
CN102970387A (en) * 2012-11-15 2013-03-13 上海牙木通讯技术有限公司 Domain name resolution method, device and system
CN105306609A (en) * 2014-06-26 2016-02-03 优视科技有限公司 Network loading processing method and device
CN105338013A (en) * 2014-06-26 2016-02-17 优视科技有限公司 Network loading method and apparatus
CN106302842A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 A kind of domain name analytic method, Apparatus and system
CN107360269A (en) * 2017-07-21 2017-11-17 中国移动通信集团江苏有限公司 Domain name analysis system optimization method, device, equipment and storage medium
CN107872548A (en) * 2017-11-10 2018-04-03 北京知道创宇信息技术有限公司 Web page interlinkage method, apparatus and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10666771B2 (en) * 2013-08-05 2020-05-26 Pismo Labs Technology Limited Method and system for allowing the use of domain name based network policies stored in a second device in enforcing network policy at a first device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662357A (en) * 2008-08-29 2010-03-03 公安部第三研究所 Method for accessing secure gateway client
CN101924801A (en) * 2010-05-21 2010-12-22 中国科学院计算机网络信息中心 IP (Internet Protocol) address management method and system as well as DHCP (Dynamic Host Configuration Protocol) server
CN102970387A (en) * 2012-11-15 2013-03-13 上海牙木通讯技术有限公司 Domain name resolution method, device and system
CN105306609A (en) * 2014-06-26 2016-02-03 优视科技有限公司 Network loading processing method and device
CN105338013A (en) * 2014-06-26 2016-02-17 优视科技有限公司 Network loading method and apparatus
CN106302842A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 A kind of domain name analytic method, Apparatus and system
CN107360269A (en) * 2017-07-21 2017-11-17 中国移动通信集团江苏有限公司 Domain name analysis system optimization method, device, equipment and storage medium
CN107872548A (en) * 2017-11-10 2018-04-03 北京知道创宇信息技术有限公司 Web page interlinkage method, apparatus and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN109600458A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN109600458B (en) Website access method and device
US10574771B2 (en) Methods and systems for rewriting scripts to redirect web requests
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US8533227B2 (en) Managing website blacklists
KR102504075B1 (en) Matching and attributes of user device events
CN106874471B (en) Information pushing method and device
US7953862B2 (en) Methods for accessing a phone-based web server with a private IP address and related electronic devices and computer program products
CN106055603B (en) Browser access network address recommended method, client and system based on VPN
US10616179B1 (en) Selective routing of domain name system (DNS) requests
US10158548B2 (en) Methods and systems for signing resource identifiers
US9553901B2 (en) VOIP service with streamlined call transfer options
US20210377332A1 (en) Service worker configured to serve multiple single page applications
CN104978358A (en) Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying
US11882154B2 (en) Template representation of security resources
CN112202744B (en) Multi-system data communication method and device
US20060161616A1 (en) Provision of services over a common delivery platform such as a mobile telephony network
WO2015000342A1 (en) Method and client device for accessing webpage
CN102801814A (en) Internet access method, device and system
JP6779307B2 (en) Method and device for page display
US11700280B2 (en) Multi-tenant authentication framework
CN103905477A (en) HTTP request processing method and server
CN109756525B (en) Information subscription method and device
EP2647179B1 (en) Service access apparatus, method, computer program and computer program product for selective initiation of communication
EP3043510B1 (en) Decoupled name security binding for ccn objects
US10180985B2 (en) Apparatus and method for automatically redirecting a search

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
GR01 Patent grant
GR01 Patent grant