Crate actix_allow_deny_middleware

Crate actix_allow_deny_middleware 

Source
Expand description

§Actix middlewares

This crate provides two middlewares for Actix web applications:

  • AllowMiddleware: allows requests from specific IP addresses or ranges.
  • DisallowMiddleware: disallows requests from specific IP addresses or ranges.

Structs§

AllowList
This should be loaded as the first middleware, as in, last in the sequence of wrap() Actix loads middlewares in bottom up fashion, and if the request’s IP address is not in the allow list, it will be denied, and there is no point in continuing to process the request.
DenyList
This should be loaded as the first middleware, as in, last in the sequence of wrap() Actix loads middlewares in bottom up fashion, and if the request’s IP address is in the deny list, it will be denied, and there is no point in continuing to process the request.