Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Defense
Class methods
blocklist
(name :
String
=
UUID
.random.to_s, &block :
HTTP::Request
->
Bool
)
Source
blocklisted_response=
(block :
HTTP::Server::Response
->
Nil
)
Source
reset
Source
safelist
(name :
String
=
UUID
.random.to_s, &block :
HTTP::Request
->
Bool
)
Source
store
Source
store=
(store :
Store
)
Source
throttle
(name :
String
, limit :
Int32
, period :
Int32
, &block :
HTTP::Request
->
String
|
Nil
)
Source
throttled_response=
(block :
HTTP::Server::Response
->
Nil
)
Source
Nested types
Defense::Allow2Ban
Defense::Fail2Ban
Defense::Handler
Defense::MemoryStore
Defense::RedisStore
Defense::Store