module Defense

Defined in:

defense.cr
defense/allow2ban.cr
defense/blocklist.cr
defense/fail2ban.cr
defense/handler.cr
defense/memory_store.cr
defense/redis_store.cr
defense/safelist.cr
defense/store.cr
defense/throttle.cr

Class Method Summary

Class Method Detail

def self.blocklist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool) #

[View source]
def self.blocklisted_response=(block : HTTP::Server::Response -> Nil) #

[View source]
def self.reset #

[View source]
def self.safelist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool) #

[View source]
def self.store : Store #

[View source]
def self.store=(store : Store) #

[View source]
def self.throttle(name : String, limit : Int32, period : Int32, &block : HTTP::Request -> String | Nil) #

[View source]
def self.throttled_response=(block : HTTP::Server::Response -> Nil) #

[View source]