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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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