Liking cljdoc? Tell your friends :D

ring-firewall-middleware.cidr


client-allowed?clj

(client-allowed? client-chain allow-list)

Does the ring request satisfy the allow list? For a request to be allowed every ip address in the http header chain needs to be allowed.

Does the ring request satisfy the allow list? For a request to be allowed
every ip address in the http header chain needs to be allowed.
sourceraw docstring

client-denied?clj

(client-denied? client-chain deny-list)

Does the ring request satisfy the deny list? For a request to be denied just one ip address in the http header chain needs to be denied.

Does the ring request satisfy the deny list? For a request to be denied
just one ip address in the http header chain needs to be denied.
sourceraw docstring

client-ip-chainclj

(client-ip-chain request)

Gets the set of IPs involved in the http request headers and source network packet.

Gets the set of IPs involved in the http request headers and source network packet.
sourceraw docstring

get-forwarded-ip-addressesclj

(get-forwarded-ip-addresses request)

Gets all the forwarded ip addresses from a request.

Gets all the forwarded ip addresses from a request.
sourceraw docstring

in-cidr-range?clj

(in-cidr-range? cidr client-ip)

Is a given client ip within a given cidr range?

Is a given client ip within a given cidr range?
sourceraw docstring

in-cidr-ranges?clj

(in-cidr-ranges? cidr-ranges ip-address)

Is a given ip address in one of the provided cidr ranges?

Is a given ip address in one of the provided cidr ranges?
sourceraw docstring

private-address?clj

(private-address? ip-address)

Is this a private ip address as defined by RFC 1918 or RFC 4193?

Is this a private ip address as defined by RFC 1918 or RFC 4193?
sourceraw docstring

private-ipv4-subnetsclj

source

private-ipv6-subnetsclj

source

private-subnetsclj

source

public-address?clj

(public-address? ip-address)

Is this not a private ip address as defined by RFC 1918 or RFC 4193?

Is this not a private ip address as defined by RFC 1918 or RFC 4193?
sourceraw docstring

public-ipv4-subnetsclj

source

public-ipv6-subnetsclj

source

public-subnetsclj

source

touchclj

(touch x)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close