CN107016074B - Webpage loading method and device - Google Patents

Webpage loading method and device Download PDF

Info

Publication number
CN107016074B
CN107016074B CN201710186488.5A CN201710186488A CN107016074B CN 107016074 B CN107016074 B CN 107016074B CN 201710186488 A CN201710186488 A CN 201710186488A CN 107016074 B CN107016074 B CN 107016074B
Authority
CN
China
Prior art keywords
browser
account
webpage
state information
uniform resource
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
CN201710186488.5A
Other languages
Chinese (zh)
Other versions
CN107016074A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710186488.5A priority Critical patent/CN107016074B/en
Publication of CN107016074A publication Critical patent/CN107016074A/en
Application granted granted Critical
Publication of CN107016074B publication Critical patent/CN107016074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a webpage loading method and device, wherein the webpage loading method comprises the following steps: receiving a webpage loading request aiming at a target webpage, which is sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target webpage and login state information of a first account, and the login state information is the login state information of the target webpage loaded by a second browser by using the first account; acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage; and sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser. By adopting the embodiment of the invention, the account login state information can be transferred between different browsers in a seamless way, and the login operation flow after the browser is switched is reduced.

Description

Webpage loading method and device
Technical Field
The invention relates to the technical field of communication, in particular to a webpage loading method and device.
Background
With the development of browser technology and markets, various browser layers are endless, and users can freely select any browser to use. Because of the wide variety of browsers, there is often a scene of browser switching, for example, after a user logs in an account on one browser, the user switches to another browser to log in. In the prior art, when a user changes a browser, the user needs to log in an account again to perform operation, and the flow is complicated.
Disclosure of Invention
The embodiment of the invention provides a webpage loading method and device, which can realize seamless transfer of login state information of accounts among different browsers and reduce login operation flow after browser switching.
A first aspect of the present invention provides a method for loading a web page, which may include:
receiving a webpage loading request aiming at a target webpage, which is sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target webpage and login state information of a first account, and the login state information is the login state information of the target webpage loaded by a second browser by using the first account;
Acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage;
and sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser.
A second aspect of an embodiment of the present invention provides a web page loading device, which may include:
the first receiving module is used for receiving a webpage loading request aiming at a target webpage, which is sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target webpage and login state information of a first account, and the login state information is the login state information of the target webpage loaded by a second browser by using the first account;
the acquisition module is used for acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage;
and the first sending module is used for sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser.
In the embodiment of the invention, a server receives a webpage loading request for a target webpage sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises login state information of a first account, the login state information is the login state information of the target webpage loaded by a second browser by using the first account, webpage data corresponding to the target webpage and the login state information can be obtained according to the login state information and sent to the first browser for loading, and the mode can realize seamless transfer of the login state information of the account among different browsers and reduce login operation flow after the browser is switched.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for loading a web page according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for loading a web page according to an embodiment of the present invention;
FIG. 3a is a block diagram of a second URL according to an embodiment of the present invention;
FIG. 3b is a block diagram of another second URL according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an embodiment of a first uniform resource locator according to the present invention;
FIG. 5 is a schematic diagram illustrating an alignment of a URL according to an embodiment of the present invention;
FIG. 6 is a view of a browser switching scenario provided in an embodiment of the present invention;
FIG. 7a is a schematic diagram of a login interface according to an embodiment of the present invention;
FIG. 7b is a diagram of a second browser browsing pages provided by an embodiment of the present invention;
FIG. 7c is a diagram of a second browser user payment page provided by an embodiment of the present invention;
FIG. 7d is a schematic diagram of a first browser according to an embodiment of the present invention;
FIG. 7e is a diagram of a first browser user payment page provided by an embodiment of the present invention;
FIG. 8 is a schematic diagram of a webpage loading device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another configuration of a webpage loading device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a web page loading device according to another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the drawings are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The first account number in the embodiment of the present invention may be an instant messaging account number, an account number of a financial platform, an account number of a shopping platform, etc., which is not limited by the present invention.
The method for loading the web page provided by the embodiment of the invention will be described in detail with reference to fig. 1 to 8.
Referring to fig. 1, a flowchart of a web page loading method according to an embodiment of the present invention is shown; the method may comprise the steps of:
s100, receiving a webpage loading request aiming at a target webpage, which is sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target webpage and login state information of a first account, and the login state information is the login state information of the target webpage loaded by a second browser by using the first account;
in the embodiment of the invention, the server receives the webpage loading request for the target webpage sent by the first browser, and the server may be a third party server, for example, if the target webpage is a webpage for accessing the financial platform, the server may be a server of the financial platform.
The first browser and the second browser in the embodiment of the present invention may be different browsers, and optionally, the first browser and the second browser may be different kernel types of browsers, for example, the first browser may be an internet (Internet Explorer, IE) browser, and the second browser is a non-IE browser, or, for example, the first browser may be a non-IE kernel browser, and the second browser may be an IE browser.
Alternatively, the first browser and the second browser may be merely browsers of different providers, for example, the first browser is a cheetah browser, the second browser is a dog search browser, and so on.
The first browser sends a web page loading request for the target web page including a first uniform resource locator (Uniform Resource Locator, URL). The first uniform resource locator includes a web site path of the target web page and login state information of the first account, and optionally, the login state information of the first account may be cookie information of the first account.
In the embodiment of the invention, the data of the target webpage can be obtained through the website path of the target webpage, and further optionally, the webpage data corresponding to the login state information of the first account included in the first uniform resource locator can be obtained through the login state information of the first account, for example, if the target webpage is a webpage of a financial product, only some financial product information can be obtained if the login state information of the first account is not available, and if the first uniform resource locator includes the login state information of the first account, not only the financial product information but also some personal information of the first account, such as asset information, can be obtained. The first browser can directly load the target webpage by using the first account through the login state information of the first account in the first uniform resource locator, the first account is in a login state on the target webpage, and a user does not need to input an account password in the first browser to log in.
Optionally, the login state information of the first account in the first uniform resource locator may be login state information when the second browser uses the first account to load the target webpage. For example, before the first browser sends the webpage loading request, the user logs in the second browser by using the first account of the user, and the login mode includes but is not limited to inputting an account password for login, or scanning code for login and the like. The account login is as follows: to better serve different users, the server provides a separate account for each user. For account security of the user, different users need to log in when desiring to obtain services, and after logging in by the account, the user can perform various operations, such as collection, product purchase and the like.
After the first account logs in through the second browser, the server generates login state information, such as cookie information, for the first account. The server sends the login state information of the first account to the device where the second browser is located, and stores the login state information in a local folder on the device, wherein the local folder corresponds to the second browser, and only the second browser client can access the login state information.
When the second browser needs to load the target webpage, the second browser sends a webpage loading request for the target webpage to the server, the webpage loading request carries a website path of the target webpage and login state information of the first account, the server can generate a second uniform resource locator according to the website path of the target webpage and the login state information of the first account, the second uniform resource locator refers to webpage data corresponding to the login state information of the first account of the target webpage, and the webpage data corresponding to the login state information of the first account of the target webpage contains information of the first account. The server sends the generated second uniform resource locator to the second browser, and the second browser loads webpage data corresponding to the login state information of the first account.
The user can browse the webpage data corresponding to the login state information of the first account at the second browser. If the user needs to switch the browser, the second uniform resource locator of the second browser can be copied to the first browser, so that the first browser is triggered to send a webpage loading request aiming at the target webpage to the server, the webpage loading request comprises the first uniform resource locator, and under the general safety environment, for example, the first uniform resource locator is completely identical with the second uniform resource locator without hacking or the like.
Optionally, the triggering condition of the user to switch the browser may include, but is not limited to, for example, that the user needs to trigger a large payment for purchasing a financial product, the browser may need to be replaced, or the second browser cannot load some webpage data, resulting in incomplete display, or the user is in personal preference, the browser needs to be replaced, and so on.
S101, acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage;
s102, sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser.
In the embodiment of the invention, the server can acquire the webpage data corresponding to the login state information of the target webpage and the first account number according to the login state information of the first account number in the first uniform resource locator sent by the first browser and the website path of the target webpage. It should be noted that, the web page data is the same as the web page data loaded by the second browser and corresponding to the login state information of the first account, for example, the web page data is the payment web page data of the first account, before and after the user switches the browser, the payment web pages loaded by the first browser and the second browser are completely the same, the switched first browser still includes the payment information of the first account, and the user does not need to log in again, but can directly perform the subsequent operation.
In the embodiment of the invention, when the user switches the browser to load the webpage, the login operation can be performed again without the first browser after switching, so that the complicated login process is omitted.
In the embodiment of the invention, a server receives a webpage loading request for a target webpage sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises login state information of a first account, the login state information is the login state information of the target webpage loaded by a second browser by using the first account, webpage data corresponding to the target webpage and the login state information can be obtained according to the login state information and sent to the first browser for loading, and the mode can realize seamless transfer of the login state information of the account among different browsers and reduce login operation flow after the browser is switched.
Referring to fig. 2, a flowchart of another method for loading a web page according to an embodiment of the present invention is shown; the method may comprise the steps of:
s200, receiving a webpage loading request for a target webpage sent by a second browser, wherein the webpage loading request carries a website path of the target webpage and login state information of a first account currently used by the second browser;
s201, generating webpage data corresponding to the login state information of the first account and second uniform resource locators corresponding to the webpage data of the target webpage according to the login state information of the first account and the website path of the target webpage, wherein the second uniform resource locators comprise the website path of the target webpage and the login state information of the first account;
s202, sending the webpage data corresponding to the login state information of the target webpage and the first account and the second uniform resource locator to the second browser.
In the embodiment of the invention, the first browser and the second browser are different browsers, and the user can log in the second browser by using the first account, and after the first account logs in the second browser, the server generates login state information of the first account, for example, the login state information is user cookie information. And the server sends the generated login state information to a local folder of the equipment where the second browser is located, wherein the local folder corresponds to the second browser.
When the second browser needs to access the target webpage, the second browser sends a webpage loading request aiming at the target webpage to the server, wherein the webpage loading request carries a website path of the target webpage and login state information of a first account currently used by the second browser. After receiving the web page loading request sent by the second browser, the server may generate web page data corresponding to the login state information of the target web page and the first account, where the web page data corresponding to the login state information of the target web page and the first account includes information of the first account, for example, if the first account is an account of a financial platform, the information of the first account may include but is not limited to asset information of the first account, and if the first account is an account of an educational platform, the information of the first account may include but is not limited to historical learning data corresponding to the first account, collected learning content, and the like.
And the server generates a second uniform resource locator according to the login state information of the first account and the website path of the target webpage, wherein the second uniform resource locator comprises the website path of the target webpage and the login state information of the first account, and webpage data corresponding to the login state information of the target webpage and the first account can be acquired through the second uniform resource locator. The server sends the second url to the second browser, and the user may copy the second url of the second browser, e.g., the user may copy the second url to another first browser.
Optionally, the second uniform resource locator may further include second verification information in addition to the login state information of the first account and the website path of the target webpage, where the second verification information is used for further verifying the first uniform resource locator sent by the first browser by the server, so as to determine whether the first uniform resource locator is the second uniform resource locator generated by the server.
Optionally, the second verification information may include at least one of the following information: the device identifier of the device where the second browser is located, the network identifier of the network where the second browser is located, and the generation time of the second uniform resource locator. Optionally, the device identifier may be a media access control (Media Access Control, MAC) address of the device where the second browser is located, and the network identifier may be an internet protocol (Internet Protocol Address, IP) address of the network where the second browser is located, and since the MAC address and the IP address of the device are unique, security can be improved by using the MAC address and the IP address of the device as authentication information.
Optionally, the second verification information includes a MAC address of the device where the second browser is located, an IP address of the network where the device where the second browser is located, and a generation time of the second url as an example of a generation manner of the second url. The login state information of the first account is cookie information of the first account.
As shown in fig. 3a, the web site path of the target web page is located at the head of the second URL, the user cookie information is located at the back of the URL head, and the user cookie information is sequentially followed by the IP address, the MAC address, and the second URL generation time.
Alternatively, as shown in fig. 3a, for each account, the server needs to embed two unique strings in the second url, that is, the strings are different for different accounts. Wherein, a set of character strings is used for dividing different parts of the second uniform resource locator after encryption, namely dividing characters, and the embodiment of the invention names the characters as bridges; another set of strings is used to add noise to each portion of the second url for each account, and the embodiment of the present invention is referred to as salt.
It should be noted that, the valid time may be set to 10 minutes for two unique strings in the second url, and the valid time is set to be specific to the generation time of the second url, and when the difference between the time of parsing the string and the generation time of the second url is greater than 10 minutes, the string is also invalid. This way the security and the breaking costs of the second uniform resource locator can be further enhanced.
Further optionally, to ensure sufficient security of the information, embodiments of the present invention encrypt each portion of the second uniform resource locator using two encryption methods, secure socket layer (Secure Sockets Layer, SSL) encryption and message digest algorithm (Message Digest Algorithm, MD 5) encryption, respectively.
SSL encryption is an encryption scheme that can be decrypted by the receiver, while MD5 encryption is an encryption scheme that cannot be decrypted by the receiver. In the embodiment of the invention, the cookie information of the first account is encrypted through SSL, and the IP address and the MAC address are encrypted through MD 5. Thus, the second uniform resource locator is intercepted maliciously in the transmission process, and the cost for the illegal vain to want to break the second uniform resource locator is also very high.
Optionally, under the condition that the network can be ensured to be sufficiently safe, the identity of the user can be verified in a simpler manner, namely, the login state information of the first account can be represented by using the identification of the first account. Fig. 3b is a schematic structural diagram of another second url according to an embodiment of the present invention. As shown in the figure, the ticket is a unique identifier which is pre-allocated to each account by the server, is a short character string generated for the corresponding account, and is unique.
After the server generates the second uniform resource locator, the second uniform resource locator is sent to the second browser, and the second browser loads the webpage data corresponding to the login state information of the first account and simultaneously displays the second uniform resource locator in the URL address bar of the second browser.
S203, receiving a webpage loading request for a target webpage sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target webpage and login state information of a first account, and the login state information is the login state information of the target webpage loaded by a second browser by using the first account;
in the embodiment of the invention, the user can copy and paste the second uniform resource locator in the second browser into the URL address bar of the first browser, so that the first browser is triggered to send a webpage loading request aiming at the target webpage to the server.
In the embodiment of the invention, the uniform resource locator carried in the webpage loading request sent by the first browser to the server is called as a first uniform resource locator, and if the uniform resource locator is copied and pasted to the first browser from the second browser under the condition of network security (for example, the user copies the uniform resource locator to the first browser), the first uniform resource locator is identical to the second uniform resource locator. If the second url is attacked by an lawbreaker, the first url in the first browser may be a lawbreaker forged url, which may cause the first url received by the server to be different from the second url.
S204, verifying whether the first uniform resource locator is matched with the second uniform resource locator by comparing whether the first verification information in the first uniform resource locator is consistent with the second verification information in the second uniform resource locator;
in order to ensure account safety of a user, after receiving a first uniform resource locator, a server analyzes the first uniform resource locator to obtain first verification information of the first uniform resource locator, and compares the first verification information with second verification information cached by the server, wherein the second verification information is cached when the server generates the second uniform resource locator.
Specifically, optionally, the parsing mode for parsing the first uniform resource locator needs to be determined according to the generating mode of the second uniform resource locator, for example, if the generating mode of the second uniform resource locator is generated according to the generating mode of fig. 3a, the server may parse according to the parsing mode of fig. 4 when parsing the first uniform resource locator.
The server divides each piece of information according to the bridge in the first uniform resource locator, and further decrypts each piece of information by referring to an encryption algorithm adopted for generating the second uniform resource locator. As shown in fig. 4, since the IP address and the MAC address are encrypted by the MD5, the MD5 encryption is an encryption scheme that cannot be decrypted, and therefore, only the IP address and the MAC address after the MD5 encryption need be parsed when the first uniform resource locator is parsed. Since the user cookie information and URL generation time are encrypted by SSL, SSL encryption is an encryption scheme that can be decrypted, it is necessary to parse the user cookie information and URL generation time when parsing the first uniform resource locator.
As shown in fig. 5, which is a schematic flow chart for verifying whether the first uniform resource locator is consistent with the second uniform resource locator according to the embodiment of the present invention, the server caches URL time, encrypted IP address and MAC address and user cookie information according to which the second uniform resource locator is generated, and compares URL time, encrypted IP address and MAC address obtained by parsing in the first uniform resource locator and information cached by the server, that is, compares information obtained by parsing in fig. 4 with information cached by the server.
As shown in fig. 5, which is a schematic diagram of matching by the server, the server compares the URL generation time in the cache (i.e., the generation time of the second uniform resource locator) with the URL generation time obtained by parsing from the first uniform resource locator.
The server compares the user cookie information in the cache with the user cookie information parsed from the first uniform resource locator.
Because the IP address and the MAC address are encrypted by using the MD5, the server compares the IP address and the MAC address encrypted by MD5 in the cache with the IP address and the MAC address encrypted by MD5 obtained by parsing from the first uniform resource locator.
If the comparison result of each comparison process in fig. 5 is consistent, it indicates that the first uniform resource locator is matched with the second uniform resource locator, that is, the first uniform resource locator is the second uniform resource locator pre-generated by the server.
S205, if the first uniform resource locator is matched with the second uniform resource locator, acquiring webpage data corresponding to the login state information of the first account and the login state information of the target webpage according to the login state information of the first account and the website path of the target webpage.
In the embodiment of the invention, if the first uniform resource locator is matched with the second uniform resource locator, the web page data corresponding to the login state information of the first account number can be obtained according to the login state information (such as the cookie information of the user) of the first account number and the web address path of the target web page. Such as personal information, collection information, etc. of the first account.
Preferably, in order to further ensure account security, the first uniform resource locator includes a generation time of the first uniform resource locator, and after the server receives the first uniform resource locator, the first uniform resource locator is verified to be completely matched with the second uniform resource locator. And further determining whether to acquire the webpage data corresponding to the login state information of the first account according to the generation time of the first uniform resource locator.
Optionally, the server calculates a time difference between the current time and the time of generating the first uniform resource locator, compares whether the time difference is smaller than or equal to a preset threshold, and if the time difference is smaller than or equal to the preset threshold, acquires webpage data corresponding to login state information of the first account. If the time difference is greater than a preset threshold, the user is required to log in again in the first browser.
S206, sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser.
In the embodiment step S206 of the present invention, please refer to the embodiment step S102 of fig. 1, and a detailed description thereof is omitted.
In the embodiment of the invention, a server receives a webpage loading request for a target webpage sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises login state information of a first account, the login state information is the login state information of the target webpage loaded by a second browser by using the first account, webpage data corresponding to the target webpage and the login state information can be obtained according to the login state information and sent to the first browser for loading, and the mode can realize seamless transfer of the login state information of the account among different browsers and reduce login operation flow after the browser is switched.
Referring to fig. 6, a schematic diagram of a user operation flow for switching a browser according to an embodiment of the present invention is shown, for example, a first browser is an IE kernel browser, a second browser is a non-IE browser, a user performs a login operation on the non-IE browser in a mobile phone code scanning login manner, after the non-IE browser performs login verification, when the user needs to switch to an IE kernel browser payment operation, a URL in the non-IE browser may be copied and pasted to the IE kernel browser, the IE kernel browser may load a payment webpage after login, and the user may directly complete the payment operation on the IE kernel browser.
Referring to fig. 7a to fig. 7e, a schematic diagram of a large payment triggering switching browser according to an embodiment of the present invention is provided, and an application scenario of the embodiment of the present invention may be to log in a financial website. As shown in fig. 7a, a user logs in a first account on a second browser by scanning a two-dimensional code; as shown in fig. 7b, after the second browser logs in, the user may browse various financial products, and because the operation is performed after the second browser logs in, the web page loaded by the second browser further includes account information of the first account, such as "XX account" in fig. 7 b. When the user needs to buy a financial product of a certain amount, the "buy amount" may be input, as shown in fig. 7b, the input amount: 50000, further clicking "buy", the second browser jumps to the webpage of fig. 7c, where the webpage of fig. 7c may be webpage data corresponding to the login state information of the first account in the embodiment of the present invention, and it should be noted that, in the embodiment of the present invention, only the webpage data of fig. 7c is taken as an example, and any page of the first account after the login of the second browser may be used as the webpage data corresponding to the login state information of the first account in the embodiment of the present invention.
When the user clicks "buy" in fig. 7b, the second browser sends a web page loading request to the server, and after receiving the web page loading request, the server may generate a second uniform resource locator corresponding to the web page in fig. 7c, where the second uniform resource locator includes cookie information of the logged-in first account, and sends the web page data and the second uniform resource locator in fig. 7c to the second browser for loading and displaying.
Usually, the bank Ukey is used in a matched manner because of large payment, but the bank Ukey can only be used in an IE kernel browser, and if the second browser is a non-IE browser, the browser needs to be switched to pay. As shown in fig. 7c, the second browser may load a prompt for prompting the user to copy the link and switch the browser. As shown in fig. 7d, the user opens the first browser and copies and pastes the second URL in fig. 7c into the URL address bar of the first browser, and the copied and pasted URL is referred to as the first URL in fig. 7 d.
The first browser sends a web page loading request to the server, the web page loading request comprises a first uniform resource locator, the server can acquire web page data corresponding to the cookie information of the first account according to the user cookie information of the first account in the first uniform resource locator, and send the web page data to the first browser for loading and displaying, as shown in fig. 7e, namely the web page data corresponding to the cookie information of the first account, the web page of fig. 7e is identical to the web page of fig. 7c, so that the user can continue to perform payment operation in fig. 7e without logging in again.
Optionally, the application scenario of switching the second browser to the first browser is not limited to the application scenario of the above-mentioned micropayment, but may be any application scenario that needs to be logged in. For example, when a user learns on an education website by using the first account, the browser can be switched at any time.
After the user logs in by using the first account number in the second browser, the user can see the collected learning content, added learning subjects and the like. If the user needs to open a paper, the second browser sends a webpage loading request of the paper to the server, and after the server receives the webpage loading request, the second uniform resource locator can be generated according to the user cookie information of the first account. And the server returns the webpage data containing the paper and the personal information of the first account to the second browser, and simultaneously sends the generated second uniform resource locator to the second browser. The second browser displays the second uniform resource locator in the URL address bar. If the user wants to switch one browser, the second uniform resource locator can be copied and pasted to the first browser, so that the first browser is triggered to send a webpage loading request to the server, wherein the webpage loading request comprises a first uniform resource locator, and the first uniform resource locator is identical to the second uniform resource locator.
The server may obtain corresponding web page data according to the user cookie information of the first account in the first uniform resource locator and the web address path in the first uniform resource locator, where the web page data includes the paper and personal information of the first account, and the server sends the web page data to the first browser for loading. The user can see the personal information of the first account and the paper in the switched first browser, and the user can continue to operate, such as collecting the paper, without logging in the switched first browser.
The following describes in detail the webpage loading device provided by the embodiment of the present invention with reference to fig. 8 to fig. 10.
Referring to fig. 8, a schematic structural diagram of a web page loading device according to an embodiment of the present invention is shown, where the web page loading device according to the embodiment of the present invention includes:
the first receiving module 10 is configured to receive a web page loading request for a target web page sent by a first browser, where the web page loading request includes a first uniform resource locator, the first uniform resource locator includes a website path of the target web page and login state information of a first account, and the login state information is login state information of loading the target web page by a second browser using the first account;
In the embodiment of the present invention, the first server receiving module 10 receives a web page loading request for a target web page sent by the first browser, where the server may be a third party server, for example, if the target web page is a web page accessing a financial platform, the server may be a server of the financial platform.
The first browser and the second browser in the embodiment of the present invention may be different browsers, and optionally, the first browser and the second browser may be different kernel types of browsers, for example, the first browser may be an internet (Internet Explorer, IE) browser, and the second browser is a non-IE browser, or, for example, the first browser may be a non-IE kernel browser, and the second browser may be an IE browser.
Alternatively, the first browser and the second browser may be merely browsers of different providers, for example, the first browser is a cheetah browser, the second browser is a dog search browser, and so on.
The first browser sends a web page loading request for the target web page including a first uniform resource locator (Uniform Resource Locator, URL). The first uniform resource locator includes a web site path of the target web page and login state information of the first account, and optionally, the login state information of the first account may be cookie information of the first account.
In the embodiment of the invention, the data of the target webpage can be obtained through the website path of the target webpage, and further optionally, the webpage data corresponding to the login state information of the first account included in the first uniform resource locator can be obtained through the login state information of the first account, for example, if the target webpage is a webpage of a financial product, only some financial product information can be obtained if the login state information of the first account is not available, and if the first uniform resource locator includes the login state information of the first account, not only the financial product information but also some personal information of the first account, such as asset information, can be obtained. The first browser can directly load the target webpage by using the first account through the login state information of the first account in the first uniform resource locator, the first account is in a login state on the target webpage, and a user does not need to input an account password in the first browser to log in.
Optionally, the login state information of the first account in the first uniform resource locator may be login state information when the second browser uses the first account to load the target webpage. For example, before the first browser sends the webpage loading request, the user logs in the second browser by using the first account of the user, and the login mode includes but is not limited to inputting an account password for login, or scanning code for login and the like. The account login is as follows: to better serve different users, the server provides a separate account for each user. For account security of the user, different users need to log in when desiring to obtain services, and after logging in by the account, the user can perform various operations, such as collection, product purchase and the like.
After the first account logs in through the second browser, the server generates login state information, such as cookie information, for the first account. And the server sends the login state information of the first account to the equipment where the second browser is located, and stores the login state information in a local folder on the equipment. When the second browser needs to load the target webpage, the second browser sends a webpage loading request for the target webpage to the server, the webpage loading request carries a website path of the target webpage and login state information of the first account, the server can generate a second uniform resource locator according to the website path of the target webpage and the login state information of the first account, the second uniform resource locator refers to webpage data corresponding to the login state information of the first account of the target webpage, and the webpage data corresponding to the login state information of the first account of the target webpage contains information of the first account. The server sends the generated second uniform resource locator to the second browser, and the second browser loads webpage data corresponding to the login state information of the first account.
The user can browse the webpage data corresponding to the login state information of the first account number in the second browser, if the user needs to switch the browser, the second uniform resource locator of the second browser can be copied to the first browser, so that the first browser is triggered to send a webpage loading request aiming at the target webpage to the server, the webpage loading request comprises the first uniform resource locator, and in a general safety environment, for example, the first uniform resource locator is identical to the second uniform resource locator without hacking or the like.
Optionally, the triggering condition of the user to switch the browser may include, but is not limited to, for example, that the user needs to trigger a large payment for purchasing a financial product, the browser may need to be replaced, or the second browser cannot load some webpage data, resulting in incomplete display, or the user is in personal preference, the browser needs to be replaced, and so on.
The obtaining module 11 is configured to obtain, according to the login state information of the first account and a website path of the target webpage, webpage data corresponding to the login state information of the target webpage and the first account;
and the first sending module 12 is configured to send the webpage data corresponding to the login state information of the target webpage and the first account to the first browser.
In the embodiment of the present invention, the server may obtain, according to the login state information of the first account in the first uniform resource locator sent by the first browser and the website path of the target web page, web page data corresponding to the login state information of the target web page and the first account by using the obtaining module 11. It should be noted that, the web page data is the same as the web page data loaded by the second browser and corresponding to the login state information of the first account, for example, the web page data is the payment web page data of the first account, before and after the user switches the browser, the payment web pages loaded by the first browser and the second browser are completely the same, the switched first browser still includes the payment information of the first account, and the user does not need to log in again, but can directly perform the subsequent operation.
In the embodiment of the invention, when the user switches the browser to load the webpage, the login operation can be performed again without the first browser after switching, so that the complicated login process is omitted.
In the embodiment of the invention, a server receives a webpage loading request for a target webpage sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises login state information of a first account, the login state information is the login state information of the target webpage loaded by a second browser by using the first account, webpage data corresponding to the target webpage and the login state information can be obtained according to the login state information and sent to the first browser for loading, and the mode can realize seamless transfer of the login state information of the account among different browsers and reduce login operation flow after the browser is switched.
Referring to fig. 9, a schematic structural diagram of another web page loading device according to an embodiment of the present invention is shown, where the web page loading device according to the embodiment of the present invention includes: a first receiving module 20, an acquiring module 21 and a first transmitting module 22.
Optionally, as shown in fig. 9, the web page loading device of the embodiment of the present invention may further include a second receiving module 23, a generating module 24, a second sending module 25, and a verifying module 26;
The second receiving module 23 is configured to receive a web page loading request for a target web page sent by a second browser, where the web page loading request carries a website path of the target web page and login state information of a first account currently used by the second browser;
the generating module 24 is configured to generate, according to the login status information of the first account and the website path of the target webpage, webpage data corresponding to the login status information of the target webpage and a second uniform resource locator corresponding to the webpage data, where the second uniform resource locator includes the website path of the target webpage and the login status information of the first account;
and a second sending module 25, configured to send the target web page, the web page data corresponding to the login status information of the first account, and the second uniform resource locator to the second browser.
In the embodiment of the invention, the first browser and the second browser are different browsers, and the user can log in the second browser by using the first account, and after the first account logs in the second browser, the server generates login state information of the first account, for example, the login state information is user cookie information. And the server sends the generated login state information to a local folder of the equipment where the second browser is located, wherein the local folder corresponds to the second browser.
When the second browser needs to access the target webpage, the second browser sends a webpage loading request aiming at the target webpage to the server, wherein the webpage loading request carries a website path of the target webpage and login state information of a first account currently used by the second browser. After receiving the web page loading request sent by the second browser, the server may generate web page data corresponding to the login state information of the target web page and the first account, where the web page data corresponding to the login state information of the target web page and the first account includes information of the first account, for example, if the first account is an account of a financial platform, the information of the first account may include but is not limited to asset information of the first account, and if the first account is an account of an educational platform, the information of the first account may include but is not limited to historical learning data corresponding to the first account, collected learning content, and the like.
And the server generates a second uniform resource locator according to the login state information of the first account and the website path of the target webpage, wherein the second uniform resource locator comprises the website path of the target webpage and the login state information of the first account, and webpage data corresponding to the login state information of the target webpage and the first account can be acquired through the second uniform resource locator. The server sends the second url to the second browser, and the user may copy the second url of the second browser, e.g., the user may copy the second url to another first browser.
Optionally, the second uniform resource locator may further include second verification information in addition to the login state information of the first account and the website path of the target webpage, where the second verification information is used for further verifying the first uniform resource locator sent by the first browser by the server, so as to determine whether the first uniform resource locator is the second uniform resource locator generated by the server.
Optionally, the second verification information may include at least one of the following information: the device identifier of the device where the second browser is located, the network identifier of the network where the second browser is located, and the generation time of the second uniform resource locator. Optionally, the device identifier may be a media access control (Media Access Control, MAC) address of the device where the second browser is located, and the network identifier may be an internet protocol (Internet Protocol Address, IP) address of the network where the second browser is located, and since the MAC address and the IP address of the device are unique, security can be improved by using the MAC address and the IP address of the device as authentication information.
Optionally, the second verification information includes a MAC address of the device where the second browser is located, an IP address of the network where the device where the second browser is located, and a generation time of the second url as an example of a generation manner of the second url. The login state information of the first account is cookie information of the first account.
As shown in fig. 3a, the web site path of the target web page is located at the head of the second URL, the user cookie information is located at the back of the URL head, and the user cookie information is sequentially followed by the IP address, the MAC address, and the second URL generation time.
Alternatively, as shown in fig. 3a, for each account, the server needs to embed two unique strings in the second url, that is, the strings are different for different accounts. Wherein, a set of character strings is used for dividing different parts of the second uniform resource locator after encryption, namely dividing characters, and the embodiment of the invention names the characters as bridges; another set of strings is used to add noise to each portion of the second url for each account, and the embodiment of the present invention is referred to as salt.
It should be noted that, the valid time may be set to 10 minutes for two unique strings in the second url, and the valid time is set to be specific to the generation time of the second url, and when the difference between the time of parsing the string and the generation time of the second url is greater than 10 minutes, the string is also invalid. This way the security and the breaking costs of the second uniform resource locator can be further enhanced.
Further optionally, to ensure sufficient security of the information, embodiments of the present invention encrypt each portion of the second uniform resource locator using two encryption methods, secure socket layer (Secure Sockets Layer, SSL) encryption and message digest algorithm (Message Digest Algorithm, MD 5) encryption, respectively.
SSL encryption is an encryption scheme that can be decrypted by the receiver, while MD5 encryption is an encryption scheme that cannot be decrypted by the receiver. In the embodiment of the invention, the cookie information of the first account is encrypted through SSL, and the IP address and the MAC address are encrypted through MD 5. Thus, the second uniform resource locator is intercepted maliciously in the transmission process, and the cost for the illegal vain to want to break the second uniform resource locator is also very high.
Optionally, under the condition that the network can be ensured to be sufficiently safe, the identity of the user can be verified in a simpler manner, namely, the login state information of the first account can be represented by using the identification of the first account. Fig. 3b is a schematic structural diagram of another second url according to an embodiment of the present invention. As shown in the figure, the ticket is a unique identifier which is pre-allocated to each account by the server, is a short character string generated for the corresponding account, and is unique.
After the server generates the second uniform resource locator, the second uniform resource locator is sent to the second browser, and the second browser loads the webpage data corresponding to the login state information of the first account and simultaneously displays the second uniform resource locator in the URL address bar of the second browser.
The first receiving module 20 is configured to receive a web page loading request for a target web page sent by a first browser, where the web page loading request includes a first uniform resource locator, the first uniform resource locator includes a website path of the target web page and login state information of a first account, and the login state information is login state information of loading the target web page by a second browser using the first account;
in the embodiment of the invention, the user can copy and paste the second uniform resource locator in the second browser into the URL address bar of the first browser, so that the first browser is triggered to send a webpage loading request aiming at the target webpage to the server.
In the embodiment of the invention, the uniform resource locator carried in the webpage loading request sent by the first browser to the server is called as a first uniform resource locator, and if the uniform resource locator is copied and pasted to the first browser from the second browser under the condition of network security (for example, the user copies the uniform resource locator to the first browser), the first uniform resource locator is identical to the second uniform resource locator. If the second url is attacked by an lawbreaker, the first url in the first browser may be a lawbreaker forged url, which may cause the first url received by the server to be different from the second url.
Optionally, the first uniform resource locator further includes first verification information, and the second uniform resource locator further includes second verification information; the apparatus further comprises:
a verification module 26, configured to verify whether the first uniform resource locator matches the second uniform resource locator by comparing whether the first verification information and the second verification information are consistent;
the obtaining module 21 is specifically configured to obtain, if the first uniform resource locator is matched with the second uniform resource locator, web page data corresponding to the login state information of the first account and the login state information of the target web page according to the login state information of the first account and a web address path of the target web page.
In order to ensure account security of a user, in the embodiment of the invention, after receiving a first uniform resource locator, a server analyzes the first uniform resource locator to obtain first verification information of the first uniform resource locator, and the verification module 26 compares the first verification information with second verification information cached by the server, where the second verification information is cached by the server when the server generates the second uniform resource locator.
Specifically, optionally, the parsing mode for parsing the first uniform resource locator needs to be determined according to the generating mode of the second uniform resource locator, for example, if the generating mode of the second uniform resource locator is generated according to the generating mode of fig. 3a, the server may parse according to the parsing mode of fig. 4 when parsing the first uniform resource locator.
The server divides each piece of information according to the bridge in the first uniform resource locator, and further decrypts each piece of information by referring to an encryption algorithm adopted for generating the second uniform resource locator. As shown in fig. 4, since the IP address and the MAC address are encrypted by the MD5, the MD5 encryption is an encryption scheme that cannot be decrypted, and therefore, only the IP address and the MAC address after the MD5 encryption need be parsed when the first uniform resource locator is parsed. Since the user cookie information and URL generation time are encrypted by SSL, SSL encryption is an encryption scheme that can be decrypted, it is necessary to parse the user cookie information and URL generation time when parsing the first uniform resource locator.
As shown in fig. 5, which is a schematic flow chart for verifying whether the first uniform resource locator is consistent with the second uniform resource locator according to the embodiment of the present invention, the server caches URL time, encrypted IP address and MAC address and user cookie information according to which the second uniform resource locator is generated, and compares URL time, encrypted IP address and MAC address obtained by parsing in the first uniform resource locator and information cached by the server, that is, compares information obtained by parsing in fig. 4 with information cached by the server.
As shown in fig. 5, which is a schematic diagram of matching by the server, the server compares the URL generation time in the cache (i.e., the generation time of the second uniform resource locator) with the URL generation time obtained by parsing from the first uniform resource locator.
The server compares the user cookie information in the cache with the user cookie information parsed from the first uniform resource locator.
Because the IP address and the MAC address are encrypted by using the MD5, the server compares the IP address and the MAC address encrypted by MD5 in the cache with the IP address and the MAC address encrypted by MD5 obtained by parsing from the first uniform resource locator.
If the comparison result of each comparison process in fig. 5 is consistent, it indicates that the first uniform resource locator is matched with the second uniform resource locator, that is, the first uniform resource locator is the second uniform resource locator pre-generated by the server.
If the first uniform resource locator is matched with the second uniform resource locator, the obtaining module 21 may obtain the web page data corresponding to the login state information of the first account (such as the user cookie information) and the web address path of the target web page according to the login state information of the first account. Such as personal information, collection information, etc. of the first account.
Preferably, in order to further ensure account security, the first uniform resource locator includes a generation time of the first uniform resource locator, and after the server receives the first uniform resource locator, the first uniform resource locator is verified to be completely matched with the second uniform resource locator. And further determining whether to acquire the webpage data corresponding to the login state information of the first account according to the generation time of the first uniform resource locator.
Optionally, the server calculates a time difference between the current time and the time of generating the first uniform resource locator, compares whether the time difference is smaller than or equal to a preset threshold, and if the time difference is smaller than or equal to the preset threshold, acquires webpage data corresponding to login state information of the first account. If the time difference is greater than a preset threshold, the user is required to log in again in the first browser.
In the embodiment of the invention, a server receives a webpage loading request for a target webpage sent by a first browser, wherein the webpage loading request comprises a first uniform resource locator, the first uniform resource locator comprises login state information of a first account, the login state information is the login state information of the target webpage loaded by a second browser by using the first account, webpage data corresponding to the target webpage and the login state information can be obtained according to the login state information and sent to the first browser for loading, and the mode can realize seamless transfer of the login state information of the account among different browsers and reduce login operation flow after the browser is switched.
Referring to fig. 10, a schematic structural diagram of a web page loading device is provided in an embodiment of the present invention. As shown in fig. 10, the web page loading apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1003, memory 1004, at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others. The memory 1004 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1004 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 10, an operating system, network communication modules, and data processing applications can be included in memory 1004, which is a type of computer storage medium.
In the web page loading apparatus 1000 shown in fig. 10, the network interface 1003 is mainly used for data communication with a browser; and the processor 1001 may be configured to invoke data processing applications stored in the memory 1004 and to specifically perform the following operations:
For example, a web page loading request for a target web page sent by a first browser is received, the web page loading request comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target web page and login state information of a first account, and the login state information is login state information of the target web page loaded by a second browser by using the first account;
acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage;
and sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser.
Optionally, before receiving the web page loading request of the first browser, the processor 1001 further performs the following operations:
receiving a webpage loading request for a target webpage sent by a second browser, wherein the webpage loading request carries a website path of the target webpage and login state information of a first account currently used by the second browser;
generating webpage data corresponding to the login state information of the first account and second uniform resource locators corresponding to the webpage data of the target webpage according to the login state information of the first account and the website path of the target webpage, wherein the second uniform resource locators comprise the website path of the target webpage and the login state information of the first account;
And sending the webpage data corresponding to the login state information of the target webpage and the first account to the second browser.
Optionally, the first uniform resource locator further includes first verification information, and the second uniform resource locator further includes second verification information; the processor 1001 further performs the following operations before acquiring, according to the login status information of the first account and the website path of the target webpage, the target webpage and the webpage data corresponding to the login status information of the first account:
verifying whether the first uniform resource locator matches the second uniform resource locator by comparing whether the first verification information and the second verification information are consistent;
and if the first uniform resource locator is matched with the second uniform resource locator, acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage.
Optionally, the second verification information includes at least one of the following information:
and the equipment identifier of the equipment where the second browser is located, the network identifier of the network where the second browser is located and the generation time of the second uniform resource locator.
Optionally, the second verification information is encrypted by secure socket layer SSL encryption and/or information digest algorithm MD 5.
Optionally, the first verification information includes a generation time of the first uniform resource locator;
the processor 1001 also performs the following operations:
if the first uniform resource locator is matched with the second uniform resource locator, calculating the time difference between the current time and the generation time of the first uniform resource locator;
judging whether the time difference is smaller than or equal to a preset threshold value;
and if the time difference is smaller than or equal to the preset threshold, acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (8)

1. A web page loading method, comprising:
receiving a webpage loading request for a target webpage sent by a second browser, wherein the webpage loading request for the target webpage sent by the second browser carries a website path of the target webpage and login state information of a first account currently used by the second browser; the website path is used for acquiring webpage data of the target webpage, and the login state information is used for acquiring webpage data related to the first account number in the target webpage;
generating webpage data corresponding to the login state information of the first account and second uniform resource locators corresponding to the webpage data of the target webpage according to the login state information of the first account and the website path of the target webpage, wherein the second uniform resource locators comprise the website path of the target webpage, the login state information of the first account and second verification information, and the second verification information comprises a network identifier of a network where the second browser is located;
The webpage data corresponding to the login state information of the target webpage and the first account number are sent to the second browser;
after a user copies and pastes the second uniform resource locator of the second browser from the second browser to a first browser, receiving a webpage loading request for a target webpage sent by the first browser, wherein the webpage loading request for the target webpage sent by the first browser comprises a first uniform resource locator, the first uniform resource locator comprises a website path of the target webpage, login state information of a first account number and first verification information, the login state information is login state information of the target webpage loaded by the second browser by using the first account number, and the first verification information comprises a network identifier of a network where the first browser is located;
verifying whether the first uniform resource locator matches the second uniform resource locator by comparing whether the first verification information and the second verification information are consistent;
if the first uniform resource locator is matched with the second uniform resource locator, acquiring webpage data corresponding to the login state information of the first account and the login state information of the target webpage according to the login state information of the first account and the website path of the target webpage;
The webpage data corresponding to the login state information of the target webpage and the first account are sent to the first browser; and the first browser loads and displays the webpage data corresponding to the login state information of the first account, and the second browser loads and displays the webpage data corresponding to the login state information of the first account.
2. The method of claim 1, wherein the second authentication information further comprises a generation time of the second uniform resource locator.
3. The method of claim 2, wherein the second authentication information is encrypted by secure socket layer SSL encryption and/or message digest algorithm MD 5.
4. The method of claim 1, wherein the first validation information further comprises a time of generation of the first uniform resource locator;
after the first uniform resource locator is matched with the second uniform resource locator, the method further comprises:
calculating a time difference between a current time and a time of generation of the first uniform resource locator;
judging whether the time difference is smaller than or equal to a preset threshold value;
And if the time difference is smaller than or equal to the preset threshold, acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage.
5. A web page loading device, comprising:
the second receiving module is used for receiving a webpage loading request for a target webpage sent by a second browser, wherein the webpage loading request for the target webpage sent by the second browser carries a website path of the target webpage and login state information of a first account currently used by the second browser; the website path is used for acquiring webpage data of the target webpage, and the login state information is used for acquiring webpage data related to the first account number in the target webpage;
the generation module is used for generating webpage data corresponding to the target webpage and the login state information of the first account and a second uniform resource locator corresponding to the webpage data according to the login state information of the first account and the website path of the target webpage, wherein the second uniform resource locator comprises the website path of the target webpage, the login state information of the first account and second verification information, and the second verification information comprises a network identifier of a network where the second browser is located;
The second sending module is used for sending the webpage data corresponding to the login state information of the target webpage and the first account and the second uniform resource locator to the second browser;
the first receiving module is configured to receive a web page loading request for a target web page sent by a first browser after a user copies and pastes the second uniform resource locator of the second browser from the second browser to the first browser, where the web page loading request for the target web page sent by the first browser includes a first uniform resource locator, and the first uniform resource locator includes a web address path of the target web page, login state information of a first account, and first verification information, where the login state information is login state information of loading the target web page by using the first account by the second browser, and the first verification information includes a network identifier of a network where the first browser is located;
the verification module is used for verifying whether the first uniform resource locator is matched with the second uniform resource locator by comparing whether the first verification information is consistent with the second verification information;
The acquisition module is further configured to acquire, if the first uniform resource locator is matched with the second uniform resource locator, web page data corresponding to the login state information of the first account and the login state information of the target web page according to the login state information of the first account and a web address path of the target web page;
the first sending module is used for sending the webpage data corresponding to the login state information of the target webpage and the first account to the first browser; and the first browser loads and displays the webpage data corresponding to the login state information of the first account, and the second browser loads and displays the webpage data corresponding to the login state information of the first account.
6. The apparatus of claim 5, wherein the second authentication information further comprises a generation time of the second uniform resource locator.
7. The apparatus of claim 6, wherein the second authentication information is encrypted by secure sockets layer SSL encryption and/or message digest algorithm MD 5.
8. The apparatus of claim 5, wherein the first authentication information further comprises a generation time of the first uniform resource locator;
The acquisition module is specifically configured to calculate a time difference between a current time and a generation time of the first uniform resource locator if the first uniform resource locator is matched with the second uniform resource locator; judging whether the time difference is smaller than or equal to a preset threshold value; and if the time difference is smaller than or equal to the preset threshold, acquiring webpage data corresponding to the login state information of the first account and the target webpage according to the login state information of the first account and the website path of the target webpage.
CN201710186488.5A 2017-03-24 2017-03-24 Webpage loading method and device Active CN107016074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710186488.5A CN107016074B (en) 2017-03-24 2017-03-24 Webpage loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710186488.5A CN107016074B (en) 2017-03-24 2017-03-24 Webpage loading method and device

Publications (2)

Publication Number Publication Date
CN107016074A CN107016074A (en) 2017-08-04
CN107016074B true CN107016074B (en) 2023-04-25

Family

ID=59446368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710186488.5A Active CN107016074B (en) 2017-03-24 2017-03-24 Webpage loading method and device

Country Status (1)

Country Link
CN (1) CN107016074B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107634904A (en) * 2017-11-07 2018-01-26 北京恒华伟业科技股份有限公司 A kind of instant messaging interaction method and system
CN108279970B (en) * 2017-12-28 2019-07-02 北京海泰方圆科技股份有限公司 The switching method and apparatus of browser kernel
CN108600157A (en) * 2018-03-08 2018-09-28 阿里巴巴集团控股有限公司 page loading method and device
CN109343971B (en) * 2018-08-20 2023-12-01 陕西合友网络科技有限公司 Browser data transmission method and device based on cache technology
CN111786932B (en) * 2019-04-04 2023-06-20 阿里巴巴集团控股有限公司 Account login method and device, electronic equipment and computer storage medium
CN112579998B (en) * 2019-09-30 2023-09-26 北京京东尚科信息技术有限公司 Webpage access method, management system and electronic equipment in information interaction platform
CN114448722B (en) * 2022-03-15 2023-01-10 太平金融科技服务(上海)有限公司深圳分公司 Cross-browser login method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060132496A (en) * 2005-06-17 2006-12-21 가부시키가이샤 엔티티 도코모 Communication apparatus and browser switching method
CN102664874A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and system for secure logging in

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682009B (en) * 2011-03-11 2017-02-15 腾讯科技(北京)有限公司 Method and system for logging in webpage
CN102682080B (en) * 2012-03-31 2015-04-29 北京奇虎科技有限公司 Cookie information sharing method and system
CN103716703A (en) * 2012-10-09 2014-04-09 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN103905497B (en) * 2012-12-27 2018-04-27 腾讯科技(深圳)有限公司 Realize the method, apparatus and application platform of third-party application business website log
CN103414745A (en) * 2013-07-05 2013-11-27 惠州Tcl移动通信有限公司 Mobile terminal cross-browser login method and device
CN104348612A (en) * 2013-07-23 2015-02-11 腾讯科技(深圳)有限公司 Third-party website login method based on mobile terminal and mobile terminal
CN104348893B (en) * 2013-08-09 2018-08-31 联想(北京)有限公司 A kind of method and device that data synchronize
CN104753855B (en) * 2013-12-25 2019-01-04 中国移动通信集团公司 Single-point logging method, applications client, browser, terminal and server
CN104270404B (en) * 2014-08-29 2018-09-04 小米科技有限责任公司 A kind of login method and device based on terminal iidentification
CN105530232B (en) * 2014-10-24 2020-06-16 腾讯科技(深圳)有限公司 Account login method and device
CN104407937B (en) * 2014-11-19 2018-07-03 北京奇虎科技有限公司 The method and browser of data are loaded in browser
CN106161356B (en) * 2015-04-01 2020-08-14 深圳市腾讯计算机系统有限公司 Method and system for rapidly logging in website through client
CN106330844B (en) * 2015-07-02 2020-08-04 阿里巴巴集团控股有限公司 Cross-terminal login-free method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060132496A (en) * 2005-06-17 2006-12-21 가부시키가이샤 엔티티 도코모 Communication apparatus and browser switching method
CN102664874A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and system for secure logging in

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任凤君 等.加强Web安全的主要对策.福建电脑.2002,(第06期),第15 页. *

Also Published As

Publication number Publication date
CN107016074A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107016074B (en) Webpage loading method and device
US11128621B2 (en) Method and apparatus for accessing website
JP4616352B2 (en) User confirmation apparatus, method and program
CN102811228B (en) Network login method, equipment and system
JP4964338B2 (en) User confirmation apparatus, method and program
CN107046544B (en) Method and device for identifying illegal access request to website
CN103051600A (en) File access control method and system
US11503072B2 (en) Identifying, reporting and mitigating unauthorized use of web code
CN103444215A (en) Methods and apparatuses for avoiding damage in network attacks
CN103095663B (en) Information interacting method between a kind of A non logged-on user and device
CN106549760A (en) Auth method and device based on cookie
CN114978637A (en) Message processing method and device
WO2007078037A1 (en) Web page protection method employing security appliance and set-top box having the security appliance built therein
CN109495458A (en) A kind of method, system and the associated component of data transmission
JP5456842B2 (en) User confirmation apparatus, method, and user authentication system
CN106470186B (en) A method of accessing third party's resource in a manner of jumping
WO2015023399A1 (en) Secure transfers of files within network-based storage
CN111541758A (en) Page updating method and device
CN116366256A (en) Ethernet intelligent contract vulnerability information security sharing system and method thereof
JP2013251000A (en) User verification device, method, and program
CN107612691A (en) Authentication information transmission method and device and user information authentication system
CN110020246A (en) A kind of the identification information generation method and relevant device of terminal
CN114616795B (en) Security mechanism for preventing retry or replay attacks
JP5216904B2 (en) User confirmation apparatus, method and program
JP4746709B2 (en) User confirmation apparatus, method and program

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