CN109359252B - Browser selection method and device - Google Patents

Browser selection method and device Download PDF

Info

Publication number
CN109359252B
CN109359252B CN201811280581.3A CN201811280581A CN109359252B CN 109359252 B CN109359252 B CN 109359252B CN 201811280581 A CN201811280581 A CN 201811280581A CN 109359252 B CN109359252 B CN 109359252B
Authority
CN
China
Prior art keywords
browser
authentication information
target
module
site
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
CN201811280581.3A
Other languages
Chinese (zh)
Other versions
CN109359252A (en
Inventor
孙永利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811280581.3A priority Critical patent/CN109359252B/en
Publication of CN109359252A publication Critical patent/CN109359252A/en
Application granted granted Critical
Publication of CN109359252B publication Critical patent/CN109359252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Abstract

The disclosure relates to a browser selection method and device. The method comprises the following steps: acquiring site information corresponding to a target Uniform Resource Locator (URL) address; acquiring a target browser storing authentication information corresponding to a site from a browser installed in a terminal device; sending a webpage access request instruction to a server through a target browser, wherein the webpage access request instruction comprises a target URL address and authentication information; after the server determines that the site has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment; receiving webpage data corresponding to a target URL address sent by a server; and displaying the webpage data corresponding to the target URL address through the target browser. The time for the user to check the webpage data corresponding to the target URL address is effectively saved, and the user is more humanized.

Description

Browser selection method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a browser selection method and apparatus.
Background
When a user wants to open a Uniform Resource Locator (URL) address to obtain corresponding web page data, the user selects a browser installed on the terminal device, the user is prompted to input a user name and a password corresponding to a website in a web page opened by the browser to realize secure login, the browser sends the user name and the password input by the user to a server, the server sends the web page data to the terminal device after detecting that the user name and the password are legal, and the browser displays the web page data to the user.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a browser selection method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a browser selection method, including:
acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
acquiring a target browser storing authentication information corresponding to the site from a browser installed in the terminal equipment;
sending a webpage access request instruction to a server through the target browser, wherein the webpage access request instruction comprises the target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
receiving webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through a target browser.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring site information corresponding to a target Uniform Resource Locator (URL) address; acquiring a target browser storing authentication information corresponding to a site from a browser installed in a terminal device; sending a webpage access request instruction to a server through a target browser, wherein the webpage access request instruction comprises a target URL address and authentication information; after the server determines that the site has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment; receiving webpage data corresponding to a target URL address sent by a server; and displaying the webpage data corresponding to the target URL address through the target browser. The target browser for storing the authentication information corresponding to the site can be acquired from all browsers installed in the terminal device based on the site information, and then the webpage data corresponding to the target URL address is browsed through the target browser, so that the authentication information does not need to be input again by a user, the time for the user to check the webpage data corresponding to the target URL address is effectively saved, and the user can be more humanized.
In an embodiment, the obtaining, from a browser installed in a terminal device, a target browser storing authentication information corresponding to the site includes:
acquiring a candidate browser storing authentication information corresponding to the site from a browser installed in the terminal device;
and when the authentication information stored in the candidate browser is detected to be valid authentication information, determining the candidate browser to be the target browser.
In one embodiment, the detecting that the authentication information stored in the candidate browser is valid authentication information includes:
acquiring the storage time of the authentication information in the candidate browser;
detecting whether the authentication information stored in the candidate browser is within the valid period or not according to the storage time;
and when the authentication information stored in the candidate browser is detected to be within the valid period according to the storage time, determining that the authentication information stored in the candidate browser is valid authentication information.
In one embodiment, the detecting that there are multiple target browsers, and the sending, by the target browser, a web page access request instruction to a server side includes:
selecting a target browser which is used most recently from a plurality of target browsers;
and sending a webpage access request instruction to the server side through the target browser which is used last time.
In one embodiment, the method further comprises:
outputting prompt information for prompting to input the authentication information corresponding to the site through a preset browser from all browsers installed in the terminal equipment without acquiring a target browser for storing the authentication information corresponding to the site;
when the authentication information corresponding to the received and input site is detected;
outputting prompt information which prompts whether the preset browser agrees to store the authentication information corresponding to the site or not;
after response information of the prompt information is received, authentication information corresponding to the site is stored;
sending the webpage access request instruction to the server through the preset browser;
receiving the webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through the preset browser.
According to a second aspect of the embodiments of the present disclosure, there is provided a browser selection apparatus, which is applied to a terminal device, and includes:
the first acquisition module is used for acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
the second acquisition module is used for acquiring a target browser which stores authentication information corresponding to the site from a browser installed in the terminal equipment;
the first sending module is used for sending a webpage access request instruction to a server through the target browser acquired by the second acquiring module, wherein the webpage access request instruction comprises the target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
the first receiving module is used for receiving the webpage data corresponding to the target URL address sent by the server;
and the first display module is used for displaying the webpage data corresponding to the target URL address received by the first receiving module through a target browser.
In one embodiment, the second obtaining module comprises: a first obtaining submodule and a first determining submodule;
the first obtaining submodule is used for obtaining a candidate browser which stores authentication information corresponding to the site from a browser installed in the terminal equipment;
the first determining sub-module is configured to determine that the candidate browser is the target browser when it is detected that the authentication information stored in the candidate browser acquired by the first acquiring sub-module is valid authentication information.
In one embodiment, the determining sub-module includes: the second acquisition submodule, the detection submodule and the second determination submodule;
the second obtaining sub-module is configured to obtain a storage time of the authentication information in the candidate browser;
the detection submodule is used for detecting whether the authentication information stored in the candidate browser is within the valid period according to the storage time acquired by the second acquisition submodule;
the second determining submodule is configured to determine that the authentication information stored in the candidate browser is valid authentication information when the detecting submodule detects that the authentication information stored in the candidate browser is within the valid period according to the storage time acquired by the second acquiring submodule.
In one embodiment, the detected target browsers are multiple, and the first sending module comprises: selecting a submodule and a second obtaining submodule;
the selection submodule is used for selecting a target browser which is used for the last time from the plurality of target browsers obtained by the second obtaining module;
and the second acquisition submodule is used for sending a webpage access request instruction to the server side through the target browser which is selected by the selection submodule and used for the last time.
In one embodiment, the apparatus further comprises: the device comprises a first output module, a second receiving module, a second output module, a storage module, a second sending module, a third receiving module and a second display module;
the first output module is used for outputting prompt information for prompting to input the authentication information corresponding to the site through a preset browser from all browsers installed in the terminal equipment, wherein the target browser which stores the authentication information corresponding to the site is not acquired;
the second receiving module is configured to detect that the input authentication information corresponding to the website is received;
the second output module is used for outputting prompt information, and the prompt information prompts whether the preset browser agrees to store the authentication information corresponding to the site;
the storage module is used for storing the authentication information corresponding to the website after receiving the response information of the prompt message;
the second sending module is configured to send the web page access request instruction to the server through the preset browser;
the third receiving module is configured to receive the web page data corresponding to the target URL address sent by the server;
and the second display module is used for displaying the webpage data corresponding to the target URL address received by the third receiving module through the preset browser.
According to a third aspect of the embodiments of the present disclosure, there is provided a browser selection apparatus, the apparatus being applied to a terminal device, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
acquiring a target browser storing authentication information corresponding to the site from a browser installed in the terminal equipment;
sending a webpage access request instruction to a server through the target browser, wherein the webpage access request instruction comprises the target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
receiving webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through a target browser.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any one of the first aspects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a browser selection method according to an example embodiment.
FIG. 2 is a flow diagram illustrating a browser selection method according to an example embodiment.
Fig. 3 is a block diagram illustrating a browser selection apparatus according to an example embodiment.
Fig. 4 is a block diagram illustrating a second acquisition module in a browser selection apparatus according to an example embodiment.
Fig. 5 is a block diagram illustrating a first determination submodule in a browser selection apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating a first sending module in a browser selection device according to an example embodiment.
Fig. 7 is a block diagram illustrating a browser selection apparatus according to an example embodiment.
Fig. 8 is a block diagram illustrating a selection apparatus 80 for a browser according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
A browser is a software that can display the contents of HyperText Markup Language (HTML) files (an application of standard universal Markup Language) of a web server or a file system and allow a user to interact with the files, and is used to display text, images and other information on the world wide web or a local area network. These characters or images can be hyperlinks connecting other websites, so that the user can browse various information quickly and easily, the common browsers can be QQ browsers, Google browsers and IE browsers, and the user can selectively install various browser software on the own terminal equipment.
At present, when a user wants to open a Uniform Resource Locator (URL) address to obtain corresponding web page data, the user is often required to select a certain browser software installed on the terminal device, input authentication information (for example, a user name and a password) of a corresponding website in the open web page, and implement secure login (for example, an order list on a tab website needs to be obtained).
When a user accesses a certain website for the first time, if the browser is selected to remember the authentication information, the browser stores the authentication information, and when the user logs in the website by using the browser for the next time, the browser can directly send the authentication information to an authentication server to finish the authentication of the user identity, so that the user is prevented from inputting the authentication information for accessing the website again. However, in an actual using process, if too many browsers are installed in the terminal device, the situation that the authentication information is not stored in the browser selected again by the user may occur, and the user may need to input the user name and the password again, which wastes time for the user to view the web page data, and thus the user experience is poor.
In order to solve the technical problem, the present disclosure provides a browser selection method and apparatus.
Fig. 1 is a flowchart illustrating a browser selection method according to an exemplary embodiment, which is applied to a terminal device, as shown in fig. 1, and includes the following steps S101 to S105:
in step S101, site information corresponding to the target uniform resource locator URL address is acquired.
When a user opens a target URL address, authentication information may need to be input, and in an implementation manner, the authentication information is authentication information of a site corresponding to the target URL address, and at this time, domain name information corresponding to the target URL address (for example, a pan domain name is https:// www.taobao.com, and other store URLs are all prefixed with the domain name) needs to be resolved and acquired, so that the site information that the user wants to access can be known.
For example: when a user wants to view a certain article sold by a shopping website, the webpage data corresponding to the webpage address that the user wants to open at the moment is actually the related information of the article, but when the user opens the webpage, the authentication information of the shopping website needs to be input.
For example, if the target URL address that the user wants to open is "https:// crowtaiseng.tmall.com", then when the user enters the target URL address in the browser, the browser will ask the user to enter authentication information for the site "https:// www.tmall.com/", i.e., authentication information for the user to log in a cat.
In step S102, a target browser storing authentication information corresponding to a site is acquired from the browsers installed in the terminal device.
If the user browses the webpage corresponding to the website through the browser in the terminal equipment for the first time, the browser stores the authentication information input by the user. When the user logs in other web pages corresponding to the site next time, the target browser for storing the authentication information corresponding to the site is obtained from all the browsers installed in the terminal equipment, and the problem that the browser selected by the user does not store the authentication information and needs to input the authentication information again or reselect the browser is solved.
In one implementation, since a Cookie is a small text file that is saved by a Web server on a user's browser (client), it may contain authentication information about the user. Then, when the user accesses a certain website for the first time, if the browser is selected to remember the authentication information, at this time, the website and the Cookie information corresponding to the website are generated at the browser end and stored in the terminal device of the user, and then, the target browser that acquires the authentication information corresponding to the stored site from all browsers installed in the terminal device includes: and acquiring the target browser for storing the authentication information corresponding to the site from the Cookie information corresponding to each browser.
In step S103, sending a web page access request instruction to the server through the target browser, where the web page access request instruction includes a target URL address and authentication information; and after determining that the site has the access right according to the authentication information, the server sends the webpage data corresponding to the target URL address to the terminal equipment.
When the target browser is selected, the web page is browsed through the target browser. Specifically, a web page access request instruction including a target URL address and authentication information may be transmitted to the server through the target browser without the user manually inputting the authentication information again. And after the server receives the target URL address and the authentication information, determining whether the current user has access authority to the site according to the authentication information, and after determining that the site has access authority according to the authentication information, sending webpage data corresponding to the target URL address to the terminal equipment.
For example, when the authentication information includes a user name and a password, the server detects whether the user name and the password match, and when the user name and the password match, determines that the current user has access right to the site.
In step S104, the web page data corresponding to the target URL address transmitted by the server is received.
In step S105, the web page data corresponding to the target URL address is displayed by the target browser.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring site information corresponding to a target Uniform Resource Locator (URL) address; acquiring a target browser storing authentication information corresponding to a site from a browser installed in a terminal device; sending a webpage access request instruction to a server through a target browser, wherein the webpage access request instruction comprises a target URL address and authentication information; after the server determines that the site has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment; receiving webpage data corresponding to a target URL address sent by a server; and displaying the webpage data corresponding to the target URL address through the target browser. The target browser for storing the authentication information corresponding to the site can be acquired from all browsers installed in the terminal device based on the site information, and then the webpage data corresponding to the target URL address is browsed through the target browser, so that the authentication information does not need to be input again by a user, the time for the user to check the webpage data corresponding to the target URL address is effectively saved, and the user can be more humanized.
In one embodiment, the above step S102 includes the following sub-steps A1-A2:
in a1, a candidate browser storing authentication information corresponding to a site is acquired from browsers installed in terminal devices.
In a2, when it is detected that the authentication information stored in the candidate browser is valid, the candidate browser is determined to be the target browser.
Since the authentication information is information for determining whether there is an access right to the site, that is, the authentication information is associated with security, it is necessary to detect whether the authentication information is valid authentication information before sending the web page access request instruction to the server side through the target browser, and only when it is detected that the authentication information stored in the target browser is valid authentication information, the web page access request instruction is sent to the server side through the target browser.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by detecting the validity of the authentication information stored in the target browser, the safety of accessing the webpage data corresponding to the target URL address is effectively improved.
In one embodiment, the step S102 further comprises the following sub-steps A3-A5:
in a3, when it is detected that the authentication information stored in all the candidate browsers is invalid, prompt information for prompting the input of the authentication information is output through the preset browser.
In a4, input authentication information is received.
In a5, a web page access request command is sent to the server side through a preset browser.
When the authentication information stored in the candidate browser is detected to be invalid authentication information, in order to improve the access security, the user is required to input the authentication information again, and then prompt information for prompting the user to input the authentication information is output to the user through the preset browser. When the user inputs the authentication information, a webpage access request instruction is sent to the server side through the preset browser.
In another implementation manner, after the user inputs the authentication information, the preset browser may store the authentication information on the premise of obtaining the user's consent. For example, after the preset browser sends the authentication information input by the user to the corresponding server side for verification, the server side can generate an authentication file from the authentication information of the current user, that is, Cookie information is returned to the browser side, and the browser only needs to store the Cookie information.
The preset browser may be a target browser or other browsers.
In one embodiment, the above-mentioned detecting that the authentication information saved in the candidate browser is valid includes the following sub-steps B1-B3:
in B1, the holding time of the authentication information in the candidate browser is acquired.
In B2, it is detected whether the authentication information stored in the candidate browser is within the valid period based on the storage time.
In B3, when it is detected that the authentication information stored in the candidate browser is within the valid period from the storage time, it is determined that the authentication information stored in the candidate browser is valid authentication information.
In order to determine the target browser, it is necessary to determine a candidate browser for which the stored authentication information is valid authentication information, and at this time, it may be determined whether the authentication information is valid authentication information according to the storage time.
For example, the above-mentioned storage time may be specifically stored for several days (for example, for 5 days), or may be a storage time point (for example, the authentication information stored for 9, 10, 2018).
For example: the validity period is 10 days, if the storage time for acquiring the authentication information in the candidate browser is 11 days, the authentication information stored in the candidate browser is determined to be invalid authentication information if the authentication information is not in the validity period; if the storage time for acquiring the authentication information in the candidate browser is 8 days, the authentication information stored in the candidate browser is determined to be valid authentication information within the valid period.
For example: the validity period is 10 days, the current time is 2018, 9, month and 22 days, if the storage time for acquiring the authentication information in the candidate browser is 2018, 9, month and 10 days, the authentication information stored in the candidate browser is determined to be invalid authentication information if the authentication information is not in the validity period; if the storage time of the authentication information in the acquired candidate browser is 2018, 9, 15, the authentication information stored in the candidate browser is determined to be valid authentication information within the valid period.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and detecting whether the authentication information stored in the candidate browser is within the valid period according to the storage time, so that the detection time delay can be reduced.
In one embodiment, when a plurality of target browsers are detected, the step S103 includes the following sub-steps C1-C2:
at C1, the target browser that was used most recently is selected from the plurality of target browsers.
At C2, a web page access request command is sent to the server side through the target browser that was used last.
After a plurality of target browsers are selected, the target browser used by the user most recently can be selected to send a webpage access request instruction to the server, and therefore user experience can be improved.
Of course, in practical applications, one target browser may be randomly selected to send the web page access request instruction to the server, or a default browser may be selected from a plurality of target browsers to send the web page access request instruction to the server.
In one embodiment, the above method further comprises the following sub-steps D1-D7:
in D1, a target browser that does not acquire the authentication information corresponding to the saved site from among all browsers installed in the terminal device outputs, through a preset browser, prompt information for prompting entry of the authentication information corresponding to the site.
At D2, authentication information corresponding to the station that received the input is detected.
At D3, a prompt message is output to indicate whether the authentication information corresponding to the site saved in the browser is approved or not.
At D4, when the response message to the prompt message is received, the authentication information corresponding to the station is stored.
In D5, a web page access request command is sent to the server through the preset browser.
At D6, the web page data corresponding to the target URL address transmitted by the server is received.
In D7, the web page data corresponding to the target URL address is displayed through the preset browser.
When a user does not browse the site through a browser in the terminal equipment, a target browser for storing authentication information corresponding to the site cannot be obtained from all browsers installed in the terminal equipment, at this time, prompt information for prompting the authentication information corresponding to the input site is output through the preset browser, after the user inputs the authentication information, the terminal equipment outputs prompt information for prompting whether the preset browser is allowed to store the authentication information corresponding to the site, when the user is allowed to store, the terminal equipment receives response information of the prompt information, after the response information of the prompt information is received, the authentication information corresponding to the site is stored, and meanwhile, a webpage access request instruction is sent to the server through the preset browser.
Fig. 2 is a flowchart illustrating a browser selection method applied to a terminal device according to an exemplary embodiment, where the method includes the following steps:
in S201, site information corresponding to the target uniform resource locator URL address is acquired.
In S202, a candidate browser storing authentication information corresponding to a site is acquired from the browsers installed in the terminal device.
In S203, the retention time of the authentication information in the candidate browser is acquired.
In S204, it is detected whether the authentication information stored in the candidate browser is within the valid period based on the storage time, and when it is detected that the authentication information stored in the candidate browser is within the valid period based on the storage time, steps S205 to S208 are performed, and when it is detected that the authentication information stored in all the candidate browsers is not within the valid period based on the storage time, steps S209 to S2015 are performed.
In S205, when it is detected that the authentication information stored in the candidate browser is within the valid period according to the storage time, it is determined that the authentication information stored in the candidate browser is valid authentication information, and when it is detected that the authentication information stored in the candidate browser is valid authentication information, it is determined that the candidate browser is the target browser.
In S206, a web page access request instruction is sent to the server through the target browser, where the web page access request instruction includes a target URL address and authentication information; and after determining that the site has the access right according to the authentication information, the server sends the webpage data corresponding to the target URL address to the terminal equipment.
In S207, the web page data corresponding to the target URL address transmitted by the server is received.
In S208, the web page data corresponding to the target URL address is displayed by the target browser.
In S209, prompt information for prompting input of authentication information is output through the preset browser.
In S2010, the input authentication information corresponding to the station is received.
In S2011, after receiving the input authentication information corresponding to the site, a prompt is output to prompt whether the browser agrees to store the authentication information corresponding to the site.
In S2012, after receiving the response message of the prompt message, the authentication information corresponding to the station is stored.
In S2013, a web access request instruction is sent to the server through the preset browser, where the web access request instruction includes a target URL address and authentication information; and after determining that the site has the access right according to the authentication information, the server sends the webpage data corresponding to the target URL address to the terminal equipment.
In S2014, the web page data corresponding to the target URL address sent by the server is received.
In S2015, the web page data corresponding to the target URL address is displayed by the preset browser.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 3 is a block diagram illustrating a browser selection apparatus, which may be implemented as part or all of a terminal device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 3, the browser selection means includes:
a first obtaining module 11, configured to obtain site information corresponding to a target uniform resource locator URL address;
a second obtaining module 12, configured to obtain, from a browser installed in a terminal device, a target browser in which authentication information corresponding to the site is stored;
a first sending module 13, configured to send a web access request instruction to a server through the target browser acquired by the second acquiring module 12, where the web access request instruction includes the target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
a first receiving module 14, configured to receive web page data corresponding to the target URL address sent by the server;
a first display module 15, configured to display, by using a target browser, the web page data corresponding to the target URL address received by the first receiving module 14.
In one embodiment, as shown in fig. 4, the second obtaining module 12 includes: a first obtaining sub-module 121 and a first determining sub-module 122;
the first obtaining sub-module 121 is configured to obtain, from a browser installed in the terminal device, a candidate browser in which authentication information corresponding to the site is stored;
the first determining sub-module 122 is configured to determine, when it is detected that the authentication information stored in the candidate browser acquired by the first acquiring sub-module 121 is valid authentication information, that the candidate browser is the target browser.
In one embodiment, as shown in FIG. 5, the first determination sub-module 122 includes: a second acquisition submodule 1221, a detection submodule 1222, and a second determination submodule 1223;
the second obtaining sub-module 1221 is configured to obtain a storage time of the authentication information in the candidate browser;
the detecting submodule 1222 is configured to detect whether the authentication information stored in the candidate browser is within the valid period according to the storage time acquired by the second acquiring submodule 1221;
the second determining submodule 1223 is configured to determine that the authentication information stored in the candidate browser is valid authentication information when the detecting submodule 1222 detects that the authentication information stored in the candidate browser is within the valid period according to the storage time acquired by the second acquiring submodule 1221.
In one embodiment, as shown in fig. 6, the detected target browsers are multiple, and the first sending module 13 includes: a selection submodule 133 and a second acquisition submodule 134;
the selecting submodule 133 is configured to select a target browser that is used most recently from the plurality of target browsers obtained by the second obtaining module 12;
the second obtaining sub-module 134 is configured to send a web page access request instruction to the server side through the target browser that is selected by the selecting sub-module 133 and used last time.
In one embodiment, as shown in fig. 7, the apparatus further comprises: a first output module 16, a second receiving module 17, a second output module 18, a saving module 19, a second sending module 110, a third receiving module 111 and a second display module 112;
the first output module 16 is configured to output, from all browsers installed in the terminal device, prompt information for prompting to input authentication information corresponding to the site through a preset browser, where the prompt information is not obtained from a target browser storing the authentication information corresponding to the site;
the second receiving module 17 is configured to detect that the input authentication information corresponding to the website is received;
the second output module 18 is configured to output a prompt message, where the prompt message prompts whether the preset browser agrees to store the authentication information corresponding to the site;
the storage module 19 is configured to store the authentication information corresponding to the website after receiving the response information of the prompt information;
the second sending module 110 is configured to send the web page access request instruction to the server through the preset browser;
the third receiving module 111 is configured to receive the web page data corresponding to the target URL address sent by the server;
the second display module 112 is configured to display, through the preset browser, the webpage data corresponding to the target URL address received by the third receiving module 111.
According to a third aspect of the embodiments of the present disclosure, there is provided a browser selection apparatus, applied to a terminal device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
acquiring a target browser storing authentication information corresponding to the site from a browser installed in the terminal equipment;
sending a webpage access request instruction to a server through the target browser, wherein the webpage access request instruction comprises the target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
receiving webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through a target browser.
The processor may be further configured to:
the acquiring, from a browser installed in the terminal device, a target browser in which authentication information corresponding to the site is stored includes:
acquiring a candidate browser storing authentication information corresponding to the site from a browser installed in the terminal device;
and when the authentication information stored in the candidate browser is detected to be valid authentication information, determining the candidate browser to be the target browser.
In one embodiment, the detecting that the authentication information stored in the candidate browser is valid authentication information includes:
acquiring the storage time of the authentication information in the candidate browser;
detecting whether the authentication information stored in the candidate browser is within the valid period or not according to the storage time;
and when the authentication information stored in the candidate browser is detected to be within the valid period according to the storage time, determining that the authentication information stored in the candidate browser is valid authentication information.
In one embodiment, the detecting that there are multiple target browsers, and the sending, by the target browser, a web page access request instruction to a server side includes:
selecting a target browser which is used most recently from a plurality of target browsers;
and sending a webpage access request instruction to the server side through the target browser which is used last time.
In one embodiment, the method further comprises:
outputting prompt information for prompting to input the authentication information corresponding to the site through a preset browser from all browsers installed in the terminal equipment without acquiring a target browser for storing the authentication information corresponding to the site;
when the authentication information corresponding to the received and input site is detected;
outputting prompt information which prompts whether the preset browser agrees to store the authentication information corresponding to the site or not;
after response information of the prompt information is received, authentication information corresponding to the site is stored;
sending the webpage access request instruction to the server through the preset browser;
receiving the webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through the preset browser.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a browser selection apparatus 80, which is suitable for a terminal device, according to an exemplary embodiment. For example, the apparatus 80 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 80 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 80, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 80. Examples of such data include instructions for any application or method operating on the device 80, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the device 80. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 80.
The multimedia component 808 includes a screen that provides an output interface between the device 80 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 80 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 80 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 80. For example, the sensor assembly 814 may detect the open/closed status of the device 80, the relative positioning of the components, such as a display and keypad of the device 80, the change in position of the device 80 or a component of the device 80, the presence or absence of user contact with the device 80, the orientation or acceleration/deceleration of the device 80, and the change in temperature of the device 80. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 80 and other devices. The device 80 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 80 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 80 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 80, enable the apparatus 80 to perform the browser selection method described above, the method comprising:
acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
acquiring a target browser storing authentication information corresponding to the site from a browser installed in the terminal equipment;
sending a webpage access request instruction to a server through the target browser, wherein the webpage access request instruction comprises the target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
receiving webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through a target browser.
The acquiring, from a browser installed in the terminal device, a target browser in which authentication information corresponding to the site is stored includes:
acquiring a candidate browser storing authentication information corresponding to the site from a browser installed in the terminal device;
and when the authentication information stored in the candidate browser is detected to be valid authentication information, determining the candidate browser to be the target browser.
In one embodiment, the detecting that the authentication information stored in the candidate browser is valid authentication information includes:
acquiring the storage time of the authentication information in the candidate browser;
detecting whether the authentication information stored in the candidate browser is within the valid period or not according to the storage time;
and when the authentication information stored in the candidate browser is detected to be within the valid period according to the storage time, determining that the authentication information stored in the candidate browser is valid authentication information.
In one embodiment, the detecting that there are multiple target browsers, and the sending, by the target browser, a web page access request instruction to a server side includes:
selecting a target browser which is used most recently from a plurality of target browsers;
and sending a webpage access request instruction to the server side through the target browser which is used last time.
In one embodiment, the method further comprises:
outputting prompt information for prompting to input the authentication information corresponding to the site through a preset browser from all browsers installed in the terminal equipment without acquiring a target browser for storing the authentication information corresponding to the site;
when the authentication information corresponding to the received and input site is detected;
outputting prompt information which prompts whether the preset browser agrees to store the authentication information corresponding to the site or not;
after response information of the prompt information is received, authentication information corresponding to the site is stored;
sending the webpage access request instruction to the server through the preset browser;
receiving the webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through the preset browser.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A browser selection method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
acquiring a target browser storing authentication information corresponding to the site from a browser installed in a terminal device, including: acquiring a candidate browser storing authentication information corresponding to the site from a browser installed in the terminal device; acquiring the storage time of the authentication information in the candidate browser; detecting whether the authentication information stored in the candidate browser is within the valid period or not according to the storage time; when the authentication information stored in the candidate browser is detected to be within the valid period according to the storage time, determining that the authentication information stored in the candidate browser is valid authentication information, and determining that the candidate browser is the target browser at the moment;
sending a webpage access request instruction to a server through the target browser, wherein the webpage access request instruction comprises a target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
receiving webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through a target browser.
2. The method according to claim 1, wherein a plurality of target browsers are detected, and the sending of the web page access request instruction to the server side through the target browsers comprises:
selecting a target browser which is used most recently from a plurality of target browsers;
and sending a webpage access request instruction to the server side through the target browser which is used last time.
3. The method of claim 1, further comprising:
outputting prompt information for prompting to input the authentication information corresponding to the site through a preset browser from all browsers installed in the terminal equipment without acquiring a target browser for storing the authentication information corresponding to the site;
when the authentication information corresponding to the received and input site is detected;
outputting prompt information which prompts whether the preset browser agrees to store the authentication information corresponding to the site or not;
after response information of the prompt information is received, authentication information corresponding to the site is stored;
sending the webpage access request instruction to the server through the preset browser;
receiving the webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through the preset browser.
4. A browser selection device, which is applied to a terminal device, is characterized in that the device comprises:
the first acquisition module is used for acquiring site information corresponding to a target Uniform Resource Locator (URL) address, and the second acquisition module comprises: a first obtaining submodule and a first determining submodule; the first obtaining submodule is used for obtaining a candidate browser which stores authentication information corresponding to the site from a browser installed in the terminal equipment; the first determining sub-module is configured to determine, when it is detected that the authentication information stored in the candidate browser acquired by the first acquiring sub-module is valid authentication information, that the candidate browser is a target browser; the first determination submodule includes: the second acquisition submodule, the detection submodule and the second determination submodule; the second obtaining sub-module is configured to obtain a storage time of the authentication information in the candidate browser; the detection submodule is used for detecting whether the authentication information stored in the candidate browser is within the valid period according to the storage time acquired by the second acquisition submodule; the second determining sub-module is configured to determine that the authentication information stored in the candidate browser is valid authentication information when the detecting sub-module detects that the authentication information stored in the candidate browser is within the validity period according to the storage time acquired by the second acquiring sub-module;
the second acquisition module is used for acquiring a target browser which stores authentication information corresponding to the site from a browser installed in the terminal equipment;
the first sending module is used for sending a webpage access request instruction to a server through the target browser acquired by the second acquiring module, wherein the webpage access request instruction comprises a target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
the first receiving module is used for receiving the webpage data corresponding to the target URL address sent by the server;
and the first display module is used for displaying the webpage data corresponding to the target URL address received by the first receiving module through a target browser.
5. The apparatus of claim 4, wherein the detected target browsers are multiple, and wherein the first sending module comprises: selecting a submodule and a second obtaining submodule;
the selection submodule is used for selecting a target browser which is used for the last time from the plurality of target browsers obtained by the second obtaining module;
and the second acquisition submodule is used for sending a webpage access request instruction to the server side through the target browser which is selected by the selection submodule and used for the last time.
6. The apparatus of claim 4, further comprising: the device comprises a first output module, a second receiving module, a second output module, a storage module, a second sending module, a third receiving module and a second display module;
the first output module is used for outputting prompt information for prompting to input the authentication information corresponding to the site through a preset browser from all browsers installed in the terminal equipment, wherein the target browser which stores the authentication information corresponding to the site is not acquired;
the second receiving module is configured to detect that the input authentication information corresponding to the website is received;
the second output module is used for outputting prompt information, and the prompt information prompts whether the preset browser agrees to store the authentication information corresponding to the site;
the storage module is used for storing the authentication information corresponding to the website after receiving the response information of the prompt message;
the second sending module is configured to send the web page access request instruction to the server through the preset browser;
the third receiving module is configured to receive the web page data corresponding to the target URL address sent by the server;
and the second display module is used for displaying the webpage data corresponding to the target URL address received by the third receiving module through the preset browser.
7. A browser selection device, which is applied to a terminal device, is characterized in that the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring site information corresponding to a target Uniform Resource Locator (URL) address;
acquiring a target browser storing authentication information corresponding to the site from a browser installed in a terminal device, including: acquiring a candidate browser storing authentication information corresponding to the site from a browser installed in the terminal device; acquiring the storage time of the authentication information in the candidate browser; detecting whether the authentication information stored in the candidate browser is within the valid period or not according to the storage time; when the authentication information stored in the candidate browser is detected to be within the valid period according to the storage time, determining that the authentication information stored in the candidate browser is valid authentication information, and determining that the candidate browser is the target browser at the moment;
sending a webpage access request instruction to a server through the target browser, wherein the webpage access request instruction comprises a target URL address and the authentication information; after determining that the website has access authority according to the authentication information, the server sends webpage data corresponding to the target URL address to the terminal equipment;
receiving webpage data corresponding to the target URL address sent by the server;
and displaying the webpage data corresponding to the target URL address through a target browser.
8. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, carry out the steps of the method according to any one of claims 1 to 3.
CN201811280581.3A 2018-10-30 2018-10-30 Browser selection method and device Active CN109359252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811280581.3A CN109359252B (en) 2018-10-30 2018-10-30 Browser selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811280581.3A CN109359252B (en) 2018-10-30 2018-10-30 Browser selection method and device

Publications (2)

Publication Number Publication Date
CN109359252A CN109359252A (en) 2019-02-19
CN109359252B true CN109359252B (en) 2021-11-30

Family

ID=65347250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811280581.3A Active CN109359252B (en) 2018-10-30 2018-10-30 Browser selection method and device

Country Status (1)

Country Link
CN (1) CN109359252B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770161B (en) * 2020-06-28 2022-06-07 北京百度网讯科技有限公司 https sniffing jump method and device
CN115189967A (en) * 2022-09-07 2022-10-14 杭州海康威视数字技术股份有限公司 Access control method, device, electronic equipment and machine-readable storage medium

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1444591A4 (en) * 2001-11-01 2007-06-06 Yahoo Inc Method and system of facilitating automatic login to a web site using an internet browser
US7360096B2 (en) * 2002-11-20 2008-04-15 Microsoft Corporation Securely processing client credentials used for Web-based access to resources
CN101027676B (en) * 2004-08-24 2011-10-05 艾斯奥托公司 A personal token and a method for controlled authentication
CN102469075A (en) * 2010-11-09 2012-05-23 中科正阳信息安全技术有限公司 Integration authentication method based on WEB single sign on
CN102469080B (en) * 2010-11-11 2015-07-15 中国电信股份有限公司 Method for pass user to realize safety login application client and system thereof
CN102655494B (en) * 2011-03-01 2017-04-12 瑞典爱立信有限公司 SAML (Security Assertion Markup Language)-based authentication platform designed in single log-in mode
EP2702745B1 (en) * 2011-04-28 2015-04-08 Interdigital Patent Holdings, Inc. Sso framework for multiple sso technologies
CN102325183A (en) * 2011-09-09 2012-01-18 深圳市络道科技有限公司 WEB terminal login method based on single site login mode and system thereof
CN102404392A (en) * 2011-11-10 2012-04-04 山东浪潮齐鲁软件产业股份有限公司 Integration type registering method for web application or website
CN102968492B (en) * 2012-11-27 2018-07-27 北京奇虎科技有限公司 Data-sharing systems and method between browser
CN103036993B (en) * 2012-12-18 2015-11-25 北京奇虎科技有限公司 Realize browser client and the method for website log
US9027085B2 (en) * 2012-12-22 2015-05-05 John Scott Kula Method, system and program product for secure authentication
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system
US9112827B2 (en) * 2013-03-15 2015-08-18 Amazon Technologies, Inc. Determining appropriate browsing applications for selected network resources
CN106961420B (en) * 2013-11-08 2021-04-02 北京奇虎科技有限公司 Cookie information processing method and device
CN103631942A (en) * 2013-12-10 2014-03-12 贝壳网际(北京)安全技术有限公司 Method and device for accessing webpage and browser
CN104270404B (en) * 2014-08-29 2018-09-04 小米科技有限责任公司 A kind of login method and device based on terminal iidentification
CN104361067B (en) * 2014-11-05 2018-07-20 百纳(武汉)信息技术有限公司 A kind of intelligent loading method and system of browsing device net page information
CN106685973B (en) * 2016-12-30 2019-09-20 东软集团股份有限公司 Remember method and device, log-in control method and the device of log-on message

Also Published As

Publication number Publication date
CN109359252A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
RU2649777C2 (en) Bank transfer processing method and device
CN105912693B (en) Network request processing method, network data acquisition method, network request processing device and network data acquisition device, and server
CN106170004B (en) Method and device for processing verification code
CN105511949B (en) Verification code filling method and device and mobile terminal
CN109600303B (en) Content sharing method and device and storage medium
US11004163B2 (en) Terminal-implemented method, server-implemented method and terminal for acquiring certification document
KR101852244B1 (en) Recommendation information acquisition method, terminal, server, program, and recording medium
US11122109B2 (en) Method for sharing information, electronic device and non-transitory storage medium
CN117390330A (en) Webpage access method and device
CN106603528B (en) The method and device of webpage calling terminal local function
US11099916B2 (en) Method and device for presenting information on terminal
CN109359252B (en) Browser selection method and device
CN107423146B (en) Method, device and system for controlling mutual calling of application programs
CN109246094B (en) User terminal verification method, device and storage medium
EP3145152A1 (en) Short message service reading method and device
WO2017166297A1 (en) Wifi hotpot portal authentication method and device
CN107179837B (en) Input method and device
CN111782997A (en) Method and device for loading webpage and storage medium
CN111526129A (en) Information reporting method and device
CN107070816B (en) Application identification method and device and mobile terminal
CN111859208A (en) Display method, display device and storage medium
CN107241439B (en) Message pushing method and device for H5 page
CN105868354B (en) Webpage repairing method and device
CN107179866B (en) Application control method, device and storage medium
CN106712960B (en) Processing method and device of verification code information

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