module Defense
Defined in:
defense.crdefense/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
- .blocklist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool)
- .blocklisted_response=(block : HTTP::Server::Response -> Nil)
- .reset
- .safelist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool)
- .store : Store
- .store=(store : Store)
- .throttle(name : String, limit : Int32, period : Int32, &block : HTTP::Request -> String | Nil)
- .throttled_response=(block : HTTP::Server::Response -> Nil)
Class Method Detail
def self.blocklist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool)
#
def self.throttle(name : String, limit : Int32, period : Int32, &block : HTTP::Request -> String | Nil)
#