Method for analyzing and storing redis for risk control anti-fraud ipv4

A wind control and be-bs technology, which is applied in the anti-fraud business field of the wind control system, can solve problems such as occupying a large memory space, and achieve the effect of reducing analysis

Pending Publication Date: 2022-01-11
TIANYI ELECTRONICS COMMERCE
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, ipv4 is divided into segments. When parsing and judging an ip, if all of them are parsed out, a large number of ips will be generated and a large amount of memory space will be occupied.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for analyzing and storing redis for risk control anti-fraud ipv4
  • Method for analyzing and storing redis for risk control anti-fraud ipv4
  • Method for analyzing and storing redis for risk control anti-fraud ipv4

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] Such as Figure 1-2 , the present invention provides a method for risk control and anti-fraud ipv4 parsing and storing redis, comprising the following steps:

[0054] The structure of IPV4 is 4-segment, such as 1.16.3.54. At present, ip is allocated in intervals, such as starting ip222.128.0.0 and ending ip222.131.255.255. The ip in this interval is all from Beijing. For convenience and speed The location of the ip city, longitude and latitude, the ip is disassembled and stored in segments, and now it is stored in redis and stored in the form of hash;

[0055] First divide the ip into four sections ABCD, the starting ip is AsBsCsDs and the ending ip is AeBeCeDe, where the subscript s means start, and the amount means end. According to the assigned ip rules, the first digit A must be the same, and the start will be Change ip to ABsCsDs and terminate ip to ABeCeDe; in ABCD, A represents the first paragraph, B represents the second paragraph, C represents the third paragr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for analyzing and storing redis for risk control anti-fraud ipv4. The method comprises the following steps: carrying out segmented disassembly and storage of an ip, storing the ip in the redis, and storing the ip in a hash form; dividing the ip into four segments A, B, C and D, wherein a starting ip is AsBsCsDs, a termination ip is AeBeCeDe, subscript s represents start, subscript e represents end, and according to allocated ip rules, the starting ip is changed into ABsCsDs and the termination ip is changed into ABeCeDe when a first bit A is the same; in ABCD, A represents a first segment, B represents a second segment, C represents a third segment, and D represents a fourth segment. According to the invention, ip segments are analyzed one by one and then stored, so that the problem that a large amount of memory space is occupied is caused; by splitting the segments, the analysis is greatly reduced, and the occupied memory space is reduced; in risk control anti-fraud services, the operation and transaction request of one client can be quickly judged through redis, and whether the operation and transaction request is in a blacklist or not is positioned.

Description

technical field [0001] The invention relates to the anti-fraud business field of a wind control system, in particular to a method for wind control and anti-fraud ipv4 parsing and storing redis. Background technique [0002] The invention belongs to the risk control system. In the anti-fraud business scenario, for the operation and transaction of customers and merchants, during the request process of customers and merchants, it will judge whether their IPs exist in the blacklist. If there is a blacklist, it will The operation or transaction requested by it is rejected, reducing the capital loss of the enterprise and protecting the interests of the enterprise. [0003] However, ipv4 is divided into segments. When parsing and judging an ip, if all of them are parsed out, a large number of ips will be generated and a large amount of memory space will be occupied. Contents of the invention [0004] The technical problem to be solved by the present invention is to overcome the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/2455G06F16/22G06F16/29
CPCG06F16/24553G06F16/2255G06F16/29
Inventor 李真张荣燕杨富安徐冬冬赵新浪杨章春王维龙李宁
Owner TIANYI ELECTRONICS COMMERCE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products