CN117792704A - Website access method and device, electronic equipment and computer readable medium - Google Patents

Website access method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN117792704A
CN117792704A CN202311694993.2A CN202311694993A CN117792704A CN 117792704 A CN117792704 A CN 117792704A CN 202311694993 A CN202311694993 A CN 202311694993A CN 117792704 A CN117792704 A CN 117792704A
Authority
CN
China
Prior art keywords
domain name
service
identification
private
configuration data
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
CN202311694993.2A
Other languages
Chinese (zh)
Inventor
朱志达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202311694993.2A priority Critical patent/CN117792704A/en
Publication of CN117792704A publication Critical patent/CN117792704A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a website access method, a website access device, electronic equipment and a computer readable medium, and relates to the technical field of computers; invoking public network service to obtain current network channel configuration data corresponding to browser identification and user identification; performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name; responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting to the public network service; and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name. And online accidents that users cannot normally access are avoided, and network anomalies of the users are automatically and finely managed and controlled to be reported.

Description

Website access method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a website access method, apparatus, electronic device, and computer readable medium.
Background
At present, with the continuous development of front-end development technology and the continuous popularization of HTML5 (a language way for constructing and presenting internet content) technology, the requirement for performing web pages on a browser (devices such as a PC end and a mobile phone end) is increasing, and when a user requests web pages in a closed network environment (network firewall/network whitelist), default shielding is possibly performed for part of request domain API interfaces, so that accidents that the user browser cannot normally access are caused.
Disclosure of Invention
In view of this, embodiments of the present application provide a website access method, apparatus, electronic device, and computer readable medium, which can solve the technical problem that when a user requests a webpage in a closed network environment scenario, default shielding may be performed for a part of request domain API interfaces, thereby causing an accident that a user browser cannot access normally.
To achieve the above object, according to one aspect of the embodiments of the present application, there is provided a website access method, including:
responding to a website access request, and acquiring a corresponding browser identifier and a user identifier;
invoking public network service to obtain current network channel configuration data corresponding to browser identification and user identification;
performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name;
responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting to the public network service;
and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name.
Optionally, invoking the public network service to obtain current network channel configuration data corresponding to the browser identifier and the user identifier, including:
sending a current network channel configuration data acquisition request to public network service of a server, wherein the current network channel configuration data acquisition request carries a unique identifier, and the unique identifier is generated based on a user identifier and a browser identifier;
and calling the server to execute a server identification process based on the unique identification, and returning the current network channel configuration data in response to successful identification.
Optionally, the server is invoked to perform a server identification process based on the unique identifier, and in response to successful identification, current network channel configuration data is returned, including:
determining a browser identification according to the unique identification;
executing the identification and acquisition process of the corresponding disaster recovery service state data and the corresponding domain name interface service state data based on the browser identification, taking the acquired corresponding disaster recovery service state data and the corresponding domain name interface service state data as the current network channel configuration data, and returning to the browser end corresponding to the unique identification.
Optionally, performing local logic judgment based on the current network channel configuration data to determine a corresponding private service domain name includes:
initiating a page data acquisition request to each domain name channel corresponding to the current network channel configuration data, and receiving response data returned by each domain name channel;
and determining a domain name channel with normal request domain name according to each response data, and further determining a corresponding private service domain name.
Optionally, generating the abnormal information and reporting the abnormal information to the public network service includes:
acquiring a private domain name corresponding to the abnormal response value, and generating abnormal information based on the private domain name corresponding to the abnormal response value;
marking the abnormal mark on the private domain name corresponding to the abnormal response value;
and reporting the abnormal information and the private domain name marked with the abnormal identifier.
Optionally, the method further comprises:
in response to a request for a private domain name marked with an anomaly identification, request anomaly information is returned.
In addition, the application also provides a website access device, which comprises:
the first acquisition unit is configured to respond to a website access request and acquire a corresponding browser identifier and a corresponding user identifier;
the second acquisition unit is configured to call public network service to acquire current network channel configuration data corresponding to the browser identifier and the user identifier;
the private service domain name determining unit is configured to perform local logic judgment based on the current network channel configuration data so as to determine a corresponding private service domain name;
the anomaly reporting unit is configured to respond to the request of the private service domain name, acquire the response value of the private service domain name, respond to the response value corresponding to anomaly, generate anomaly information and report the anomaly information to the public network service;
and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name.
Optionally, the second acquisition unit is further configured to:
sending a current network channel configuration data acquisition request to public network service of a server, wherein the current network channel configuration data acquisition request carries a unique identifier, and the unique identifier is generated based on a user identifier and a browser identifier;
and calling the server to execute a server identification process based on the unique identification, and returning the current network channel configuration data in response to successful identification.
Optionally, the second acquisition unit is further configured to:
determining a browser identification according to the unique identification;
executing the identification and acquisition process of the corresponding disaster recovery service state data and the corresponding domain name interface service state data based on the browser identification, taking the acquired corresponding disaster recovery service state data and the corresponding domain name interface service state data as the current network channel configuration data, and returning to the browser end corresponding to the unique identification.
Optionally, the private domain name determining unit is further configured to:
initiating a page data acquisition request to each domain name channel corresponding to the current network channel configuration data, and receiving response data returned by each domain name channel;
and determining a domain name channel with normal request domain name according to each response data, and further determining a corresponding private service domain name.
Optionally, the exception reporting unit is further configured to:
acquiring a private domain name corresponding to the abnormal response value, and generating abnormal information based on the private domain name corresponding to the abnormal response value;
marking the abnormal mark on the private domain name corresponding to the abnormal response value;
and reporting the abnormal information and the private domain name marked with the abnormal identifier.
Optionally, the exception reporting unit is further configured to:
in response to a request for a private domain name marked with an anomaly identification, request anomaly information is returned.
In addition, the application also provides a website access electronic device, which comprises: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the website access method as described above.
In addition, the application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the website access method as described above.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps of responding to a website access request to obtain a corresponding browser identifier and a corresponding user identifier; invoking public network service to obtain current network channel configuration data corresponding to browser identification and user identification; performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name; responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting to the public network service; and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name. The method and the system solve the problem of multi-gateway automation in a network closed network scene, achieve no perception degradation of users in the access process, avoid online accidents that users cannot normally access, and automatically and finely manage and control the reporting of network anomalies of the users.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as unduly limiting the present application. Wherein:
FIG. 1 is a schematic diagram of the main flow of a website access method provided according to one embodiment of the present application;
FIG. 2 is a schematic diagram of the main flow of a website access method provided according to one embodiment of the present application;
FIG. 3 is a schematic flow chart of a website access method according to one embodiment of the present application;
FIG. 4 is a schematic diagram of the main units of a website accessing apparatus according to an embodiment of the present application;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing the terminal device or server of the embodiments of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. It should be noted that, in the technical solution of the present disclosure, the related aspects of collecting, updating, analyzing, processing, using, transmitting, storing, etc. of the personal information of the user all conform to the rules of the related laws and regulations, and are used for legal purposes without violating the public order colloquial. Necessary measures are taken for the personal information of the user, illegal access to the personal information data of the user is prevented, and the personal information security, network security and national security of the user are maintained.
Fig. 1 is a schematic diagram of main flow of a website accessing method according to an embodiment of the present application, and as shown in fig. 1, the website accessing method includes:
step S101, responding to a website access request, and acquiring a corresponding browser identifier and a corresponding user identifier.
In this embodiment, the execution body (for example, may be a server) of the website access method may receive the website access request through a wired connection or a wireless connection. Specifically, the request may be a request for accessing a website in a closed network scenario. After receiving the website access request, the executing body can acquire the browser identifier and the user identifier carried in the request. The browser identifier may be a browser address accessed by a user, the user identifier may be a number or a name of the user initiating an access request to a website on the browser, and the embodiment of the present application does not specifically limit the browser identifier and the user identifier.
Step S102, calling public network service to obtain current network channel configuration data corresponding to browser identification and user identification.
The executing body needs to interact data with the user through the public network service. After the execution body obtains the browser identifier and the user identifier, the execution body can call the public network service to obtain current network channel configuration data corresponding to the browser identifier and the user identifier. The configuration data may include disaster recovery configuration status data corresponding to the domain name channel and data such as whether an API interface service corresponding to the IP address is normal.
Step S103, local logic judgment is carried out based on the current network channel configuration data so as to determine the corresponding private domain name.
Specifically, performing local logic judgment based on the current network channel configuration data to determine a corresponding private service domain name includes: initiating a page data acquisition request to each domain name channel (such as api1.com, api2.com, api3.com and the like) corresponding to the current network channel configuration data, and receiving response data (the response data can be 1 or 0, for example), wherein 1 represents normal response, namely a request domain name is normal, 0 represents abnormal response, namely a request domain name is abnormal, and can also be Y or N, wherein Y represents normal response, namely a request domain name is normal, and N represents abnormal response, namely a request domain name is abnormal; and determining a domain name channel with normal request domain name according to each response data, and further determining a corresponding private service domain name.
Step S104, responding to the request of the private service domain name, obtaining the response value of the private service domain name, responding to the response value corresponding to the abnormality, generating the abnormality information and reporting to the public network service.
The request domain name may be normal or abnormal, and may be dynamically changed according to a response value of the request time. The private domain name determined in step S103 is that the response time of the local logic determination is normal, after the private domain name with the normal response time is determined, the request for the private domain name can be processed in time, the response value of the private domain name is obtained in real time, if the response value at this time corresponds to the response abnormality, the abnormality information can be generated in real time, the private domain name is marked as abnormality, and the abnormality information and the marked private domain name with the abnormal response time are reported to the public network service, so that other users in the area can avoid access abnormality.
Specifically, generating abnormal information and reporting the abnormal information to the public network service comprises the following steps: acquiring a private domain name corresponding to the abnormal response value, and generating abnormal information based on the private domain name corresponding to the abnormal response value; marking the abnormal mark on the private domain name corresponding to the abnormal response value; and reporting the abnormal information and the private domain name marked with the abnormal identifier. The method can report to the public network service to enable other users to share abnormal information, and improves the access efficiency and success rate of the website.
Specifically, the website access method further comprises the following steps: in response to a request for a private domain name marked with an anomaly identification, request anomaly information is returned.
When the user also requests the private domain name in the area of the private domain name marked with the abnormal mark, the abnormal information is directly returned, so that excessive consumption of the user's request time is avoided, and the success rate of accessing the website by the user is improved.
Step S105, circularly detecting the private service domain name channel until a response value corresponding to a normal state is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name.
Under the current network channel configuration data, a plurality of private domain name channels, such as api1.Com, api2.Com, api3.Com, etc., may be included, for example, when the api1.Com response value corresponds to an anomaly, api2.Com and api3.Com are circularly detected until one of response values corresponding to a normal response value returned by the response values is received, such as api3.Com returns to correspond to a normal response value, and api3.Com is determined as the target private domain name. Automatically accessing and opening a website corresponding to api3.Com, so that a user can access interesting contents in the website.
In the embodiment, corresponding browser identification and user identification are obtained by responding to a website access request; invoking public network service to obtain current network channel configuration data corresponding to browser identification and user identification; performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name; responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting to the public network service; and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name. The method and the system solve the problem of multi-gateway automation in a network closed network scene, achieve no perception degradation of users in the access process, avoid online accidents that users cannot normally access, and automatically and finely manage and control the reporting of network anomalies of the users.
Fig. 2 is a main flow diagram of a website accessing method according to an embodiment of the present application, and as shown in fig. 2, the website accessing method includes:
step S201, responding to a website access request, and acquiring a corresponding browser identifier and a corresponding user identifier.
Step S202, a current network channel configuration data acquisition request is sent to a public network service of a server side, wherein the current network channel configuration data acquisition request carries a unique identifier, and the unique identifier is generated based on a user identifier and a browser identifier.
Step S203, the server is called to execute the server identification process based on the unique identification, and the current network channel configuration data is returned in response to successful identification.
The service end performs corresponding disaster recovery service state and corresponding identification of whether the IP address API interface service is normal or not based on the unique identifier carried in the current network channel configuration data acquisition request, and returns the current network channel configuration data identified as normal. For example, the return is identified as a normal domain name channel, and may be, for example, a domain name channel such as api1.com, api2.com, api3.com, etc.
For example, invoking the server to perform a server identification process based on the unique identifier, and returning current network channel configuration data in response to successful identification, including: determining a browser identification according to the unique identification; and executing the identification and acquisition process of the corresponding disaster recovery service state data and the corresponding domain name interface service state data based on the browser identification, taking the acquired corresponding disaster recovery service state data (such as disaster recovery API service with normal service state, namely api2.com and api3.com) and the corresponding domain name interface service state data (such as response value corresponding to a normal domain name interface, such as api1.com) as the current network channel configuration data and returning to the browser end corresponding to the unique identification.
Step S204, based on the current network channel configuration data, local logic judgment is carried out to determine the corresponding private domain name.
After acquiring the network channel configuration data, the execution body can perform local logic judgment in real time to determine the private domain name, such as api1.Com, api2.Com, api3.Com, and the like, which can normally provide services at present.
Step S205, response value of the private domain name is obtained in response to the request of the private domain name, and abnormal information is generated and reported to the public network service in response to the response value corresponding to the abnormality.
When the executing body receives the request for the private domain name capable of normally providing the service, the executing body can receive the response value returned by each private domain name capable of normally providing the service, so as to determine the private domain name capable of currently providing the service according to each returned response value, and report the abnormal information generated based on the response value returned corresponding to the abnormal private domain name to the public network service for sharing reference by other users.
Step S206, circularly detecting the private service domain name channel until a response value corresponding to a normal state is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name.
The available and normal private domain name can be determined in real time through circularly detecting the private domain name channel, and the determined website corresponding to the available and normal private domain name can be automatically accessed and opened in real time for browsing by a user. Therefore, the multi-gateway automation can be realized under the network closed network scene, the perception degradation of the user is avoided in the access process, the online accident that the user cannot normally access is avoided, and the network abnormality of the user is automatically and finely managed and controlled.
Fig. 3 is a schematic flow chart of a website access method according to an embodiment of the present application. As shown in fig. 3:
1. the user accesses the website through the browser, and the website loads html, javaScript and other browser script languages. The browser analyzes html, javaScript and other scripting languages, and dynamically renders the visual interface to obtain a user browser preview environment.
2. The browser requests a public network service API (including but not limited to cloud services on each platform, a third party server and the like) interface (the process can carry ip, token and can carry user history behaviors, and if the request is a first time, the request does not carry user history behaviors) to call the public network server to acquire the current network channel configuration data.
3. The public network service transmits the current network channel configuration data (disaster recovery service state, whether the IP API service is normal or not) of the user.
4. The browser receives the current network channel configuration data, can call the browser cache service to perform local logic judgment through historical behavior track calculation under the condition of historical behavior, so as to issue corresponding current network channel configuration data (i.e. issue public network service configuration data: the public network service can be configured by human intervention, or be configured automatically by a server side, for example, issue configuration data such as 1, API domain name channel switch state, 2, channel URL abnormal point position, etc. to the client browser by the public network service) to the client browser based on the local logic judgment result, request corresponding logic channels, namely request corresponding private service domain names, for example: api1.com-normal API server, api2.com-disaster recovery API service, api3.com-disaster recovery API service, …, disaster recovery API service.
5. Judging whether the corresponding private service domain name response value (namely channel response) is normal, if so, returning normal data (namely, returning the data of the channel response to be normal if the judgment result is Y), if so, reporting to public network service, and recording the channel abnormality (avoiding other users in the area and visiting the abnormality).
6. If the channel response is abnormal, automatically circularly detecting the switching node to circularly detect the domain name channel api1.com-normal API server, api2.com-disaster-tolerant API service, api3.com-disaster-tolerant API service, … and disaster-tolerant API service until the domain name channel api1.com-normal API server, api2.com-disaster-tolerant API service and api3.com-disaster-tolerant API service are responded normally.
7. The flow ends.
An example of this application is as follows:
1) Creating an Html engineering front-end (browser-end) website project, not limited to using a front-end domain tool to create the project, writing business logic normally, constructing a production environment code and deploying the production environment code to a server, and providing an accessible website for a user:
a) Creating a front end unified requester httpmentrequest (network API send service controller) with which all requests under the website are executed;
b) Configuring HttpClientRequest browser-side request logic:
i. reading the current user Id (i.e. user identification) and a unique key value (i.e. browser identification) of the browser equipment to generate a unique ID (i.e. unique identification for server identification);
sending a request (api. Xx. Com/getConfig) to the service end public network service, wherein the request carries a unique id, and getConfig represents an acquisition configuration.
Receiving the return information of the server, and storing public configuration information (also called public network configuration, namely current network channel configuration data corresponding to the browser identifier and the user identifier) to a browser local cache;
carrying out logic comparison locally according to public configuration information responded by the server (namely current network channel configuration data corresponding to browser identification and user identification) (for example, a getPageList request api1.Xx. Com network is abnormal, and a request api2.Xx. Com domain name is normal);
logic determines that the calculation is complete and then performs a send business interface request, e.g., (api1. Xx. Com/getPageList), where getPageList represents page data acquisition;
if the service interface response is normal, the browser displays normally;
if the service interface response is abnormal (reporting the related information of the abnormal domain name of the server for the server to record the error node), resending the request api3.xx.com, thereby circularly requesting;
2) Creating an API back-end (service end) service engineering, and providing an API. Xx.com service for a browser (not limited to a technical stack, in the embodiment of the application, a JavaScript interpreter nodejs running on the service end is adopted for example, nodejs: development platform for JavaScript to run on server):
a) Creating an HttpServerController controller receiver to which the requests in steps 1) -a) of the browser end are uniformly sent:
i. receiving a public configuration request sent by a browser:
1. analyzing the unique ID (i.e. unique identifier) of the request to obtain the request domain name information such as the unique key value (i.e. browser identifier) of the ip browser equipment, and storing the information to a server, wherein the storage logic is as follows:
a) For example, ID1 passes ip:192.168.1.1 sends a getPageList, which accesses api1.xx.com normally, where getPageList represents page data retrieval;
b) For another example, ID1 passes ip:192.168.1.2 sends a getPageList, this ip accesses the api1.xx.com exception;
2. if the data is stored before in the storage process, the direct inquiry is returned;
3. after the storage of the server is completed, the information is returned to the browser client to enable the browser client to process the steps 1) -b) -iii normally.
3) User access website test:
a) Accessing a resource such as api1.Xx.com/test;
b) By configuring host to simulate api1.Xx.com to point to a local environment (simulate a user network access failure scene), wherein host is a system file without an extension, and can be opened by using tools such as notepads, the function of the host is to establish a related 'database' with some commonly used website domain names and corresponding IP addresses, when a user inputs a website needing to be logged in a browser, the system can automatically search the corresponding IP address from the host file, once the website is found, the system can immediately open a corresponding webpage, and if the website is not found, the system can submit the website domain name resolution server to analyze the IP address;
c) The access discovery access api1.Xx.com/test is performed again, when the access fails (the public network is automatically reported), the access api2.xx.com/test is automatically performed, and the corresponding website is opened in response to the success.
4) The flow ends.
According to the embodiment of the application, multi-gateway automation (degradation, disaster recovery and reporting) can be realized under a closed network scene, users have no perception degradation in the access process, online accidents that users cannot normally access are avoided, and network anomalies of the users are automatically and finely managed and reported.
Fig. 4 is a schematic diagram of main units of the website accessing apparatus according to the embodiment of the present application. As shown in fig. 4, the website accessing apparatus 400 includes a first acquiring unit 401, a second acquiring unit 402, a privacy domain name determining unit 403, an abnormality reporting unit 404, and a website accessing unit 405.
The first obtaining unit 401 is configured to obtain a corresponding browser identifier and a user identifier in response to a website access request.
The second obtaining unit 402 is configured to invoke the public network service to obtain current network channel configuration data corresponding to the browser identifier and the user identifier.
The private service domain name determining unit 403 is configured to perform local logic judgment based on the current network channel configuration data to determine a corresponding private service domain name.
The anomaly reporting unit 404 is configured to obtain a response value of the private domain name in response to the request for the private domain name, generate anomaly information in response to the response value corresponding to the anomaly, and report the anomaly information to the public network service.
The website access unit 405 is configured to circularly detect the private service domain name channel until a response value corresponding to normal is received, determine a corresponding target private service domain name, and automatically access and open a website corresponding to the target private service domain name.
In some embodiments, the second acquisition unit 402 is further configured to: sending a current network channel configuration data acquisition request to public network service of a server, wherein the current network channel configuration data acquisition request carries a unique identifier, and the unique identifier is generated based on a user identifier and a browser identifier; and calling the server to execute a server identification process based on the unique identification, and returning the current network channel configuration data in response to successful identification.
In some embodiments, the second acquisition unit 402 is further configured to: determining a browser identification according to the unique identification; executing the identification and acquisition process of the corresponding disaster recovery service state data and the corresponding domain name interface service state data based on the browser identification, taking the acquired corresponding disaster recovery service state data and the corresponding domain name interface service state data as the current network channel configuration data, and returning to the browser end corresponding to the unique identification.
In some embodiments, the privacy domain name determination unit 403 is further configured to: initiating a page data acquisition request to each domain name channel corresponding to the current network channel configuration data, and receiving response data returned by each domain name channel; and determining a domain name channel with normal request domain name according to each response data, and further determining a corresponding private service domain name.
In some embodiments, exception reporting unit 404 is further configured to: acquiring a private domain name corresponding to the abnormal response value, and generating abnormal information based on the private domain name corresponding to the abnormal response value; marking the abnormal mark on the private domain name corresponding to the abnormal response value; and reporting the abnormal information and the private domain name marked with the abnormal identifier.
In some embodiments, exception reporting unit 404 is further configured to: in response to a request for a private domain name marked with an anomaly identification, request anomaly information is returned.
It should be noted that, the website access method and the website access device of the present application have a corresponding relationship in the implementation content, so the repeated content will not be described.
Fig. 5 illustrates an exemplary system architecture 500 in which the website access method or website access apparatus of embodiments of the present application may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a website access processing screen and supporting website browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for web service requests submitted by users using terminal devices 501, 502, 503. The background management server can respond to the website access request to acquire the corresponding browser identification and user identification; invoking public network service to obtain current network channel configuration data corresponding to browser identification and user identification; performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name; responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting to the public network service; and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name. The method and the system solve the problem of multi-gateway automation in a network closed network scene, achieve no perception degradation of users in the access process, avoid online accidents that users cannot normally access, and automatically and finely manage and control the reporting of network anomalies of the users.
It should be noted that, the website accessing method provided in the embodiments of the present application is generally executed by the server 505, and accordingly, the website accessing device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a schematic diagram of a computer system 600 suitable for use in implementing the terminal device of an embodiment of the present application is shown. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the computer system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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 or flowchart illustration, and combinations of blocks in the block diagrams 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.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: the processor comprises a first acquisition unit, a second acquisition unit, a private domain name determination unit, an anomaly reporting unit and a website access unit. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the device, cause the device to obtain a corresponding browser identification and user identification in response to a website access request; invoking public network service to obtain current network channel configuration data corresponding to browser identification and user identification; performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name; responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting to the public network service; and circularly detecting the private service domain name channel until a response value corresponding to the normal is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name.
According to the technical scheme of the embodiment of the application, the multi-gateway automation is realized under the network closed network scene, the perception degradation of the user is avoided in the access process, the online accident that the user cannot normally access is avoided, and the network abnormality of the user is reported by automatic fine management and control.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (12)

1. A method for accessing a web site, comprising:
responding to a website access request, and acquiring a corresponding browser identifier and a user identifier;
invoking public network service to obtain the current network channel configuration data corresponding to the browser identification and the user identification;
performing local logic judgment based on the current network channel configuration data to determine a corresponding private domain name;
responding to the request of the private service domain name, acquiring a response value of the private service domain name, responding to the response value corresponding to the abnormality, generating abnormality information and reporting the abnormality information to the public network service;
and circularly detecting the private service domain name channel until a response value corresponding to a normal state is received, determining a corresponding target private service domain name, and automatically accessing and opening a website corresponding to the target private service domain name.
2. The method of claim 1, wherein the invoking the public network service to obtain the current network channel configuration data corresponding to the browser identification and the user identification comprises:
sending a current network channel configuration data acquisition request to public network service of a server, wherein the current network channel configuration data acquisition request carries a unique identifier, and the unique identifier is generated based on the user identifier and the browser identifier;
and calling the server to execute a server identification process based on the unique identification, and returning the current network channel configuration data in response to successful identification.
3. The method of claim 2, wherein the invoking the server to perform a server identification process based on the unique identification, in response to successful identification, returns current network channel configuration data, comprising:
determining a browser identification according to the unique identification;
executing the identification and acquisition process of the corresponding disaster recovery service state data and the corresponding domain name interface service state data based on the browser identification, taking the acquired corresponding disaster recovery service state data and the corresponding domain name interface service state data as current network channel configuration data, and returning to the browser end corresponding to the unique identification.
4. The method of claim 1, wherein the performing a local logical determination based on the current network channel configuration data to determine a corresponding privacy domain name comprises:
initiating a page data acquisition request to each domain name channel corresponding to the current network channel configuration data, and receiving response data returned by each domain name channel;
and determining a domain name channel with a normal request domain name according to each response data, and further determining a corresponding private service domain name.
5. The method of claim 1, wherein generating and reporting the anomaly information to the public network service comprises:
acquiring a private domain name corresponding to an abnormal response value, and generating abnormal information based on the private domain name corresponding to the abnormal response value;
marking the abnormal mark of the private domain name corresponding to the abnormal response value;
and reporting the abnormal information and the private domain name marked with the abnormal identifier.
6. The method of claim 5, wherein the method further comprises:
and responding to the request of the private domain name marked with the anomaly identification, and returning the anomaly information of the request.
7. A web site access device, comprising:
the first acquisition unit is configured to respond to a website access request and acquire a corresponding browser identifier and a corresponding user identifier;
the second acquisition unit is configured to call public network service to acquire the browser identification and the current network channel configuration data corresponding to the user identification;
the private service domain name determining unit is configured to perform local logic judgment based on the current network channel configuration data so as to determine a corresponding private service domain name;
the anomaly reporting unit is configured to respond to the request of the private service domain name, acquire a response value of the private service domain name, respond to the response value corresponding to anomaly, generate anomaly information and report the anomaly information to the public network service;
and the website access unit is configured to circularly detect the private service domain name channel until a response value corresponding to a normal state is received, determine a corresponding target private service domain name and automatically access and open a website corresponding to the target private service domain name.
8. The apparatus of claim 7, wherein the second acquisition unit is further configured to:
sending a current network channel configuration data acquisition request to public network service of a server, wherein the current network channel configuration data acquisition request carries a unique identifier, and the unique identifier is generated based on the user identifier and the browser identifier;
and calling the server to execute a server identification process based on the unique identification, and returning the current network channel configuration data in response to successful identification.
9. The apparatus of claim 8, wherein the second acquisition unit is further configured to:
determining a browser identification according to the unique identification;
executing the identification and acquisition process of the corresponding disaster recovery service state data and the corresponding domain name interface service state data based on the browser identification, taking the acquired corresponding disaster recovery service state data and the corresponding domain name interface service state data as current network channel configuration data, and returning to the browser end corresponding to the unique identification.
10. The apparatus of claim 7, wherein the privacy domain name determination unit is further configured to:
initiating a page data acquisition request to each domain name channel corresponding to the current network channel configuration data, and receiving response data returned by each domain name channel;
and determining a domain name channel with a normal request domain name according to each response data, and further determining a corresponding private service domain name.
11. A website-accessing electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
12. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202311694993.2A 2023-12-11 2023-12-11 Website access method and device, electronic equipment and computer readable medium Pending CN117792704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311694993.2A CN117792704A (en) 2023-12-11 2023-12-11 Website access method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311694993.2A CN117792704A (en) 2023-12-11 2023-12-11 Website access method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN117792704A true CN117792704A (en) 2024-03-29

Family

ID=90399053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311694993.2A Pending CN117792704A (en) 2023-12-11 2023-12-11 Website access method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN117792704A (en)

Similar Documents

Publication Publication Date Title
US11546331B2 (en) Credential and authentication management in scalable data networks
US11805180B2 (en) Native activity tracking using credential and authentication management in scalable data networks
US11936652B2 (en) Proxied multi-factor authentication using credential and authentication management in scalable data networks
US10560465B2 (en) Real time anomaly detection for data streams
CN111160845B (en) Service processing method and device
CN113204730B (en) Resource acquisition method, webvpn proxy server, system and server
CN110489192B (en) Remote communication method and device and electronic equipment
CN111460129B (en) Method, device, electronic equipment and storage medium for generating identification
CN111177672A (en) Page access control method and device and electronic equipment
CN112202744B (en) Multi-system data communication method and device
US11882154B2 (en) Template representation of security resources
CN112015383A (en) Login method and device
CN107634942B (en) Method and device for identifying malicious request
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
CN104253783A (en) Web application realization code loading method, device, system and server
AU2018390863B2 (en) Computer system and method for extracting dynamic content from websites
CN115550141A (en) Event processing method and device, electronic equipment and readable storage medium
CN115174248A (en) Network access control method and device
CN117792704A (en) Website access method and device, electronic equipment and computer readable medium
CN113836173A (en) Data processing method and device, electronic equipment and storage medium
CN112306791B (en) Performance monitoring method and device
CN113824696B (en) Portal authentication method and device
CN115577200B (en) Page loading method, device, equipment and storage medium
CN114598524B (en) Method, device, equipment and storage medium for detecting agent tool
US20230247081A1 (en) Declarative rendering of hypertext transfer protocol headers

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