(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.
(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.
(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.
(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?
(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?
(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?
(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?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close