CN107766358B - Page sharing method and related device - Google Patents

Page sharing method and related device Download PDF

Info

Publication number
CN107766358B
CN107766358B CN201610682387.2A CN201610682387A CN107766358B CN 107766358 B CN107766358 B CN 107766358B CN 201610682387 A CN201610682387 A CN 201610682387A CN 107766358 B CN107766358 B CN 107766358B
Authority
CN
China
Prior art keywords
page
sharing
shared
page address
target
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
CN201610682387.2A
Other languages
Chinese (zh)
Other versions
CN107766358A (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 CN201610682387.2A priority Critical patent/CN107766358B/en
Publication of CN107766358A publication Critical patent/CN107766358A/en
Application granted granted Critical
Publication of CN107766358B publication Critical patent/CN107766358B/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • G06F21/6254Protecting personal data, e.g. for financial or medical purposes by anonymising data, e.g. decorrelating personal data from the owner's identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • G06F21/6263Protecting personal data, e.g. for financial or medical purposes during internet communication, e.g. revealing personal data from cookies

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Medical Informatics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a page sharing method, which comprises the following steps: receiving a page sharing request, wherein the page sharing request carries a page address to be shared; judging whether the page address to be shared contains preset sensitive parameters or not, if so, processing the preset sensitive parameters in the page address to be shared; determining a target sharing page address according to the processed preset sensitive parameters, wherein the target sharing page address does not contain login information of a sharing party; and sharing the target sharing page address to a target mobile terminal. The invention further provides a page sharing device and a mobile terminal. According to the embodiment of the invention, the user login information existing in the address of the page to be shared can be processed, so that the finally sent target shared page address does not include the user login information, thereby preventing a receiver from browsing or tampering the user login information of the sharing party, and improving the safety and reliability of the shared page address.

Description

Page sharing method and related device
Technical Field
The invention relates to the technical field of internet, in particular to a page sharing method and a related device.
Background
With the continuous development of the information-oriented society, the situation of sharing information among users is more and more. Often, a user accesses a website and browses various webpages by using a browser, and when browsing a certain webpage, the user can communicate by sharing the content of the webpage with other users.
At present, when a sharing party needs to share a certain page, a sharing channel is called first, the sharing channel is usually a third-party platform, such as an instant messaging application, and then an address of the page is shared through the sharing channel, the address of the page is usually a Uniform Resource Locator (english full name: Uniform Resource Locator, abbreviated as english: URL), and the receiver can share the page content shared by the sharing party only by opening the address of the shared page.
However, if the page content shared by the sharing party carries the user login state parameter, the receiving party may log in the account of the sharing party by using the user login state parameter without invalidation of the user login state parameter, and thus, the receiving party may browse the privacy information of the sharing party and may also tamper with the login information of the sharing party, which causes great potential safety hazard to the information of the sharing party.
Disclosure of Invention
The embodiment of the invention provides a page sharing method and a related device, which can process user login information existing in a page address to be shared, so that the finally sent target shared page address does not comprise the user login information, thereby preventing a receiver from browsing or tampering the user login information of the sharing party, and improving the safety and reliability of the shared page address.
In view of this, a first aspect of the present invention provides a page sharing method, including:
receiving a page sharing request, wherein the page sharing request carries a page address to be shared;
judging whether the page address to be shared contains preset sensitive parameters or not, if so, processing the preset sensitive parameters in the page address to be shared;
determining a target sharing page address according to the processed preset sensitive parameters, wherein the target sharing page address does not contain login information of a sharing party;
and sharing the target sharing page address to a target mobile terminal.
The second aspect of the present invention provides a page sharing method, including:
receiving a target shared page address, wherein the target shared page address does not contain login information of a sharing party, and is obtained after processing of preset sensitive parameters;
judging whether the target shared page address contains a verification parameter, and if so, identifying the source of the target shared page address;
and if the source of the target shared page address is the page sharing device, receiving a user login request.
A third aspect of the present invention provides a page sharing apparatus, including:
the device comprises a receiving module, a sharing module and a processing module, wherein the receiving module is used for receiving a page sharing request, and the page sharing request carries a page address to be shared;
the processing module is used for judging whether the page address to be shared received by the receiving module contains preset sensitive parameters or not, and if yes, processing the preset sensitive parameters in the page address to be shared;
the determining module is used for determining a target sharing page address according to the preset sensitive parameters processed by the processing module, wherein the target sharing page address does not contain login information of a sharing party;
and the sharing module is used for sharing the target sharing page address determined by the determining module to a target mobile terminal.
A fourth aspect of the present invention provides a mobile terminal, comprising:
the first receiving module is used for receiving a target shared page address, the target shared page address does not contain login information of a sharer, and the target shared page address is obtained after processing of preset sensitive parameters;
the identification module is used for judging whether the target shared page address received by the first receiving module contains a verification parameter, and if so, identifying the source of the target shared page address;
and the second receiving module is used for receiving a user login request if the source of the target shared page address identified by the identification module is the page sharing device.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a page sharing method, which includes the steps that a page sharing device firstly receives a page sharing request, the page sharing request carries a page address to be shared, then whether the page address to be shared contains preset sensitive parameters or not is judged, if the page address to be shared contains the preset sensitive parameters, the preset sensitive parameters in the page address to be shared need to be processed, a target shared page address is determined according to the processed preset sensitive parameters, the target shared page address does not contain login information of a sharing party, and finally the page sharing device sends the target shared page address to a target mobile terminal. By the method, the user login information existing in the page address to be shared can be processed, so that the target shared page address sent finally does not include the user login information, a receiver is prevented from browsing or tampering the user login information of the sharing party, and the safety and reliability of the shared page address are improved.
Drawings
FIG. 1 is a diagram illustrating a page sharing system architecture according to an embodiment of the present invention;
FIG. 2 is a diagram of an interaction embodiment of a page sharing method according to an embodiment of the present invention;
FIG. 3 is a diagram of a page sharing method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating sharing a page using a generic interface according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating page changes during refresh of a web page address in an application scenario of the present invention;
FIG. 6 is a diagram of another embodiment of a page sharing method according to an embodiment of the present invention;
FIG. 7 is a diagram of a page sharing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of another embodiment of a page sharing device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of another embodiment of a page sharing device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of another embodiment of a page sharing device according to the embodiment of the present invention;
fig. 11 is a schematic diagram of another embodiment of the page sharing device according to the embodiment of the present invention;
fig. 12 is a schematic diagram of another embodiment of a page sharing device according to an embodiment of the present invention;
fig. 13 is a schematic diagram of another embodiment of the page sharing device according to the embodiment of the present invention;
FIG. 14 is a diagram of an embodiment of a mobile terminal according to the present invention;
fig. 15 is a schematic diagram of another embodiment of the mobile terminal according to the embodiment of the present invention;
FIG. 16 is a schematic structural diagram of a page sharing apparatus according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of a mobile terminal in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a page sharing method and a related device, which can process user login information existing in a page address to be shared, so that the finally sent target shared page address does not comprise the user login information, thereby preventing a receiver from browsing or tampering the user login information of the sharing party, and improving the safety and reliability of the shared page address.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, the present invention is applied to a page sharing system, please refer to fig. 1, and fig. 1 is an architecture diagram of the page sharing system according to an embodiment of the present invention, as shown in fig. 1, the diagram includes a page sharing device, a server and a mobile terminal, where one mobile terminal in the diagram is only one schematic diagram, and in practical application, there may be a plurality of mobile terminals, so this time is not limited.
The user browses the webpage through the browser installed in the page sharing device, and when the user looks at the webpage which the user wants to share, the user can transmit the website of the webpage to other users through the sharing function in the browser. The user of the sharing party may be a developer, for example, a technician or a development company, the user of the receiving party may be a common user, the users receive the website through an instant messaging application installed on the mobile terminal, and the server forwards the website sent by the page sharing device to the mobile terminal used by another user.
The browser installed in the page sharing device is a software that can display the contents of hypertext Markup Language (HTML) files of a web server or a file system, and enable a user to interact with the files. Browsers are used to display text, images and other information within the world wide web, local area network, or the like. These words or images can be hyperlinks to other web sites, and the user can browse various information quickly and easily.
In addition, many browsers also support other URL types and their corresponding protocols, such as File Transfer Protocol (FTP), information lookup system (Gopher Protocol), and encrypted versions of Hypertext Transfer Protocol (HTTP). The HTTP content type and URL protocol specifications allow web page designers to embed images, animations, video, sound, and streaming media, etc. in web pages.
It should be noted that the page sharing device and the mobile terminal may be a smart phone, a Personal Computer (PC), a tablet PC, or a Personal Digital Assistant (PDA), and the disclosure is made by taking a smart phone as an example, but should not be construed as a limitation to the present invention.
For easy understanding, please refer to fig. 2, where fig. 2 is a schematic diagram of an interactive embodiment of a page sharing method according to an embodiment of the present invention, and as shown in the figure, the schematic diagram specifically includes:
in step 101, a developer needs to recommend a certain page to other users at present, and then the developer sends a page address to be analyzed corresponding to the page to a page sharing device, so that the page sharing device obtains the page address to be analyzed;
in step 102, the page sharing device detects whether privacy information, namely sensitive parameters, of a developer exists in the page to be shared according to the received page address to be shared, if the sensitive parameters are included, the sensitive parameters need to be deleted from the page to be shared, and a target shared page address is obtained;
in step 103, the page sharing device sends the target shared page address to a server, where the server may be a server of an instant messaging application;
in step 104, the server sends the target shared page address to the receiver through the corresponding instant messaging application program, wherein the instant messaging application program is installed on the mobile terminal used by the receiver.
Referring to fig. 3, a method for page sharing according to the present invention will be described below from the perspective of a page sharing device, where an embodiment of the method for page sharing according to the present invention includes:
201. receiving a page sharing request, wherein the page sharing request carries a page address to be shared;
in this embodiment, the page sharing device receives a page sharing request sent by a user, where the user may be a developer, and may be a single user or a group of developers formed by multiple users. The page sharing request carries the address of the page to be shared, the representation form of the address of the page to be shared can be a URL, and the URL is a simple representation of the position and the access method of the resource which can be obtained from the Internet and is the address of the standard resource on the Internet.
The basic URL contains the schema, server name, path and file name, e.g., "protocol:// authorization/path? Query ". A URL that is complete and with an authorization portion may be, from a grammatical point of view, "protocol:// username: password @ sub-domain name. Parameter # flag ".
202. Judging whether the page address to be shared contains preset sensitive parameters, if so, processing the preset sensitive parameters in the page address to be shared;
in this embodiment, the page sharing device further parses the page sharing request, obtains the address of the page to be shared, and then determines whether the address of the page to be shared includes the preset sensitive parameter.
The preset sensitive parameters are parameters which are predefined by a developer and relate to user privacy information, such as a user name, a password, an Internet Protocol (IP) address and the like, and the parameters may relate to the user privacy. Specifically, the format of the preset sensitive parameter may be username time, password 123321, or ipaddress 383.18.558, where the following characters are only one schematic and should not be construed as a limitation to the present solution.
If the page address to be shared contains the preset sensitive parameters, the preset sensitive parameters contained in the page address to be shared need to be processed.
203. Determining a target sharing page address according to the processed preset sensitive parameters, wherein the target sharing page address does not contain login information of a sharing party;
in this embodiment, the page sharing device determines and acquires a target sharing page address according to the processed preset sensitive parameter, where the target sharing page address is also a URL and does not contain any sharing party login information.
Specifically, the preset sensitive parameter includes the sharer login information, and according to the format of the preset sensitive parameter introduced in step 202, the sharer login information is the information after "═ in the format, for example, tim or mima123321 or 383.18.558.
204. And sharing the target sharing page address to the target mobile terminal.
In this embodiment, the page sharing device shares the target shared page address to the target mobile terminal through the server. The server is a background server of an instant messaging application program in the target movement, namely, the address of the target sharing page is displayed on an interface of the instant messaging application program on the target mobile terminal, so that other users can conveniently click and view the page.
It should be noted that, step 202 may be performed when the page sharing apparatus loads the page, or may be performed after the page is completely loaded, which is not limited herein.
The embodiment of the invention provides a page sharing method, which includes the steps that a page sharing device firstly receives a page sharing request, the page sharing request carries a page address to be shared, then whether the page address to be shared contains preset sensitive parameters or not is judged, if the page address to be shared contains the preset sensitive parameters, the preset sensitive parameters in the page address to be shared need to be processed, a target shared page address is determined according to the processed preset sensitive parameters, the target shared page address does not contain login information of a sharing party, and finally the page sharing device sends the target shared page address to a target mobile terminal. By the method, the user login information existing in the page address to be shared can be processed, so that the target shared page address sent finally does not include the user login information, a receiver is prevented from browsing or tampering the user login information of the sharing party, and the safety and reliability of the shared page address are improved.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a first optional embodiment of the page sharing method provided in the embodiment of the present invention, before determining whether the preset sensitive parameter exists in the address of the page to be shared, the method may further include:
acquiring address information in the address of the page to be shared according to the first separator;
acquiring at least one page parameter from the address information according to the second separator;
judging whether the address of the page to be shared contains preset sensitive parameters may include:
and comparing whether at least one page parameter is consistent with a preset sensitive parameter, and if so, determining that the page address to be shared contains the preset sensitive parameter.
In this embodiment, before sharing the URL of the current page, it is necessary to determine the sensitive parameters in the URL, that is, determine whether there are preset sensitive parameters, where the preset sensitive parameters may also be referred to as preset login state parameters, and the login state refers to a user representation and a session token returned after the user successfully logs in, and the user identifier and the session token may be used to access the relevant resource data information stored in the server by the user.
Specifically, in order to determine whether the page address to be shared contains the preset sensitive parameter, the following process may be performed, assuming that the URL of the page address to be shared is "http:// gate.test.com/indexxopen ═ 2a2 dead & access _ token ═ 3897dacb & ver ═ 2& ch ═ 00000", first, address information in the page address to be shared is obtained according to a first delimiter, where the first delimiter is a character string "? ", as in the above-mentioned URL, the end portion of the URL is truncated from the 26 th position starting from the 0 index bit, and the address information is obtained, i.e.," wxopenid ═ 2a2 dead & access _ token ═ 3897dacb & ver ═ 2& ch ═ 00000 ".
And acquiring at least one page parameter from the address information according to a second delimiter, wherein the second delimiter is a character string "&", and in the acquired address information, the second delimiter is adopted to split the address information into the following array list results:
wxopenid=2a2fadef
access_token=3897dacb
ver=2
ch=00000
so far, four page parameters are obtained, and it is assumed that the preset sensitive parameters are "wxopenid ═ xxx" and "access _ token ═ yyy", it should be noted that "xxx" and "yyy" are both an illustration, and other characters may also be used in practical application, which is not limited here.
And then, comparing the four page parameters with preset sensitive parameters one by one to find out whether the page parameters with the consistent preset sensitive parameter format exist, and if so, determining that the page address to be shared contains the preset sensitive parameters.
Secondly, in the embodiment of the present invention, before determining whether the preset sensitive parameters exist in the page address to be shared, the page sharing device further needs to process the page address to be shared. The method comprises the steps of firstly adopting a first separator to obtain address information in a page address to be shared, then adopting a second separator to obtain at least one page parameter from the address information, finally comparing whether the at least one page parameter is consistent with a preset sensitive parameter, and if so, determining that the page address to be shared contains the preset sensitive parameter. By the method, the page sharing device can determine the page parameters more quickly when detecting whether the page address to be shared contains the preset sensitive parameters, so that the detection efficiency is enhanced, and the feasibility and operability of the scheme are improved.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a second optional embodiment of the page sharing method provided in the embodiment of the present invention, processing the preset sensitive parameter in the address of the page to be shared may include:
removing preset sensitive parameters in the address of the page to be shared;
determining the target shared page address according to the processed preset sensitive parameters may include:
and splicing the page addresses to be shared with the preset sensitive parameters removed to obtain target shared page addresses.
In this embodiment, assume that the current page address URL to be shared is "http:// game. wxopen ═ 2a2 dead & access _ token ═ 3897dacb & ver ═ 2& ch ═ 00000 ″, the manner described in the first alternative embodiment to that of fig. 3 can be used, first using the first delimiter,? ", intercepting address information in a page address to be shared, and then acquiring at least one page parameter from the address information by adopting a second separator, namely" & ", wherein the acquired page parameters are shown in the following table, please refer to table 1:
TABLE 1
Key with a key body Value of
wxopenid 2a2fadef
access_token 3897dacb
ver 2
ch 00000
Each item is divided into a key value pair by taking "═ as a delimiter in the page parameters, the key is" ═ left character string, and the value is "═ right character string.
Assuming that the preset sensitive parameters are "wxopenid ═ xxx" and "access _ token ═ yy", according to the content described in table 1, the preset sensitive parameters are "wxopenid ═ 2a2 fade" and "access _ token ═ 3897 dacb", so that the preset sensitive parameters in the URL of the page to be shared can be directly removed, and the obtained remaining page parameters are shown in the following table, please refer to table 2:
TABLE 2
Key with a key body Value of
ver 2
ch 00000
And finally, splicing the page address to be shared with the preset sensitive parameter removed to obtain a target shared page address of http:// gate.
Secondly, in the embodiment of the present invention, a method for processing the preset sensitive parameters in the page address to be shared is provided, that is, the preset sensitive parameters in the page address to be shared are removed, and then the page address to be shared with the removed preset sensitive parameters is spliced to obtain the target shared page address. By the method, the shared page address without the user privacy information can be obtained, so that the safety of the scheme is enhanced.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a third optional embodiment of the page sharing method provided in the embodiment of the present invention, processing the preset sensitive parameter in the address of the page to be shared may include:
acquiring preset sensitive parameters in the address of the page to be shared;
setting a preset sensitive parameter as a null parameter;
determining the target shared page address according to the processed preset sensitive parameters may include:
and updating the address of the page to be shared according to the null parameter to obtain the target shared page address.
In this embodiment, still assuming that the current page address URL to be shared is "http:// gate.test.com/indexxopen ═ 2a2fadef & access _ token ═ 3897dacb & ver ═ 2& ch ═ 00000", the manner described in the first optional embodiment corresponding to fig. 3 may be adopted, and first a first delimiter, that is, "? And intercepting address information in the address of the page to be shared, and then acquiring at least one page parameter from the address information by adopting a second separator, namely, "&", wherein the acquired page parameters are shown in table 1.
Assuming that the preset sensitive parameters are "wxopenid ═ xxx" and "access _ token ═ yy", according to the contents described in table 1, the preset sensitive parameters are "wxopenid ═ 2a2 fade" and "access _ token ═ 3897 dacb", so that the preset sensitive parameters can be set as null parameters, and the obtained page parameters are shown in the following table, please refer to table 3:
TABLE 3
Key with a key body Value of
wxopenid
access_token
ver 2
ch 00000
And finally, updating the address of the page to be shared of the preset sensitive parameter of the opposite null parameter to obtain the target shared page address of http:// gate.
Secondly, in the embodiment of the present invention, another way of processing the preset sensitive parameter in the page address to be shared is provided, that is, the preset sensitive parameter in the page address to be shared is obtained first, then the preset sensitive parameter is set as an empty parameter, and finally the page address to be shared is updated according to the empty parameter, so as to obtain the target shared page address. By the method, the shared page address without the user privacy information can be obtained, so that the safety of the scheme is enhanced.
Optionally, on the basis of any one of the first to third embodiments corresponding to fig. 3 and fig. 3, in a fourth optional embodiment of the page sharing method provided in the embodiment of the present invention, receiving the page sharing request may include:
and receiving the page sharing request through the same target sharing interface, wherein the target sharing interface is in communication connection with at least one interface of the instant messaging application.
In this embodiment, a universal sharing mode is provided, that is, a same target sharing interface is adopted to receive a page sharing request, the target sharing interface establishes a communication connection with an interface of at least one instant messaging application program, the page sharing request can be transmitted to a designated instant messaging application program interface through the target sharing interface, and the target sharing interface is compatible with the instant messaging application program interface.
Specifically, referring to fig. 4, fig. 4 is a schematic diagram of sharing a page by using a universal interface in an embodiment of the present invention, and a universal java script (full english: JavaScript, abbreviated english: JS) Software Development Kit (full english: Software Development Kit, abbreviated english: SDK) is used to integrate multiple sharing channels, such as a QQ space, a QQ friend, a wechat friend circle, and other channels, under the page of HTML 5. Through a target sharing interface, namely a universal sharing interface, after the target sharing interface is accessed, contents can be shared to all instant messaging application programs only by transmitting universal sharing parameters, each instant messaging application program is provided with a corresponding platform server, and the platform server sends corresponding information to the instant messaging application program used by a receiver.
In the embodiment of the invention, the page sharing device receives the page sharing request sent by the user through the same target sharing interface, and then the target sharing interface forwards the page sharing request to the specified instant messaging application program, so that the instant messaging application program can find the corresponding background server. By the mode, a set of universal solution is provided for sharing pages, development cost is reduced when users access and share the pages through integrating mainstream sharing channels, namely, interface access functions of all channels do not need to be developed one by one, and only a universal target sharing interface needs to be developed.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a fifth optional embodiment of the page sharing method according to the embodiment of the present invention, after determining the target shared page address according to the processed preset sensitive parameter, the method may further include:
calling an Application Programming Interface (API) in the page sharing device, wherein the API comprises page address information;
and updating the page address information contained in the API into a target shared page address.
In this embodiment, after the page sharing device obtains the target shared page address, an Application Programming Interface (API) of a browser installed in the page sharing device may be called first, and then page address information in the API function is directly updated in a manner that the target shared page address replaces the original page address to be shared.
Specifically, first, a history list (english full name: history) object of the HTML5 specification is called, and an API corresponding to the history object, such as replay state (state, title, URL) or history.
The browser in the page sharing device can change the original URL in the API into a newly-transmitted URL, namely, the address of the page to be shared is updated to the address of the target sharing page, the currently-performed interactive application state or action cannot be interrupted in the mode, and meanwhile, the address of the target sharing page does not include sensitive parameters during sharing.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating page changes during refreshing of a webpage address in an application scenario of the present invention. A developer performs an operation on the current page, and the URL of the current page is "http:// game. wxopenid is 2a2 dead & access _ token is 3897dacb & ver is 2& ch is 00000 ", and the state of the character controlled by the current developer is at position 2, when the URL changes," http:// gate.
Secondly, in the embodiment of the present invention, after the target shared page address is generated, a non-refresh mechanism may be further adopted, that is, an API in the page sharing device is called, and then page address information in the API is updated. Because the state of the current page is lost due to page jumping, and reloading the page possibly leads to the current state being difficult to restore, the page can still be kept not to be refreshed when the URL changes by adopting the scheme, and the state of the page operation can not be interrupted, so that the practicability of the scheme is improved, and meanwhile, the smoothness of the page operation can also be improved.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a sixth optional embodiment of the page sharing method provided in the embodiment of the present invention, before sharing the target shared page address to the target mobile terminal, the method may further include:
and adding a verification parameter into the target sharing page address, wherein the verification parameter is used for identifying the source of the target sharing page address by the target mobile terminal.
In this embodiment, before the page sharing device shares the target shared page address with the target mobile terminal, a verification parameter may be added to the target shared page address.
Specifically, suppose that the obtained target shared page address is "http:// game.test.com/index? And ver 2& ch 00000 ", where the check parameter may also be added thereto, and a format of the check parameter may be" result zzz ", where" zzz "is merely an illustration and may be another parameter in an actual application. And the verification parameters are used for identifying the source of the URL by the target mobile terminal according to the preset rule. The preset rule may be "0" indicating that the URL is a URL opened by the target mobile terminal itself, and "1" indicating that the URL is a URL shared by the page sharing apparatus to the target mobile terminal.
Then, adding "result equals 1" to "http:// gate.test.com/indexcent equals 2& ch equals 00000" to obtain "http:// gate.test.com/indexcessent equals 1& ch equals 2& ch equals 00000", and when the target mobile terminal identifies that the current URL is a shared URL according to "result equals 1", the target mobile terminal jumps to the authorization page to guide the user to re-login authorization.
Secondly, in the embodiment of the present invention, the page sharing device may further add a verification parameter to the target shared page address, so that the target mobile terminal can actively identify the source of the target shared page address. Through the method, the source of the target shared page address can be identified according to the verification parameters, if the source is from the shared page address, the page is jumped to the authorization page, and the user is guided to log in again for authorization, so that the operation of the application program by using the login information of other people is further prevented, and the safety of the scheme is improved.
In the above embodiment, the page sharing method of the present invention is introduced from the perspective of a page sharing device, and the page sharing method of the present invention is introduced from the perspective of a mobile terminal, referring to fig. 6, an embodiment of the page sharing method in the embodiment of the present invention includes:
301. receiving a target shared page address, wherein the target shared page address does not contain login information of a sharing party, and is obtained after processing of preset sensitive parameters;
in this embodiment, a mobile terminal serving as a receiver receives a target shared page address sent by a page sharing device through a server, where the target page shared address does not include sharing party login information, and the sharing party login information may specifically be information input by a developer through the page sharing device, such as a user name and a password.
302. Judging whether the target shared page address contains a verification parameter, if so, identifying the source of the target shared page address;
in this embodiment, the mobile terminal determines whether the target sharing page address includes a verification parameter, where the verification parameter may be added to the target sharing page address by the page sharing device, and if the mobile terminal detects that the target sharing page address includes the verification parameter, the source of the target sharing page address can be further identified.
303. And if the source of the target shared page address is the page sharing device, receiving a user login request.
In this embodiment, the different verification parameters mean different sources of the URL, and if the webpage is a webpage opened by the mobile terminal itself, the verification parameter may be 1, and if the webpage is a webpage shared by others, the verification parameter may be 0. And for the webpage shared by other people, the mobile terminal also provides a login prompt so that the user sends a corresponding user login request according to the login prompt.
It should be noted that the verification parameter may be a reasonable parameter value, and the parameter value is not limited herein.
In the embodiment of the invention, after receiving a target sharing page address sent by a page sharing device, a mobile terminal judges whether the page sharing address contains a verification parameter, if so, the mobile terminal needs to further judge that the verification parameter indicates the source of the target sharing page address, and if the verification parameter is from the page sharing device, the mobile terminal receives a login request of a user. By the method, the mobile terminal as the receiver can also actively identify the source of the page address, and actively guide the user to log in again for the shared page address, so that the situation that the login is carried out by utilizing the login information of other people and the privacy is unsafe is prevented.
Optionally, on the basis of the embodiment corresponding to fig. 6, in a first optional embodiment of the page sharing method provided in the embodiment of the present invention, after receiving the user login request, the method may further include:
receiving login information of a receiver according to a user login request;
and logging in a page corresponding to the target sharing page address according to the login information of the receiver.
In this embodiment, the mobile terminal opens an information login interface according to a user login request triggered by a user, and the user inputs login information of a receiver, such as a user name and a password, through the interface. And after the verification of the login information of the receiver is passed, the mobile terminal displays a page corresponding to the target sharing page address to the user.
Secondly, in the embodiment of the present invention, it is specifically described that the mobile terminal used by the receiver may further receive login information of the receiver according to a user login request initiated by the user, and then login the page corresponding to the target shared page address according to the login information of the receiver. Through the mode, the user serving as the receiver is further required to adopt the own login information to login the page corresponding to the target sharing page address, and the user cannot passively jump to the page used by the sharing party, so that the privacy among the users is better guaranteed not to be transmitted, and the practicability, safety and feasibility of the scheme are improved.
For convenience of understanding, the page sharing process in the present invention may be described in detail in a specific application scenario, specifically:
technical personnel A develop a web game, and in order to popularize the web game, the first wants to send the URL of the web game to the WeChat friend B, namely, the URL of the web game is sent to the WeChat friend B, namely, http:// gate.
However, the URL carries the user name, the session token and the port number of the first webpage game, so that the first webpage game opens the URL by using the browser a, and the browser a can process the URL, so that the URL sent to the second webpage game does not carry the information of the first webpage game any more.
The first starts an interface of a 'WeChat friend' through a universal sharing interface provided by the browser A, and the browser A starts to process the current URL 'http:// gate.test.com/indexservame ═ tomliu777& access _ token ═ 38482dfei & port ═ 101.10.8& ver ═ 2& ch ═ 00000' according to preset sensitive parameters. The preset sensitive parameters include "username ═ xxx", "access _ token ═ yyy", and "port ═ zzz", so that the three preset sensitive parameters are masked between the browsers a, and the updated URL is obtained, that is, "http:// game.
The general sharing interface directly sends a sharing request initiated by the first user and the 'http:// gate.test.com/indexver ═ 2& ch ═ 00000' together to a server corresponding to the 'WeChat friend', the server forwards the 'http:// gate.test.com/indexver ═ 2& ch ═ 00000' to the second user, and the second user can see the webpage game content which the first user wants to share by opening the URL, however, under the condition that the login information of the first user does not fail, the second user can actively guide the second user to login the game by using the account number registered by the second user after opening the URL.
Referring to fig. 7, the page sharing apparatus according to the present invention is described in detail below, and an embodiment of the present invention provides a page sharing apparatus, including:
a receiving module 401, configured to receive a page sharing request, where the page sharing request carries an address of a page to be shared;
a processing module 402, configured to determine whether the page address to be shared received by the receiving module 401 includes a preset sensitive parameter, and if so, process the preset sensitive parameter in the page address to be shared;
a determining module 403, configured to determine a target sharing page address according to the preset sensitive parameter processed by the processing module 402, where the target sharing page address does not include login information of a sharing party;
a sharing module 404, configured to share the target shared page address determined by the determining module 403 with a target mobile terminal.
In this embodiment, a receiving module 401 receives a page sharing request, the page sharing request carries a page address to be shared, a processing module 402 determines whether the page address to be shared received by the receiving module 401 includes preset sensitive parameters, if yes, the preset sensitive parameters in the page address to be shared are processed, a determining module 403 determines a target sharing page address according to the preset sensitive parameters processed by the processing module 402, the target sharing page address does not include sharer login information, and a sharing module 404 shares the target sharing page address determined by the determining module 403 with a target mobile terminal.
The embodiment of the invention provides a page sharing method, which includes the steps that a page sharing device firstly receives a page sharing request, the page sharing request carries a page address to be shared, then whether the page address to be shared contains preset sensitive parameters or not is judged, if the page address to be shared contains the preset sensitive parameters, the preset sensitive parameters in the page address to be shared need to be processed, a target shared page address is determined according to the processed preset sensitive parameters, the target shared page address does not contain login information of a sharing party, and finally the page sharing device sends the target shared page address to a target mobile terminal. By the method, the user login information existing in the page address to be shared can be processed, so that the target shared page address sent finally does not include the user login information, a receiver is prevented from browsing or tampering the user login information of the sharing party, and the safety and reliability of the shared page address are improved.
Optionally, on the basis of the embodiment corresponding to fig. 7, referring to fig. 8, in another embodiment of the page sharing device provided in the embodiment of the present invention,
the page sharing apparatus 40 further includes:
a first obtaining module 405, configured to obtain address information in the page address to be shared according to a first delimiter before the processing module 402 determines whether a preset sensitive parameter exists in the page address to be shared;
a second obtaining module 406, configured to obtain at least one page parameter from the address information obtained by the first obtaining module 405 according to a second delimiter;
the processing module 402 comprises:
the comparing unit 4021 is configured to compare whether the at least one page parameter is consistent with the preset sensitive parameter, and if so, determine that the page address to be shared includes the preset sensitive parameter.
Secondly, in the embodiment of the present invention, before determining whether the preset sensitive parameters exist in the page address to be shared, the page sharing device further needs to process the page address to be shared. The method comprises the steps of firstly adopting a first separator to obtain address information in a page address to be shared, then adopting a second separator to obtain at least one page parameter from the address information, finally comparing whether the at least one page parameter is consistent with a preset sensitive parameter, and if so, determining that the page address to be shared contains the preset sensitive parameter. By the method, the page sharing device can determine the page parameters more quickly when detecting whether the page address to be shared contains the preset sensitive parameters, so that the detection efficiency is enhanced, and the feasibility and operability of the scheme are improved.
Optionally, on the basis of the embodiment corresponding to fig. 7, referring to fig. 9, in another embodiment of the page sharing device provided in the embodiment of the present invention,
the processing module 402 comprises:
a removing unit 4022, configured to remove the preset sensitive parameter in the page address to be shared;
the determining module 403 includes:
a splicing unit 4031, configured to splice the page address to be shared from which the preset sensitive parameter is removed by the removing unit 4022, so as to obtain the target shared page address.
Secondly, in the embodiment of the present invention, a method for processing the preset sensitive parameters in the page address to be shared is provided, that is, the preset sensitive parameters in the page address to be shared are removed, and then the page address to be shared with the removed preset sensitive parameters is spliced to obtain the target shared page address. By the method, the shared page address without the user privacy information can be obtained, so that the safety of the scheme is enhanced.
Optionally, on the basis of the embodiment corresponding to fig. 7, referring to fig. 10, in another embodiment of the page sharing device provided in the embodiment of the present invention,
the processing module 402 comprises:
an obtaining unit 4023, configured to obtain the preset sensitive parameter in the page address to be shared;
the setting unit 4024 is configured to set the preset sensitive parameter acquired by the acquiring unit 4023 as an empty parameter;
the determining module 403 includes:
an updating unit 4032, configured to update the page address to be shared according to the null parameter set by the setting unit 4024, so as to obtain the target shared page address.
Secondly, in the embodiment of the present invention, another way of processing the preset sensitive parameter in the page address to be shared is provided, that is, the preset sensitive parameter in the page address to be shared is obtained first, then the preset sensitive parameter is set as an empty parameter, and finally the page address to be shared is updated according to the empty parameter, so as to obtain the target shared page address. By the method, the shared page address without the user privacy information can be obtained, so that the safety of the scheme is enhanced.
Optionally, on the basis of the embodiment corresponding to any one of fig. 7 to fig. 10, referring to fig. 11, in another embodiment of the page sharing device provided in the embodiment of the present invention,
the receiving module 401 includes:
the receiving unit 4011 is configured to receive the page sharing request through a same target sharing interface, where the target sharing interface establishes a communication connection with an interface of at least one instant messaging application.
In the embodiment of the invention, the page sharing device receives the page sharing request sent by the user through the same target sharing interface, and then the target sharing interface forwards the page sharing request to the specified instant messaging application program, so that the instant messaging application program can find the corresponding background server. By the mode, a set of universal solution is provided for sharing pages, development cost is reduced when users access and share the pages through integrating mainstream sharing channels, namely, interface access functions of all channels do not need to be developed one by one, and only a universal target sharing interface needs to be developed.
Alternatively, referring to fig. 12 on the basis of the embodiment corresponding to fig. 7, in another embodiment of the page sharing device provided in the embodiment of the present invention,
the page sharing apparatus 40 further includes:
a calling module 407, configured to, after the determining module 403 determines the target shared page address according to the processed preset sensitive parameter, call an application programming interface API in the page sharing device, where the API includes page address information;
an updating module 408, configured to update the page address information included in the API called by the calling module 407 into the target shared page address.
Secondly, in the embodiment of the present invention, after the target shared page address is generated, a non-refresh mechanism may be further adopted, that is, an API in the page sharing device is called, and then page address information in the API is updated. Because the state of the current page is lost due to page jumping, and reloading the page possibly leads to the current state being difficult to restore, the page can still be kept not to be refreshed when the URL changes by adopting the scheme, and the state of the page operation can not be interrupted, so that the practicability of the scheme is improved, and meanwhile, the smoothness of the page operation can also be improved.
Alternatively, on the basis of the embodiment corresponding to fig. 7, referring to fig. 13, in another embodiment of the page sharing device provided in the embodiment of the present invention,
the page sharing apparatus 40 further includes:
a adding module 409, configured to add a verification parameter to the target shared page address before the sharing module 404 shares the target shared page address with the target mobile terminal, where the verification parameter is used by the target mobile terminal to identify a source of the target shared page address.
Secondly, in the embodiment of the present invention, the page sharing device may further add a verification parameter to the target shared page address, so that the target mobile terminal can actively identify the source of the target shared page address. Through the method, the source of the target shared page address can be identified according to the verification parameters, if the source is from the shared page address, the page is jumped to the authorization page, and the user is guided to log in again for authorization, so that the operation of the application program by using the login information of other people is further prevented, and the safety of the scheme is improved.
With reference to fig. 14, the mobile terminal in the embodiment of the present invention includes:
the first receiving module 501 is configured to receive a target shared page address, where the target shared page address does not include login information of a sharing party, and the target shared page address is obtained after processing of preset sensitive parameters;
an identifying module 502, configured to determine whether the target shared page address received by the first receiving module 501 includes a check parameter, and if so, identify a source of the target shared page address;
a second receiving module 503, configured to receive a user login request if the source of the target shared page address identified by the identifying module 502 is a page sharing device.
In this embodiment, the first receiving module 501 receives a target sharing page address, the target sharing page address does not include login information of a sharing party, the target sharing page address is obtained after processing of preset sensitive parameters, the identifying module 502 determines whether the target sharing page address received by the first receiving module 501 includes a verification parameter, if so, identifies a source of the target sharing page address, and if the identifying module 502 identifies that the source of the target sharing page address is a page sharing device, the second receiving module 503 receives a user login request.
In the embodiment of the invention, after receiving a target sharing page address sent by a page sharing device, a mobile terminal judges whether the page sharing address contains a verification parameter, if so, the mobile terminal needs to further judge that the verification parameter indicates the source of the target sharing page address, and if the verification parameter is from the page sharing device, the mobile terminal receives a login request of a user. By the method, the mobile terminal as the receiver can also actively identify the source of the page address, and actively guide the user to log in again for the shared page address, so that the situation that the login is carried out by utilizing the login information of other people and the privacy is unsafe is prevented.
Alternatively, referring to fig. 15 on the basis of the embodiment corresponding to fig. 14, in another embodiment of the mobile terminal provided in the embodiment of the present invention,
the mobile terminal 50 further includes:
a third receiving module 504, configured to receive, by the second receiving module 503, recipient login information according to the user login request after receiving the user login request;
a login module 505, configured to log in a page corresponding to the target sharing page address according to the receiver login information received by the third receiving module 504.
Secondly, in the embodiment of the present invention, it is specifically described that the mobile terminal used by the receiver may further receive login information of the receiver according to a user login request initiated by the user, and then login the page corresponding to the target shared page address according to the login information of the receiver. Through the mode, the user serving as the receiver is further required to adopt the own login information to login the page corresponding to the target sharing page address, and the user cannot passively jump to the page used by the sharing party, so that the privacy among the users is better guaranteed not to be transmitted, and the practicability, safety and feasibility of the scheme are improved.
As shown in fig. 16, for convenience of description, only the parts related to the embodiments of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiments of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA, for short, for full english), a Sales terminal (POS, for short, for POS), a vehicle-mounted computer, and the page sharing device is taken as a mobile phone as an example:
fig. 16 is a block diagram showing a partial structure of a cellular phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 16, the cellular phone includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 16 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 16:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 610 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short message Service (Short SMS), and so on.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although the touch panel 631 and the display panel 641 are shown as two separate components in fig. 16 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 16 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 680 included in the terminal further has the following functions:
receiving a page sharing request, wherein the page sharing request carries a page address to be shared;
judging whether the page address to be shared contains preset sensitive parameters or not, if so, processing the preset sensitive parameters in the page address to be shared;
determining a target sharing page address according to the processed preset sensitive parameters, wherein the target sharing page address does not contain login information of a sharing party;
and sharing the target sharing page address to a target mobile terminal.
As shown in fig. 17, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The terminal can be any terminal equipment including a mobile phone, a tablet computer, a PDA, a POS, a vehicle-mounted computer and the like, taking the terminal as the mobile phone as an example:
fig. 17 is a block diagram showing a partial structure of a cellular phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 17, the handset includes: radio Frequency (RF) circuit 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuit 760, wireless fidelity (WiFi) module 770, processor 780, and power supply 790. Those skilled in the art will appreciate that the handset configuration shown in fig. 17 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 17:
the RF circuit 710 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 780; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 710 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (Low Noise Amplifier; LNA), a duplexer, and the like. In addition, the RF circuit 710 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, GSM, GPRS, CDMA, WCDMA, LTE, email, SMS, and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 may execute various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, can collect touch operations of a user (e.g. operations of the user on or near the touch panel 731 by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of an LCD, an OLED, or the like. Further, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near the touch panel 731, the touch operation is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of the touch event. Although the touch panel 731 and the display panel 741 are two independent components in fig. 17 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 750, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 741 and/or a backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, and then processes the audio data output processor 780, and then transmits the audio data to, for example, another cellular phone through the RF circuit 710, or outputs the audio data to the memory 720 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 770, and provides wireless broadband Internet access for the user. Although fig. 17 shows the WiFi module 770, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby integrally monitoring the mobile phone. Optionally, processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The handset also includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 780 via a power management system, so that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment of the present invention, the processor 780 included in the terminal further has the following functions:
receiving a target shared page address, wherein the target shared page address does not contain login information of a sharing party, and is obtained after processing of preset sensitive parameters;
judging whether the target shared page address contains a verification parameter, and if so, identifying the source of the target shared page address;
and if the source of the target shared page address is the page sharing device, receiving a user login request.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (17)

1. A page sharing method is applied to a page sharing device and is characterized by comprising the following steps:
receiving a page sharing request, wherein the page sharing request carries a page address to be shared;
judging whether the page address to be shared contains preset sensitive parameters or not, if so, processing the preset sensitive parameters in the page address to be shared;
determining a target sharing page address according to the processed preset sensitive parameters, wherein the target sharing page address does not contain login information of a sharing party;
adding a verification parameter into the target shared page address, wherein the verification parameter is used for identifying the source of the target shared page address by a target mobile terminal, and if the source of the target shared page address is a shared page address, the verification parameter is used for skipping a page to an authorized page and guiding a user of the target mobile terminal to log in authorization again;
and sharing the target sharing page address to the target mobile terminal.
2. The method according to claim 1, wherein before determining whether the preset sensitive parameter exists in the address of the page to be shared, the method further comprises:
acquiring address information in the address of the page to be shared according to the first separator;
acquiring at least one page parameter from the address information according to a second separator;
the judging whether the address of the page to be shared contains preset sensitive parameters includes:
and comparing whether the at least one page parameter is consistent with the preset sensitive parameter, and if so, determining that the page address to be shared contains the preset sensitive parameter.
3. The method according to claim 1, wherein the processing the preset sensitive parameter in the page address to be shared includes:
removing the preset sensitive parameters in the page address to be shared;
the determining a target shared page address according to the processed preset sensitive parameters includes:
and splicing the page address to be shared with the preset sensitive parameters removed to obtain the target shared page address.
4. The method according to claim 1, wherein the processing the preset sensitive parameter in the page address to be shared includes:
acquiring the preset sensitive parameters in the address of the page to be shared;
setting the preset sensitive parameter as a null parameter;
the determining a target shared page address according to the processed preset sensitive parameters includes:
and updating the address of the page to be shared according to the null parameter to obtain the target shared page address.
5. The method according to any one of claims 1 to 4, wherein the receiving a page sharing request comprises:
and receiving the page sharing request through the same target sharing interface, wherein the target sharing interface is in communication connection with at least one interface of the instant messaging application.
6. The method according to claim 1, wherein after determining a target shared page address according to the processed preset sensitive parameters, the method further comprises:
calling an Application Programming Interface (API) in the page sharing device, wherein the API comprises page address information;
and updating the page address information contained in the API into the target shared page address.
7. A page sharing method is applied to a mobile terminal and is characterized by comprising the following steps:
receiving a target shared page address, wherein the target shared page address does not contain login information of a sharing party, and is obtained after processing of preset sensitive parameters;
judging whether the target shared page address contains a verification parameter, and if so, identifying the source of the target shared page address;
and if the source of the target shared page address is the page sharing device, skipping the page to an authorized page and guiding the user to log in authorization again.
8. The method of claim 7, wherein after jumping the page to an authorization page and directing the user to re-login authorization, the method further comprises:
receiving login information of a receiver according to a user login request;
and logging in a page corresponding to the target sharing page address according to the receiver login information.
9. A page sharing apparatus, comprising:
the device comprises a receiving module, a sharing module and a processing module, wherein the receiving module is used for receiving a page sharing request, and the page sharing request carries a page address to be shared;
the processing module is used for judging whether the page address to be shared received by the receiving module contains preset sensitive parameters or not, and if yes, processing the preset sensitive parameters in the page address to be shared;
the determining module is used for determining a target sharing page address according to the preset sensitive parameters processed by the processing module, wherein the target sharing page address does not contain login information of a sharing party;
the processing module is further configured to add a verification parameter to the target shared page address, where the verification parameter is used for a target mobile terminal to identify a source of the target shared page address, and if the source of the target shared page address is a shared page address, the verification parameter is used to jump the page to an authorized page and guide a user of the target mobile terminal to re-log in authorization;
and the sharing module is used for sharing the target sharing page address processed by the processing module to the target mobile terminal.
10. The page sharing apparatus according to claim 9, wherein the page sharing apparatus further comprises:
the first obtaining module is used for obtaining address information in the page address to be shared according to a first separator before the processing module judges whether preset sensitive parameters exist in the page address to be shared;
the second acquisition module is used for acquiring at least one page parameter from the address information acquired by the first acquisition module according to a second separator;
the processing module comprises:
and the comparison unit is used for comparing whether the at least one page parameter is consistent with the preset sensitive parameter or not, and if so, determining that the page address to be shared contains the preset sensitive parameter.
11. The page sharing apparatus according to claim 9, wherein the processing module comprises:
the removing unit is used for removing the preset sensitive parameters in the page address to be shared;
the determining module comprises:
and the splicing unit is used for splicing the page address to be shared, from which the preset sensitive parameters are removed by the removing unit, so as to obtain the target shared page address.
12. The page sharing apparatus according to claim 9, wherein the processing module comprises:
the acquisition unit is used for acquiring the preset sensitive parameters in the page address to be shared;
the setting unit is used for setting the preset sensitive parameters acquired by the acquisition unit as null parameters;
the determining module comprises:
and the updating unit is used for updating the page address to be shared according to the null parameter set by the setting unit so as to obtain the target shared page address.
13. The page sharing apparatus according to any one of claims 9 to 12, wherein the receiving module includes:
and the receiving unit is used for receiving the page sharing request through the same target sharing interface, and the target sharing interface is in communication connection with at least one interface of the instant messaging application.
14. The page sharing apparatus according to claim 9, wherein the page sharing apparatus further comprises:
the calling module is used for calling an Application Programming Interface (API) in the page sharing device after the determining module determines the target shared page address according to the processed preset sensitive parameters, wherein the API comprises page address information;
and the updating module is used for updating the page address information contained in the API called by the calling module into the target shared page address.
15. The page sharing apparatus according to claim 9, wherein the page sharing apparatus further comprises:
and the adding module is used for adding a verification parameter into the target sharing page address before the sharing module shares the target sharing page address to the target mobile terminal, wherein the verification parameter is used for the target mobile terminal to identify the source of the target sharing page address.
16. A mobile terminal, comprising:
the first receiving module is used for receiving a target shared page address, the target shared page address does not contain login information of a sharer, and the target shared page address is obtained after processing of preset sensitive parameters;
the identification module is used for judging whether the target shared page address received by the first receiving module contains a verification parameter, and if so, identifying the source of the target shared page address;
and the second receiving module is used for skipping the page to an authorized page and guiding the user to log in again for authorization if the source of the target shared page address identified by the identification module is the page sharing device.
17. The mobile terminal of claim 16, wherein the mobile terminal further comprises:
the third receiving module is used for skipping the page to an authorized page by the second receiving module, guiding the user to log in again for authorization, and then receiving the login information of the receiver according to the login request of the user;
and the login module is used for logging in a page corresponding to the target sharing page address according to the receiver login information received by the third receiving module.
CN201610682387.2A 2016-08-17 2016-08-17 Page sharing method and related device Active CN107766358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610682387.2A CN107766358B (en) 2016-08-17 2016-08-17 Page sharing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610682387.2A CN107766358B (en) 2016-08-17 2016-08-17 Page sharing method and related device

Publications (2)

Publication Number Publication Date
CN107766358A CN107766358A (en) 2018-03-06
CN107766358B true CN107766358B (en) 2021-04-30

Family

ID=61261362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610682387.2A Active CN107766358B (en) 2016-08-17 2016-08-17 Page sharing method and related device

Country Status (1)

Country Link
CN (1) CN107766358B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110222286A (en) * 2019-05-21 2019-09-10 平安普惠企业管理有限公司 Information acquisition method, device, terminal and computer readable storage medium
CN110290144B (en) * 2019-07-01 2022-02-25 深圳市元征科技股份有限公司 User authority information updating method, system, storage medium and electronic equipment
CN110769052B (en) * 2019-10-18 2022-07-29 腾讯科技(深圳)有限公司 Channel information determination method and device, storage medium and electronic device
CN111355654B (en) * 2020-02-18 2021-11-19 支付宝实验室(新加坡)有限公司 Target content sharing method, device and equipment
CN112650954B (en) * 2020-12-30 2023-09-22 杭州趣链科技有限公司 Block chain data sharing method, device, equipment and storage medium
CN113127825B (en) * 2021-04-27 2023-11-10 北京百度网讯科技有限公司 Access right verification method and device
CN116776016B (en) * 2023-06-06 2024-02-27 广东保伦电子股份有限公司 Implementation method and terminal for accessing browser page without registering specific personnel

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9336177B2 (en) * 2007-10-15 2016-05-10 23Andme, Inc. Genome sharing
CN105681166A (en) * 2016-01-27 2016-06-15 网易传媒科技(北京)有限公司 Information sharing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9336177B2 (en) * 2007-10-15 2016-05-10 23Andme, Inc. Genome sharing
CN105681166A (en) * 2016-01-27 2016-06-15 网易传媒科技(北京)有限公司 Information sharing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HTML5新特性之History;liuhe688;《https://blog.csdn.net/liuhe688/article/details/44709173》;20150423;1-6 *

Also Published As

Publication number Publication date
CN107766358A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107766358B (en) Page sharing method and related device
US11798107B2 (en) Scenario-based application recommendation method and apparatus
US20160241589A1 (en) Method and apparatus for identifying malicious website
CN107329985B (en) Page collection method and device and mobile terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
WO2018196588A1 (en) Information sharing method, apparatus and system
CN111478849B (en) Service access method, device and storage medium
CN103294515A (en) Method, device and system for acquiring application programs
US20160267278A1 (en) Method, apparatus, terminal and media for detecting document object model-based cross-site scripting attack vulnerability
CN106293738B (en) Expression image updating method and device
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN113064635A (en) Page display method and device of smart television
CN111371676B (en) Customer service function access method and related device
WO2018137528A1 (en) Method and device for accessing resource
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
WO2015096660A1 (en) Methods and devices for displaying a webpage
CN104391629A (en) Method for sending message in orientation manner, method for displaying message, server and terminal
CN110445746B (en) Cookie obtaining method and device and storage equipment
CN105631059B (en) Data processing method, data processing device and data processing system
CN111177612B (en) Page login authentication method and related device
CN110287443B (en) Page data display method and related device
CN105095161A (en) Method and device for displaying rich text information
CN106339402B (en) Method, device and system for pushing recommended content
CN109145182B (en) Data acquisition method and device, computer equipment and system

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