C# 클래스 StopGuessing.Models.IpHistory

This class keeps track of recent login successes and failures for a given client IP so that we can try to determine if this client should be blocked due to likely-password-guessing behaviors.
파일 보기 프로젝트 열기: Microsoft/StopGuessing 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Address System.Net.IPAddress
CurrentBlockScore StopGuessing.DataStructures.DecayingDouble
RecentPotentialTypos SmallCapacityConstrainedSet

공개 메소드들

메소드 설명
IpHistory ( IPAddress address, BlockingAlgorithmOptions options ) : System

메소드 상세

IpHistory() 공개 메소드

public IpHistory ( IPAddress address, BlockingAlgorithmOptions options ) : System
address System.Net.IPAddress
options BlockingAlgorithmOptions
리턴 System

프로퍼티 상세

Address 공개적으로 프로퍼티

The IP address being tracked.
public IPAddress,System.Net Address
리턴 System.Net.IPAddress

CurrentBlockScore 공개적으로 프로퍼티

The current block score for this IP, in the form of a number that decays with time.
public DecayingDouble,StopGuessing.DataStructures CurrentBlockScore
리턴 StopGuessing.DataStructures.DecayingDouble

RecentPotentialTypos 공개적으로 프로퍼티

A set of recent login attempts that have failed due to incorrect passwords that are kept around so that, when the correct password is provided, we can see if those passwords were typos and adjust the block score to reduce past penalities given to failed logins that were typos. This is implemented as a capacity constrained set, similar to a cache, where newer values push out old values.
public SmallCapacityConstrainedSet RecentPotentialTypos
리턴 SmallCapacityConstrainedSet