CN112149072A - Identity authentication method, device, equipment and medium for platform user - Google Patents

Identity authentication method, device, equipment and medium for platform user Download PDF

Info

Publication number
CN112149072A
CN112149072A CN202011003121.3A CN202011003121A CN112149072A CN 112149072 A CN112149072 A CN 112149072A CN 202011003121 A CN202011003121 A CN 202011003121A CN 112149072 A CN112149072 A CN 112149072A
Authority
CN
China
Prior art keywords
country
target
platform user
reference data
division reference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011003121.3A
Other languages
Chinese (zh)
Inventor
伍丹
刘彦强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011003121.3A priority Critical patent/CN112149072A/en
Publication of CN112149072A publication Critical patent/CN112149072A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2111Location-sensitive, e.g. geographical location, GPS

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Power Engineering (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure relates to a method, a device, equipment and a medium for identity authentication of a platform user. The method comprises the following steps: acquiring a plurality of groups of regional division reference data of a target user, wherein each group of data comprises a country letter code, equipment language country setting information and a mobile equipment country code; respectively determining target countries corresponding to each group of regional division reference data according to the country letter codes, the equipment language country setting information and the mobile equipment country codes; counting the number proportion of target countries respectively corresponding to each group of regional division reference data, and taking the target country with the largest number proportion as the country of the target platform user; and determining the region of the target user according to the country based on the predefined country region mapping relation so as to realize the identity authentication of the target platform user. The technical scheme solves the problem that the division of the area to which the user belongs is wrong due to the fact that the geographic position of the user is judged inaccurately only by using the IP address.

Description

Identity authentication method, device, equipment and medium for platform user
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device, equipment and a medium for identity authentication of a platform user.
Background
With the rapid development of the internet industry, internet products serve users worldwide. However, different countries may have differences in language, culture, religion, etc., and in order to better serve users, the platform users may be divided into regions and provided with services according to the regions to which the platform users belong.
Theoretically, the area to which the platform user belongs can be divided by the geographic position or the latitude and longitude of the user, and only the GPS (Global Positioning System) data of the user needs to be obtained. In practical application, however, the GPS information of the device needs user authorization to be obtained based on privacy protection of the user location. Therefore, some Internet products determine the geographic location of the user based on the IP (Internet Protocol) address of the platform user, so as to divide the area to which the platform user belongs. The IP address may be a location of a rough network access point obtained from a location database deployed in a network of a global telecommunications carrier, and the geographic location of the country granularity may be determined by querying a database mapped by the IP address and the geographic location information.
Then, the IP address is used as a criterion for determining the geographic location, and there may be a problem of misdetermination of the geographic location in some cases. For example, users in some countries access the Internet through a VPN (Virtual Private Network) for privacy protection, and for example, some ISPs (Internet Service providers) have some Network traffic scheduling policies, and adjustment of Network access points is performed when different domain names are accessed, under these circumstances, the real geographic location of the user cannot be determined, and thus, the area to which the user belongs cannot be correctly divided, and further, the identity of the user cannot be effectively authenticated.
Disclosure of Invention
The embodiment of the disclosure provides an identity authentication method, device, equipment and medium for a platform user, so as to solve the problem that the division of a user belonging area is wrong due to the fact that the geographic position of the user is judged inaccurately by using an IP address, and guarantee the validity of user identity authentication. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an identity authentication method for a platform user, including: acquiring a plurality of groups of region division reference data of a target platform user; wherein each set of the region division reference data includes: country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping; respectively determining a target country corresponding to each group of the regional division reference data according to the country letter code, the equipment language country setting information and the mobile equipment country code; counting the number proportion of target countries respectively corresponding to each group of the regional division reference data, and taking the target country with the largest number proportion as the country of the target platform user; and determining the region of the target platform user according to the country of the target platform user based on a pre-defined country region mapping relation so as to realize identity authentication of the target platform user.
According to a second aspect of the embodiments of the present disclosure, there is provided an identity authentication apparatus for a platform user, including: a region division reference data acquisition unit configured to acquire a plurality of groups of region division reference data of a target platform user; wherein each set of the region division reference data includes: country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping; a country identification unit to which the user belongs, configured to determine target countries corresponding to each group of the region division reference data, respectively, based on the country letter code, the device language country setting information, and the mobile device country code; a user belonging country determination unit configured to count the number ratios of target countries respectively corresponding to the respective groups of the area division reference data, and to take the target country having the largest number ratio as the country to which the target platform user belongs; and the user belonging area determining unit is configured to determine the belonging area of the target platform user according to the belonging country of the target platform user based on a pre-defined country area mapping relation so as to realize identity authentication of the target platform user.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the identity authentication method of the platform user according to any embodiment of the disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, where instructions, when executed by a processor of a server, enable the server to perform a method for authenticating an identity of a platform user according to any of the embodiments of the present disclosure.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product for use in conjunction with an electronic device, the computer program product comprising a computer-readable storage medium and a computer program mechanism embedded therein, the computer program being loaded into a computer and executed to implement the method for authenticating a platform user according to any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: on the basis of judging the geographical position of the user through the IP address, the language country setting information of the device and the country code of the mobile device are introduced to jointly judge the geographical position of the user, so that the accuracy of judging the geographical position of the user is improved, the problem that the division of the area to which the user belongs is wrong due to the fact that the geographical position of the user is judged inaccurately only by using the IP address is solved, the validity of user identity authentication is guaranteed, and further when the user is provided with services according to the area to which the platform user belongs, the bad use experience brought to the user due to the fact that the judgment of the area to which the user belongs is wrong can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a method of identity authentication of a platform user according to an example embodiment.
Fig. 2 is a flowchart illustrating a method of identity authentication of a platform user, according to an example embodiment.
FIG. 3 is a flow chart illustrating a method of identity authentication of a platform user according to an example embodiment.
Fig. 4 is a block diagram illustrating an apparatus for identity authentication of a platform user according to an example embodiment.
Fig. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of identity authentication of a platform user according to an example embodiment. The identity authentication method of the platform user can be used in an electronic device, and is executed by an identity authentication apparatus of the platform user configured in the electronic device, as shown in fig. 1, and the method includes the following steps:
in step S110, a plurality of sets of region division reference data of the target platform user are obtained; wherein each group of region division reference data comprises: country letter code, device language country setting information, mobile device country code obtained by IP address mapping.
The country letter code obtained by mapping the IP address refers to a country letter code determined according to a mapping relationship between the IP address and a country, and may be a country three-character code, for example, the country three-character code of china is CHN.
The device language country setting information refers to setting information consisting of a language and a country in the mobile device, and may be in a format of language-country, and the "language" and the "country" may be both expressed by english abbreviations, and the device language country setting information expressed by en-US is english-usa.
The Mobile Country Code (MCC) is defined by the international telecommunications union, and aims to identify the country in which the Mobile base of a subscriber is located in a telecommunications network, particularly in the gsm and umts systems, such as the Mobile country codes 460 and 461 in china.
The area division reference data may be determined from access log data of the target platform user, for example, a set of area division reference data is determined from access log data corresponding to each request of the target platform user. If the access log data of the target platform user comprises the IP address, the corresponding country letter code needs to be determined according to the mapping relation between the IP address and the country.
In an implementation manner of the embodiment of the present disclosure, optionally, before the step of obtaining multiple sets of region partition reference data of the target platform user, the method further includes:
acquiring access log data of a target platform user in a preset statistical time period in a fixed time; and cleaning the access log data to obtain multiple groups of region division reference data of the target platform user.
The preset statistical time period refers to a preset time period for counting access log data of a platform user to obtain corresponding sets of region division reference data, and for example, the preset statistical time period may be the previous 24 hours of the current time.
The access log data includes all data requested by the target platform user each time, such as a domain name, a request interface, interface parameters, cookies (including an application version, an application type, a system version, device language country setting information, MCC, IP address, and the like), and the like. Optionally, a program which runs at a fixed time is started, for example, the program runs once per hour, all access log data (for example, Kafka data) of the platform user are stored, for example, stored in a hive (data warehouse tool) data table, for example, the hive data table may be named as server _ log, and then the access log data of the target platform user within a preset statistical time period may be obtained in the hive data table.
The method comprises the steps of cleaning access log data of a target platform user, screening an IP address, equipment language country setting information and a mobile equipment country code corresponding to each request, and obtaining a corresponding country letter code based on the mapping relation between the IP address and the country, so that a plurality of groups of regional division reference data consisting of the country letter code (such as IP _ count for short), the equipment language country setting information (such as locale for short) and the mobile equipment country code corresponding to the target platform user can be obtained. For example, the multiple sets of region partition reference data obtained after the access log data is flushed may be stored in a hive data table, which may be named as region _ raw _ info, for example.
In the embodiment, the area division reference data is obtained by cleaning the user access log data within the preset statistical time period, so that the validity of the area division reference data is ensured.
In an implementation manner of the embodiment of the present disclosure, optionally, the step of cleaning the access log data to obtain multiple sets of region division reference data of the target platform user includes:
and cleaning the access log data according to the dimension of the user login account and the dimension of the equipment identification code, and respectively obtaining multiple groups of region division reference data of the target platform user corresponding to the dimension of the user login account and multiple groups of region division reference data of the target platform user corresponding to the dimension of the equipment identification code.
A user login account refers to an account (such as a user ID) used when a target platform user accesses a platform; the device identification code refers to an identification code (such as a device ID) of a mobile terminal device used when the target platform user accesses the platform.
If the target platform user has previously logged in the account number when accessing the platform, the access log data comprises the user login account number corresponding to each request of the target platform user; and if the target platform user does not log in the account when accessing the platform, the access log data comprises the equipment identification code corresponding to each request of the target platform user.
When the access log data of the target platform user is cleaned, the access log data of the target platform user can be cleaned according to the user login account dimension and the equipment identification code dimension, and multiple groups of region division reference data of the target platform user corresponding to the user login account dimension and multiple groups of region division reference data of the target platform user corresponding to the equipment identification code dimension are obtained respectively.
Illustratively, a plurality of groups of region division reference data of a target platform user corresponding to the user login account dimension may be merged into one data record and recorded in a hive data table, where the groups of region division reference data may be spliced by preset symbols (e.g., $), as shown in table 1.
TABLE 1
User ID IP_country|locale|MCC$IP_country|locale|MCC
xx *.*.*.*|XXX|NNN$*.*.*.*|XXX|NNN$*.*.*.*|XXX|NNN$...
Similarly, a plurality of groups of region division reference data of the target platform user corresponding to the dimension of the device identification code may also be merged into one data record and recorded in a hive data table, wherein each group of region division reference data may be spliced by a preset symbol (e.g., $), as shown in table 2.
TABLE 2
Device ID IP_country|locale|MCC$IP_country|locale|MCC
xxx *.*.*.*|XXX|NNN$*.*.*.*|XXX|NNN$*.*.*.*|XXX|NNN$...
In an implementation manner of the embodiment of the present disclosure, optionally, each group of region division reference data further includes: a request count value corresponding to an information combination of the country letter code, the device language country setting information, and the mobile device country code.
The request count value refers to the number of information combinations of the country letter code, the device language country setting information, and the mobile device country code obtained by cleansing access log data, that is, the count value of data requests based on the information combinations of the country letter code, the device language country setting information, and the mobile device country code.
When the access log data of the target platform user is cleaned, the request count value corresponding to each information combination of the country letter code, the equipment language country setting information and the mobile equipment country code can be counted and recorded. At this time, each set of region division reference data includes: IP _ count, location, MCC, and request count value (simply count). The method has the advantages that the information combination of the same country letter code, the same equipment language country setting information and the same mobile equipment country code is integrated, so that the group number of the regional division reference data is greatly reduced, and the storage space of the regional division reference data is further reduced.
In the foregoing embodiment, exemplarily, a plurality of sets of region division reference data of the target platform user corresponding to the user login account dimension may also be merged into one data record and recorded in a hive data table, where each set of region division reference data may be spliced by a preset symbol (e.g., $), as shown in table 3.
TABLE 3
User ID IP_country|locale|MCC|count$IP_country|locale|MCC|count
xx *.*.*.*|XXX|NNN|n$*.*.*.*|XXX|NNN|n$*.*.*.*|XXX|NNN|n$...
Similarly, a plurality of groups of region division reference data of the target platform user corresponding to the dimension of the device identification code may also be merged into one data record and recorded in a hive data table, wherein each group of region division reference data may be spliced by a preset symbol (e.g., $), as shown in table 4.
TABLE 4
Device ID IP_country|locale|MCC|count$IP_country|locale|MCC|count
xxx *.*.*.*|XXX|NNN|n$*.*.*.*|XXX|NNN|n$*.*.*.*|XXX|NNN|n$...
In the foregoing embodiment, the step of obtaining multiple sets of region division reference data of the target platform user may specifically be: if the multiple groups of region division reference data of the target platform user corresponding to the user login account dimension are non-empty, obtaining multiple groups of region division reference data of the target platform user corresponding to the user login account dimension; and if the multiple groups of region division reference data of the target platform user corresponding to the dimension of the user login account are empty, acquiring the multiple groups of region division reference data of the target platform user corresponding to the dimension of the equipment identification code.
That is, if a target platform user has previously logged in an account when accessing a platform, acquiring multiple groups of region division reference data of the target platform user corresponding to the user login account dimension to judge the region to which the target platform user belongs; and if the target platform user does not log in the account when accessing the platform, acquiring a plurality of groups of region division reference data of the target platform user corresponding to the dimension of the equipment identification code so as to judge the region of the target platform user.
The advantages of such an arrangement are: whether a target platform user logs in an account in advance or not when accessing the platform, multiple groups of region division reference data corresponding to the target platform user can be acquired so as to judge the region to which the target platform user belongs.
In step S120, target countries corresponding to each group of regional division reference data are respectively determined according to the country letter code, the device language country setting information, and the mobile device country code.
Optionally, the country letter code, the device language country setting information, and the mobile device country code in each group of regional division reference data are analyzed, whether an equivalence relationship exists between any two of the country letter code, the device language country setting information, and the mobile device country code is judged, and then a country corresponding to one of the reference data may be used as a target country corresponding to the group of regional division reference data according to an equivalence relationship judgment result and a preset rule. The preset rule is not particularly limited in this embodiment.
As an optional implementation manner, step S120 may be specifically:
and mapping the country letter code, the device language country setting information and the mobile device country code in each group of regional division reference data to a first country, a second country and a third country respectively, and determining target countries corresponding to each group of regional division reference data in the first country, the second country and the third country corresponding to each group of regional division reference data based on a preset rule.
In the embodiment, on the basis of judging the geographical position of the user through the IP address, the device language country setting information and the mobile device country code are introduced to jointly judge the geographical position of the user, so that the accuracy of judging the geographical position of the user is improved.
Explanation is given taking a set of area division reference data as an example:
based on the mapping relation between the country letter codes and the country names, mapping the included country letter codes to a first country, for example, if the country letter codes are CHN, the first country is China; mapping the device language country setting information included in the device language country setting information to a second country based on a mapping relationship between a country identification mode (such as country short for short) and a country name in the device language country setting information, for example, if the device language country setting information is en-US, the second country is the united states; based on the mapping relationship between the country name and the country code, the country code of the mobile device included in the country name is mapped to a third country, for example, if the country code of the mobile device is 460, the third country is china.
After the first country, the second country and the third country corresponding to the group of regional division reference data are determined, a target country corresponding to the group of regional division reference data is determined among the first country, the second country and the third country based on a preset rule, and the target country is address position information of a target platform user determined according to the group of regional division reference data.
Illustratively, weights are previously set for the country letter code, the device language country setting information, and the mobile device country code, respectively, and after obtaining the first country, the second country, and the third country corresponding to the set of region division reference data, one country having the largest weight is taken as the target country corresponding to the set of region division reference data.
It is assumed that the weight of the mobile device country code is the largest, and the weight of the set country letter code, the device language country setting information, and the mobile device country code are 0.3, and 0.4, respectively. If the first country, the second country and the third country are China, China and America respectively, the weight of China is 0.6, the weight of America is 0.4, and then the China with the largest weight is the target country corresponding to the group of regional division reference data; if the first country, the second country and the third country are china, korea and usa, respectively, the weight of china is 0.3, the weight of korea is 0.3, the weight of usa is 0.4, and the usa with the largest weight is the target country corresponding to the set of regional division reference data.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, based on a preset rule, target countries respectively corresponding to each group of regional division reference data in the first country, the second country, and the third country corresponding to each group of regional division reference data includes:
regarding a first country, a second country, and a third country corresponding to the target group area division reference data, if the first country, the second country, and the third country are all different, regarding the third country as a target country corresponding to the target group area division reference data;
if the first country, the second country, and the third country are not all the same, the country with the greatest number weight among the first country, the second country, and the third country is taken as the target country corresponding to the target group region division reference data.
In the present embodiment, the country letter code, the device language country setting information, and the mobile device country code are all 1/3, with the same weight. After obtaining a first country, a second country and a third country corresponding to the target group regional division reference data, if the three are all different, taking a country obtained by mapping according to the mobile device country code as a target country corresponding to the target group regional division reference data; if the three are not identical, the number weight of each country is calculated, and the country with the largest number weight is used as the target country corresponding to the target group regional division reference data, and assuming that the first country, the second country and the third country are china, usa and china, the number weight of china is 2/3 and the number weight of usa is 1/3, so the china with the largest number weight is used as the target country corresponding to the target group regional division reference data. The target group area division reference data refers to an arbitrary group of area division reference data.
In the above embodiment, under the condition that the first country, the second country and the third country are not all the same, the country with the largest quantity weight is taken as the target country corresponding to the target group region division reference data, so that the accuracy of judging the geographic position of the user is improved, and the validity of the platform user identity authentication is further ensured; in the case where the first country, the second country, and the third country are all different, since the country code of the mobile device is the reference data inherent to the mobile device used by the platform user and is most related to the nationality (or language habit, etc.) of the platform user, the validity of the identity authentication of the platform user can be ensured as much as possible by using the country mapped from the country code of the mobile device as the target country corresponding to the target group area division reference data.
In step S130, the number ratios of the target countries respectively corresponding to the respective groups of regional division reference data are counted, and the target country with the largest number ratio is used as the country to which the target platform user belongs.
After the target countries respectively corresponding to each group of regional division reference data are obtained, counting the number ratio of each target country, and taking the target country with the largest number ratio as the country of the target platform user.
Taking 100 sets of domain division data as an example, assuming that the target country corresponding to 90 sets of domain division data is china and the target country corresponding to 10 sets of domain division data is usa, the number ratio of china is 9/10, the number ratio of usa is 1/10, and the target country with the largest number ratio is china, and china is taken as the country to which the target platform user belongs.
In the case where each set of regional division reference data further includes a request count value corresponding to an information combination of the country letter code, the device language country setting information, and the mobile device country code, the step of counting the number of target countries respectively corresponding to each set of regional division reference data may be specifically:
and counting the number ratio of the target countries respectively corresponding to the regional division reference data of each group based on the request count value in the regional division reference data of each group.
Taking 2 sets of regional division data as an example, assuming that a target country corresponding to one set of regional division data is china, a request count value in the set of regional division data is 90, a target country corresponding to the other set of regional division data is the united states, and a request count value in the set of regional division data is 10, a number ratio of china is 9/10, a number ratio of the united states is 1/10, and a target country with the largest number ratio is china, and further china is taken as a country to which a target platform user belongs.
In step S140, based on the predefined country region mapping relationship, the region to which the target platform user belongs is determined according to the country to which the target platform user belongs, so as to implement identity authentication for the target platform user.
After the country of the target platform user is determined, the pre-defined country region mapping relation is inquired, the region of the target platform user can be determined, and identity authentication of the target platform user can be achieved. The identity in the identity authentication mainly refers to the belonging area information, that is, the belonging area of the platform user is authenticated.
The country-region mapping relationship is predefined according to information of national culture, language, religion and the like, and generally, countries with small differences of language, religion, culture and the like are divided into the same region, for example, india is divided into indian regions separately, indonesia is divided into indonesia regions separately, countries such as spain, columbia, argentina, peru and the like are divided into spanish regions, and grapevine and brazil are divided into grapevine regions, and the like.
If the country to which the target platform user belongs is Argentina, the mapping relation of the country region defined in advance is inquired according to the Argentina, the mapping relation between the Argentina and the Spanish region is known, and the region to which the target platform user belongs is the Spanish region.
For example, the multiple sets of region division reference data stored in the hive data table may be read by a JAVA task, and the operations of steps S130 and S140 are performed to determine the country and the region to which the target platform user belongs.
Furthermore, when the platform responds to the request of the target platform user, data can be displayed for the target platform user based on the belonging area, for example, data is displayed for the target platform user by using language characters matched with the belonging area, information related to the belonging area is pushed for the target platform user, and the like.
According to the technical scheme provided by the embodiment of the disclosure, on the basis of judging the geographical position of the user through the IP address, the language country setting information of the device and the country code of the mobile device are introduced to jointly judge the geographical position of the user, so that the accuracy of judging the geographical position of the user is improved, the problem that the division of the area to which the user belongs is wrong due to the fact that the geographical position of the user is judged inaccurately only by using the IP address is solved, the validity of user identity authentication is ensured, and further, when the service is provided for the user according to the area to which the platform user belongs, the bad use experience brought to the user due to the fact that the judgment of the area to which the user belongs.
Fig. 2 is a flowchart illustrating an identity authentication method for a platform user according to an exemplary embodiment, where this embodiment is a further refinement of the above technical solution, and the technical solution in this embodiment may be combined with various alternatives in one or more embodiments described above.
After the step of determining the region to which the target platform user belongs according to the country to which the target platform user belongs, the method further comprises the following steps:
storing the region information of the target platform user to a target cache;
when receiving an affiliated area query request for a target platform user, querying a target cache;
and if the region information of the target platform user is inquired in the target cache, returning the region information of the target platform user.
Further, after the step of querying the target cache, the method further comprises:
if the region information of the target platform user is not inquired in the target cache, acquiring a matched group of region division reference data according to the service type of the region inquiry request;
taking a target country corresponding to the group of regional division reference data as a country to which a target platform user belongs;
and according to the pre-defined country region mapping relation, determining the region of the target platform user in real time according to the country of the target platform user.
As shown in fig. 2, the identity authentication method for a platform user includes the following steps:
in step S210, multiple sets of region division reference data of the target platform user are obtained; wherein each group of region division reference data comprises: country letter code, device language country setting information, mobile device country code obtained by IP address mapping.
In step S220, the country letter code, the device language country setting information, and the mobile device country code in each set of regional division reference data are mapped to a first country, a second country, and a third country, respectively, and target countries corresponding to each set of regional division reference data are determined among the first country, the second country, and the third country corresponding to each set of regional division reference data based on a preset rule.
In step S230, the number ratios of the target countries respectively corresponding to the respective groups of regional division reference data are counted, and the target country with the largest number ratio is used as the country to which the target platform user belongs.
In step S240, the region to which the target platform user belongs is determined according to the country to which the target platform user belongs, based on the predefined country region mapping relationship.
In step S250, the belonging area information of the target platform user is stored in the target cache.
And storing the determined region information of the target platform user to a target cache for subsequent direct use.
Wherein the target cache may be a Redis cache.
The method includes storing the region information of the target platform user to a target cache, and storing the region information of the target platform user to a target database, such as a MySQL database.
If the data in the target cache is lost or damaged, the data in the target cache can be recovered by using the related data stored in the target database.
In an implementation manner of the embodiment of the present disclosure, after the step of storing the belonging area information of the target platform user in the target cache, the method further includes:
and updating the region information of the target platform user in the target cache when the region of the target platform user is re-determined at regular time.
The region of the target platform user is determined according to the access log data of the target platform user in the preset statistical time period acquired at regular time. And when the region to which the target platform user belongs is re-determined according to the access log data of the target platform user in the next preset statistical time period, updating the region information of the target platform user stored in the target cache by using the re-determined region to which the target platform user belongs.
And under the condition that the belonging area information of the target platform user is also stored in the target database, updating the belonging area information of the target platform user stored in the target database by using the newly determined belonging area of the target platform user.
The method has the advantage that the accuracy and the effectiveness of the region information of the target platform user in the target cache are guaranteed.
In step S260, when receiving the belonging area query request for the target platform user, querying the target cache.
The area query request refers to a request for querying an area to which a target platform user belongs, which may be directly triggered by a platform request (any request initiated to the platform) initiated by the target platform user or indirectly triggered by a platform request initiated by the target platform user.
And when receiving an affiliated area query request aiming at the target platform user, querying the target cache so as to search the affiliated area of the target platform user in the data stored in the target cache.
In step S270, it is determined whether the region information of the target platform user can be queried in the target cache, if yes, step S280 is performed, and if not, step S290 is performed.
Generally, the information of the region to which the old platform user belongs is available in the target cache, and the information of the region to which the new platform user or the platform user which is not active in the preset statistical time period belongs is likely not available in the target cache.
In step S280, the belonging area information of the target platform user is returned.
And if the region information of the target platform user can be inquired in the target cache, returning according to the stored data in the target cache.
In step S290, a set of matched region partition reference data is obtained according to the service type of the region to which the query request belongs, a target country corresponding to the set of region partition reference data is used as the country to which the target platform user belongs, and the region to which the target platform user belongs is determined in real time according to the country to which the target platform user belongs according to a predefined country-region mapping relationship.
If the region information of the target platform user cannot be inquired in the target cache, acquiring a group of region division reference data to calculate the country of the target platform user in real time, and further determining the region of the target platform user in real time according to the country region mapping relation defined in advance and the country of the target platform user.
The method has the advantages that when the region information of the platform new user or the platform user which is not active in the preset statistical time period cannot be inquired in the target cache, a group of region division reference data can be obtained in real time, and the region of the target platform user can be determined in real time according to the country letter code, the equipment language country setting information and the mobile equipment country code.
The service types of the query requests of the affiliated areas are different, and the carried request parameters are also different. The service type of the affiliated area query request includes an online service and an offline task, the online service represents a service realized through an HTTP interface that directly provides data for the user, for example, a service that provides related data for the user when the user refreshes a popular video page, and the offline task represents a service realized through an interface that indirectly provides data for the user, for example, marking the data (such as video data) uploaded by the user with affiliated area information, and the like. Generally, the affiliated area query request with the service type of online service is directly triggered by a platform request initiated by a target platform user, and the affiliated area query request with the service type of offline task is indirectly triggered by the platform request initiated by the target platform user.
In an implementation manner of the embodiment of the present disclosure, optionally, when the service type of the affiliated area query request is an online service, the group of area division reference data is a group of area division reference data determined according to a parameter carried in the affiliated area query request; when the service type of the affiliated area query request is an offline task, the group of area division reference data is determined according to parameters carried in a target affiliated area query request for the target platform user; and the target affiliated area query request is an affiliated area query request of which one service type closest to the current time is an online service.
For various requests with service types of online services, information such as domain names, request interfaces, interface parameters, cookies (including application version, application type, system version, device language country setting information, MCC, IP addresses, etc.) and the like are typically carried. However, the information will not be carried in various requests with the service type being an offline task, so that the information carried in the online service request initiated by the target platform user last time can be queried.
Furthermore, under the condition that the affiliated region information of the target platform user cannot be inquired in the target cache, if the service type of the affiliated region inquiry request is online service, parameters carried in the affiliated region inquiry request are obtained, and a group of region division reference data comprising country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping is extracted from the parameters. Then, the country letter code, the device language country setting information, and the mobile device country code in the set of regional division reference data are mapped to a first country, a second country, and a third country, respectively, and a target country corresponding to the set of regional division reference data is determined among the first country, the second country, and the third country as a country to which the target platform user belongs based on a preset rule. And finally, determining the region of the target platform user according to the country of the target platform user based on the pre-defined country region mapping relation.
Under the condition that the affiliated region information of the target platform user cannot be inquired in the target cache, if the service type of the affiliated region inquiry request is an offline task, acquiring parameters carried in the affiliated region inquiry request with the service type closest to the current time as online service, and extracting a group of region division reference data comprising country letter codes obtained by IP address mapping, equipment language country setting information and mobile equipment country codes from the parameters. Then, the country letter code, the device language country setting information, and the mobile device country code in the set of regional division reference data are mapped to a first country, a second country, and a third country, respectively, and a target country corresponding to the set of regional division reference data is determined among the first country, the second country, and the third country as a country to which the target platform user belongs based on a preset rule. And finally, determining the region of the target platform user according to the country of the target platform user based on the pre-defined country region mapping relation.
In the foregoing embodiment, when the target cache does not inquire the region information to which the target platform user belongs, a set of region division reference data for determining the region to which the target platform user belongs can be successfully acquired regardless of whether the requested service type is an online service or an offline task.
It should be noted that, if the information of the area to which the target platform user belongs is not queried in the target cache, the target cache may also be recovered according to the data of the area to which the relevant user belongs, which is stored in the target database. If the region information of the target platform user cannot be inquired in the target cache after the data recovery, then a matched group of region division reference data is obtained according to the service type of the region inquiry request, the target country corresponding to the group of region division reference data is used as the country of the target platform user, and the region of the target platform user is determined in real time according to the country of the target platform user according to the predefined country region mapping relation.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
According to the technical scheme of the embodiment of the invention, the affiliated area of each platform user is fixed, the affiliated area of each platform user is calculated at regular time according to the historical access records of the platform users and is stored in the cache, and the affiliated area can be directly used for displaying data for the users in subsequent requests, so that the problem of display change of platform content caused by IP address change is solved, and the consistency of user experience is ensured.
FIG. 3 is a flow chart illustrating a method of identity authentication of a platform user according to an example embodiment. On the basis of the above embodiments, the present embodiment provides a specific implementation manner. As shown in fig. 3, the identity authentication method for the platform user includes the following steps:
in step S310, access log data of the target platform user within the first 24 hours is acquired periodically on a daily basis.
In step S320, the access log data is cleaned according to the user login account dimension and the device identification code dimension, so as to obtain multiple sets of region division reference data of the target platform user in the corresponding dimension.
Namely, a plurality of groups of region division reference data of the target platform user corresponding to the user login account dimension and a plurality of groups of region division reference data of the target platform user corresponding to the device identification code dimension are obtained respectively.
Wherein the sets of region division reference data can be merged into one data record.
Each group of region division reference data comprises: IP _ count, locale, MCC, and count.
In step S330, it is determined whether the multiple sets of region division reference data of the target platform user corresponding to the user login account dimension are non-empty, if yes, step S340 is executed, and if not, step S350 is executed.
In step S340, multiple sets of region division reference data of the target platform user corresponding to the user login account dimension are obtained, and step S360 is executed.
In step S350, a plurality of sets of region division reference data of the target platform user corresponding to the device identification code dimension are acquired, and step S360 is performed.
In step S360, the country letter code, the device language country setting information, and the mobile device country code in each set of regional division reference data are mapped to the first country, the second country, and the third country, respectively.
In step S370, it is determined whether or not the first country, the second country, and the third country are all different from each other for each set of area division reference data, and if yes, step S380 is executed, and if not, step S390 is executed.
In step S380, step S3100 is performed with the third country as the target country corresponding to the corresponding set of grouping region division reference data.
In step S390, step S3100 is executed with the country having the highest number weight among the first country, the second country, and the third country as the target country corresponding to the corresponding set of grouping region division reference data.
In step S3100, the number ratios of the target countries respectively corresponding to the respective groups of the region division reference data are counted based on the request count values in each group of the region division reference data, and the target country having the largest number ratio is set as the country to which the target platform user belongs.
In step S3110, the region to which the target platform user belongs is determined according to the country to which the target platform user belongs, based on the pre-defined country region mapping relationship.
In step S3120, the region information of the target platform user is stored in the Redis cache and MySQL.
In step S3130, when an belonging area query request for the target platform user is received, the Redis cache is queried.
In step S3140, it is determined whether the area information of the target platform user can be searched in the Redis cache, if yes, step S3150 is performed, and if no, step S3160 is performed.
In step S3150, the belonging area information of the target platform user is returned.
In step S3160, a matched set of area partition reference data is obtained according to the service type of the affiliated area query request.
When the service type of the affiliated region query request is an online service, the group of region division reference data is determined according to parameters carried in the affiliated region query request, and includes IP _ count, location and MCC.
When the service type of the affiliated area query request is an offline task, the group of area division reference data is determined according to parameters carried in the affiliated area query request of the online service according to the service type closest to the current time of the target platform user, and comprises IP _ count, locale and MCC.
In step S3170, the country letter code, the device language country setting information, and the mobile device country code in the set of region division reference data are mapped to the first country, the second country, and the third country, respectively.
In step S3180, it is determined whether or not the first country, the second country, and the third country are all different, and if so, step S3190 is executed, and if not, step S3200 is executed.
In step S3190, step S3210 is performed with the third country as the target country corresponding to the set of grouping region division reference data.
In step S3200, the target country corresponding to the set of target group region division reference data is set to the country with the greatest number weight among the first country, the second country, and the third country, and step S3210 is performed.
In step S3210, based on the predefined country region mapping relationship, the region to which the target platform user belongs is determined according to the target country corresponding to the set of target group region division reference data.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
In the embodiment, the region to which the user belongs is not changed within 24 hours, and the data can be displayed for the user by directly using the region to which the user belongs in the subsequent user request, so that the problem of display change of the platform content caused by change of the IP address is solved, and the consistency of the user experience is ensured.
In addition, in order to quantify the technical solutions provided in this embodiment, statistics is performed on the proportion of the number of users whose belonging areas change in the previous day and the next day by using the technical solution of determining whether the belonging area of the user changes through IP change and the technical solution of this embodiment, respectively, and the statistical results are shown in table 5. As can be seen from table 5, the technical solution of determining whether the area to which the user belongs changes through IP change is adopted to determine that the proportion of the number of users in which the area changes is 0.26%, and the technical solution of this embodiment is adopted to determine that the proportion of the number of users in which the area changes is 0.08%. That is, after the technical solution of the present embodiment is adopted, the change rate of the area to which the user belongs in one day is reduced from 0.26% to 0.08%, so as to further prove the accuracy of determining the change of the area to which the user belongs by the technical solution of the present embodiment.
TABLE 5
Technical scheme Regional variation user number ratio
Technical scheme for judging whether user belonging area changes or not through IP change 0.26%
Technical solution of the present embodiment 0.08%
Fig. 4 is a block diagram illustrating an apparatus for identity authentication of a platform user according to an example embodiment. Referring to fig. 4, the apparatus includes an area division reference data acquisition unit 410, a user belonging country identification unit 420, a user belonging country determination unit 430, and a user belonging area determination unit 440. Wherein the content of the first and second substances,
a region division reference data acquiring unit 410 configured to acquire a plurality of groups of region division reference data of a target platform user; wherein each set of the region division reference data includes: country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping;
a user belonging country identification unit 420 configured to determine target countries corresponding to each group of the region division reference data, respectively, based on the country letter code, the device language country setting information, and the mobile device country code;
a user belonging country determining unit 430 configured to count number ratios of target countries respectively corresponding to the respective groups of regional division reference data, and to take the target country with the largest number ratio as the country to which the target platform user belongs;
the user belonging area determining unit 440 is configured to determine the belonging area of the target platform user according to the country to which the target platform user belongs based on a predefined country area mapping relationship, so as to implement identity authentication on the target platform user.
According to the technical scheme provided by the embodiment of the disclosure, on the basis of judging the geographical position of the user through the IP address, the language country setting information of the device and the country code of the mobile device are introduced to jointly judge the geographical position of the user, so that the accuracy of judging the geographical position of the user is improved, the problem that the division of the area to which the user belongs is wrong due to the fact that the geographical position of the user is judged inaccurately only by using the IP address is solved, the validity of user identity authentication is ensured, and further, when the service is provided for the user according to the area to which the platform user belongs, the bad use experience brought to the user due to the fact that the judgment of the area to which the user belongs.
In an implementation manner of the embodiment of the present disclosure, optionally, the country identification unit 420 to which the user belongs is specifically configured to map the country letter code, the device language country setting information, and the mobile device country code in each group of the regional division reference data to a first country, a second country, and a third country, respectively, and determine target countries corresponding to the respective groups of regional division reference data in the first country, the second country, and the third country corresponding to each group of the regional division reference data based on a preset rule.
In an implementation manner of the embodiment of the present disclosure, optionally, the country identification unit 420 to which the user belongs is specifically configured to, for the first country, the second country, and the third country corresponding to the target group area division reference data, if all of the first country, the second country, and the third country are different, regard the third country as the target country corresponding to the target group area division reference data; and if the first country, the second country and the third country are not all the same, taking the country with the largest number weight in the first country, the second country and the third country as the target country corresponding to the target group regional division reference data.
In an implementation manner of the embodiment of the present disclosure, optionally, the apparatus further includes: the area division reference data generating unit is configured to periodically acquire access log data of the target platform user within a preset statistical time period; and cleaning the access log data to obtain multiple groups of area division reference data of the target platform user.
In an implementation manner of the embodiment of the present disclosure, optionally, the apparatus further includes: the user belonging area information immobilization and application unit is configured to store the belonging area information of the target platform user into a target cache; when receiving a region query request aiming at the target platform user, querying the target cache; and if the region information of the target platform user is inquired in the target cache, returning the region information of the target platform user.
In an implementation manner of the embodiment of the present disclosure, optionally, the apparatus further includes: the user belonging area information real-time determining unit is configured to acquire a matched group of area division reference data according to the service type of the belonging area query request if the belonging area information of the target platform user is not queried in the target cache; taking a target country corresponding to the group of regional division reference data as a country to which the target platform user belongs; and according to a pre-defined country region mapping relation, determining the region of the target platform user in real time according to the country of the target platform user.
In an implementation manner of the embodiment of the present disclosure, optionally, when the service type of the affiliated area query request is an online service, the group of area division reference data is a group of area division reference data determined according to a parameter carried in the affiliated area query request;
when the service type of the affiliated area query request is an offline task, the group of area division reference data is determined according to parameters carried in a target affiliated area query request for the target platform user; and the target affiliated area query request is an affiliated area query request of which one service type closest to the current time is an online service.
In an implementation manner of the embodiment of the present disclosure, optionally, the apparatus further includes: and the user belonging area information immobilization updating unit is configured to update the belonging area information of the target platform user in the target cache when the belonging area of the target platform user is determined again at regular time after the step of storing the belonging area information of the target platform user in the target cache.
In an implementation manner of the embodiment of the present disclosure, optionally, the area division reference data generating unit is configured to clean the access log data according to a user login account dimension and an equipment identification code dimension, and obtain multiple sets of area division reference data of the target platform user corresponding to the user login account dimension and multiple sets of area division reference data of the target platform user corresponding to the equipment identification code dimension, respectively;
correspondingly, the area division reference data obtaining unit 410 is configured to obtain multiple sets of area division reference data of the target platform user corresponding to the user login account dimension if the multiple sets of area division reference data of the target platform user corresponding to the user login account dimension are non-empty; and if the multiple groups of region division reference data of the target platform user corresponding to the dimension of the user login account are empty, acquiring the multiple groups of region division reference data of the target platform user corresponding to the dimension of the equipment identification code.
In an implementation manner of the embodiment of the present disclosure, optionally, each group of region division reference data further includes: a request count value corresponding to an information combination of the country letter code, the device language country setting information, and the mobile device country code;
accordingly, the country determination unit 430 to which the user belongs is configured to count the number of target countries respectively corresponding to the respective groups of regional division reference data based on the request count value in each group of regional division reference data.
With regard to the identity authentication apparatus for a platform user in the above embodiments, the specific manner in which each unit performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
Fig. 5 is a schematic structural diagram illustrating an electronic device according to an exemplary embodiment, where the electronic device includes, as shown in fig. 5:
one or more of the processors 510 may be,
in FIG. 5, a processor 510 is illustrated as an example;
a memory 520;
the processor 510 and the memory 520 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 5.
The memory 520, which is a non-transitory computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a platform user identity authentication method in the embodiments of the present disclosure (for example, the region division reference data obtaining unit 410, the user belonging country identification unit 420, the user belonging country determination unit 430, and the user belonging region determination unit 440 shown in fig. 4). The processor 510 implements the identity authentication method of the platform user according to the above method embodiment by executing software programs, instructions and modules stored in the memory 520 to execute various functional applications and data processing of the computer device, that is:
acquiring a plurality of groups of region division reference data of a target platform user; wherein each set of the region division reference data includes: country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping;
mapping the country letter code, the device language country setting information, and the mobile device country code in each group of regional division reference data to a first country, a second country, and a third country, respectively, and determining target countries corresponding to each group of regional division reference data among the first country, the second country, and the third country corresponding to each group of regional division reference data based on a preset rule;
counting the number proportion of target countries respectively corresponding to each group of regional division reference data, and taking the target country with the largest number proportion as the country of the target platform user;
and determining the region of the target platform user according to the country of the target platform user based on a pre-defined country region mapping relation.
The memory 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 520 may optionally include memory located remotely from processor 510, which may be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as the memory 520 comprising instructions, which are executable by the processor 510 of the electronic device to perform the above method, such as the method for authenticating the identity of a platform user according to any embodiment of the present disclosure. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product for use in conjunction with an electronic device is also provided, the computer program product comprising a computer-readable storage medium and a computer program mechanism embedded therein, the program being loaded into and executed by a computer to implement the method for authenticating a platform user according to any of the embodiments of the disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An identity authentication method for a platform user, comprising:
acquiring a plurality of groups of region division reference data of a target platform user; wherein each set of the region division reference data includes: country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping;
respectively determining a target country corresponding to each group of the regional division reference data according to the country letter code, the equipment language country setting information and the mobile equipment country code;
counting the number proportion of target countries respectively corresponding to each group of the regional division reference data, and taking the target country with the largest number proportion as the country of the target platform user;
and determining the region of the target platform user according to the country of the target platform user based on a pre-defined country region mapping relation so as to realize identity authentication of the target platform user.
2. The method according to claim 1, wherein the step of separately determining the target country corresponding to each set of the area division reference data based on the country letter code, the device language country setting information, and the mobile device country code comprises:
and mapping the country letter code, the device language country setting information, and the mobile device country code in each group of the regional division reference data to a first country, a second country, and a third country, respectively, and determining target countries corresponding to each group of the regional division reference data among the first country, the second country, and the third country corresponding to each group of the regional division reference data based on a preset rule.
3. The method according to claim 2, wherein the determining target countries respectively corresponding to the respective groups of regional division reference data among the first, second and third countries corresponding to each group of regional division reference data based on a preset rule comprises:
regarding the first country, the second country, and a third country corresponding to target group area division reference data, if the first country, the second country, and the third country are all different, regarding the third country as a target country corresponding to the target group area division reference data;
and if the first country, the second country and the third country are not all the same, taking the country with the largest number weight in the first country, the second country and the third country as the target country corresponding to the target group regional division reference data.
4. The method according to any one of claims 1-3, further comprising, before the step of obtaining the sets of regionalized reference data for the target platform user:
acquiring access log data of the target platform user within a preset statistical time period in a fixed time;
and cleaning the access log data to obtain multiple groups of area division reference data of the target platform user.
5. The method of claim 4, further comprising, after the step of determining the target platform user's home region according to the target platform user's home country:
storing the region information of the target platform user to a target cache;
when receiving a region query request aiming at the target platform user, querying the target cache;
and if the region information of the target platform user is inquired in the target cache, returning the region information of the target platform user.
6. The method of claim 5, further comprising, after the step of querying the target cache:
if the region information of the target platform user is not inquired in the target cache, acquiring a matched group of region division reference data according to the service type of the region inquiry request;
taking a target country corresponding to the group of regional division reference data as a country to which the target platform user belongs;
and according to a pre-defined country region mapping relation, determining the region of the target platform user in real time according to the country of the target platform user.
7. The method according to claim 6, wherein when the service type of the affiliated location query request is an online service, the set of regional division reference data is determined according to parameters carried in the affiliated location query request;
when the service type of the affiliated area query request is an offline task, the group of area division reference data is determined according to parameters carried in a target affiliated area query request for the target platform user; and the target affiliated area query request is an affiliated area query request of which one service type closest to the current time is an online service.
8. An identity authentication apparatus for a platform user, comprising:
a region division reference data acquisition unit configured to acquire a plurality of groups of region division reference data of a target platform user; wherein each set of the region division reference data includes: country letter codes, equipment language country setting information and mobile equipment country codes obtained by IP address mapping;
a country identification unit to which the user belongs, configured to determine target countries corresponding to each group of the region division reference data, respectively, based on the country letter code, the device language country setting information, and the mobile device country code;
a user belonging country determination unit configured to count the number ratios of target countries respectively corresponding to the respective groups of the area division reference data, and to take the target country having the largest number ratio as the country to which the target platform user belongs;
and the user belonging area determining unit is configured to determine the belonging area of the target platform user according to the belonging country of the target platform user based on a pre-defined country area mapping relation so as to realize identity authentication of the target platform user.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable commands;
wherein the processor is configured to execute the command to implement the method of identity authentication of a platform user according to any one of claims 1 to 7.
10. A storage medium in which commands, when executed by a processor of a server, enable the server to perform the method of identity authentication of a platform user according to any one of claims 1 to 7.
CN202011003121.3A 2020-09-22 2020-09-22 Identity authentication method, device, equipment and medium for platform user Pending CN112149072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011003121.3A CN112149072A (en) 2020-09-22 2020-09-22 Identity authentication method, device, equipment and medium for platform user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011003121.3A CN112149072A (en) 2020-09-22 2020-09-22 Identity authentication method, device, equipment and medium for platform user

Publications (1)

Publication Number Publication Date
CN112149072A true CN112149072A (en) 2020-12-29

Family

ID=73896233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011003121.3A Pending CN112149072A (en) 2020-09-22 2020-09-22 Identity authentication method, device, equipment and medium for platform user

Country Status (1)

Country Link
CN (1) CN112149072A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567906A (en) * 2009-05-25 2009-10-28 阿里巴巴集团控股有限公司 Method and server for confirming the webpage content language
CN107682433A (en) * 2017-09-30 2018-02-09 北京金山安全软件有限公司 Information pushing method, device, equipment and medium
CN110362372A (en) * 2019-06-19 2019-10-22 深圳壹账通智能科技有限公司 Page translation method, device, medium and electronic equipment
CN110933660A (en) * 2019-11-29 2020-03-27 广州市百果园信息技术有限公司 State information determination method, device, storage medium and equipment
CN111049822A (en) * 2019-12-10 2020-04-21 北京达佳互联信息技术有限公司 Short message verification code sending method and device, short message server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567906A (en) * 2009-05-25 2009-10-28 阿里巴巴集团控股有限公司 Method and server for confirming the webpage content language
CN107682433A (en) * 2017-09-30 2018-02-09 北京金山安全软件有限公司 Information pushing method, device, equipment and medium
CN110362372A (en) * 2019-06-19 2019-10-22 深圳壹账通智能科技有限公司 Page translation method, device, medium and electronic equipment
CN110933660A (en) * 2019-11-29 2020-03-27 广州市百果园信息技术有限公司 State information determination method, device, storage medium and equipment
CN111049822A (en) * 2019-12-10 2020-04-21 北京达佳互联信息技术有限公司 Short message verification code sending method and device, short message server and storage medium

Similar Documents

Publication Publication Date Title
CN106933871B (en) Short link processing method and device and short link server
CN106936887B (en) Geographic position positioning method and device
CN107169094B (en) Information aggregation method and device
RU2015116752A (en) METHOD AND SYSTEM OF PROVIDING A CLIENT DEVICE FOR AUTOMATIC UPDATING OF IP ADDRESS ACCORDING TO A DOMAIN NAME
CN111343301B (en) Positioning method, positioning device, electronic equipment and storage medium
CN105224609A (en) Index query method and device
CN111314472A (en) Domain name resolution method, domain name resolution server and terminal equipment
CN108282508B (en) Geographic position determining method and device and information pushing method and device
CN110740191B (en) Resource access method, device, electronic equipment and storage medium
CN107560617B (en) Navigation method based on advertisement player, storage medium and advertisement player
WO2017071122A1 (en) Method and device for acquiring access information of wireless access point
CN110677492A (en) Access request processing method and device, electronic equipment and storage medium
CN112217856A (en) Address acquisition method, device, equipment and storage medium of application example
CN109688094B (en) Suspicious IP configuration method, device, equipment and storage medium based on network security
CN111049822B (en) Short message verification code sending method and device, short message server and storage medium
CN111177481B (en) User identifier mapping method and device
CN106789147B (en) Flow analysis method and device
CN113515612B (en) Method and device for identifying black-birth mobile phone number
CN107682194A (en) Obtain, the methods, devices and systems of processing configuration information
CN113395367B (en) HTTPS service identification method and device, storage medium and electronic equipment
CN112149072A (en) Identity authentication method, device, equipment and medium for platform user
CN109219051B (en) False number determination method, device, equipment and readable storage medium
CN103957230A (en) Client user number determination method, server and system, and server
CN107172129B (en) Server configuration method and device
CN107517162B (en) CDN cache server determination method and device

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