METHOD AND APPARATUS FOR PROCESSING A WEBPAGE
The present disclosure describes a method for processing a webpage. A user device obtains a gesture track of a user and queries a gesture track database according to the gesture track obtained, wherein the gesture track database stores a relationship between the gesture track and account information of the user. The user device obtains the account information corresponding to the gesture track and provides the account information to a log-in server, so as to log in the application.
1 . A method for processing a webpage, comprising:
obtaining, by a user device, a webpage identifier;
determining, by the user device, whether the webpage identifier is in a predefined standard format; if the webpage identifier is not in the predefined standard format, converting, by the user device, the webpage identifier into a webpage identifier in the predefined standard format; and
generating, by the user device, a querying request and transmitting the querying request to a cloud server to receive a querying result; wherein the querying request comprises the webpage identifier in the standard format, the querying result comprises information indicating whether the webpage identifier is malicious.
2 . The method of claim 1 , wherein the obtaining the webpage identifier comprises:
detecting, by the user device, whether a webpage open instruction is received; and
if the webpage open instruction is received, obtaining, by the user device, the webpage identifier of the webpage being opened when the webpage is opened.
3 . The method of claim 1 , wherein the obtaining the webpage identifier comprises:
scanning, by the user device, a predefined area of the user device to obtain the webpage identifier, wherein the predefined area stores the webpage identifier.
4 . The method of claim 1 , further comprising:
before generating the querying request and transmitting the querying request to the cloud server, determining, by the user device, whether a current network situation meets a predefined condition for transmitting the querying request to the cloud server;
if the current network situation does not meet the predefined condition, storing the webpage identifier in the user device; and
if the current network situation meets the predefined condition, performing the process of generating the querying request and transmitting the querying request to the cloud server.
5 . The method of claim 1 , further comprising:
receiving, by the user device, the querying result;
determining, by the user device, whether the webpage identifier is malicious according to the querying result; and
if the webpage identifier is malicious, generating prompt information for a user and processing the webpage identifier.
6 . The method of claim 1 , wherein the webpage identifier is a webpage address.
7 . A method for processing a webpage, comprising:
receiving, by a cloud server, a querying request transmitted by a user device, wherein the querying request comprises a webpage identifier;
determining, by the cloud server, whether the webpage identifier in the querying request is malicious; and
generating, by the cloud server, a querying result and transmitting the querying result to the user device, wherein the querying result comprises information indicating whether the webpage identifier is malicious.
8 . The method of claim 7 , wherein the determining whether the webpage identifier in the querying request is malicious comprises:
comparing, by the cloud server, the webpage identifier in the querying request with malicious webpage identifiers which are stored in the cloud server in advance, if the webpage identifier in the querying request is the same with one of the malicious webpage identifiers stored in the cloud server, determining, by the cloud server, that the webpage identifier in the querying request is malicious.
9 . The method of claim 7 , wherein the determining whether the webpage identifier in the querying request is malicious comprises:
determining, by the cloud server, whether the webpage identifier in the querying request meets a malicious webpage identifier determining rule which is stored in the cloud server in advance, if the webpage identifier in the querying request meets the malicious webpage identifier determining rule, determining, by the cloud server, that the webpage identifier in the querying request is malicious.
10 . The method of claim 9 , wherein the malicious webpage identifier determining rule comprises: a querying times of the webpage identifier in the querying request reaches a predefined determining times.
11 . A user device, comprising:
one or more processors;
memory; and
one or more program modules stored in the memory and to be executed by the one or more processors, the one or more program modules comprise:
a webpage identifier obtaining module, to obtain a webpage identifier;
a format determining module, to determine whether the webpage identifier obtained by the webpage identifier obtaining module is in a predefined standard format;
a format converting module, to convert the webpage identifier into a webpage identifier in the standard format if the format determining module determines that the webpage identifier is not in the standard format; and
a querying module, to generate a querying request and transmit the querying request to a cloud server to obtain a querying result; wherein the querying request comprises the webpage identifier; the querying result comprises information indicating whether the webpage identifier is malicious.
12 . The user device of claim 11 , wherein the one or more program modules further comprise:
a detecting module, to detect whether a webpage open instruction is received; and
the webpage identifier obtaining module is further to obtain, if the detecting module detects that the webpage open instruction is received and when a webpage is opened, the webpage identifier of the webpage being opened.
13 . The user device of claim 11 , the webpage identifier obtaining module is further to scan a predefined area of the user device to obtain the webpage identifier, wherein the predefined area stores the webpage identifier.
14 . The user device of claim 11 , wherein the one or more program modules further comprise:
a network situation determining module, to determine whether a current network situation meets a predefined condition for transmitting the querying request to the cloud server;
a storage module, to store the webpage identifier in the user device if the network situation determining module determines that the current network situation does not meet the predefined condition; and
the querying module is further to generate the querying request and transmit the querying request to the cloud server if the network situation determining module determines that the current network situation meets the predefined condition.
15 . The user device of claim 11 , wherein the one or more program modules further comprise:
a webpage identifier determining module, to receive the querying result and determine whether the webpage identifier is malicious according to the querying result; and
a processing module, to generating prompt information for a user and process the webpage identifier if the webpage identifier determining module determines that the webpage identifier is malicious.