Copyright © 2015-2020 Marc Worrell
Authors: Marc Worrell.
dns_allowlist/0 | Default list of DNSWL services. |
dns_blocklist/0 | Default list of DNSBL services. |
is_blocked/1 | Check if the IP address is on one of the default blocklists. |
is_blocked/2 | Check if the IP address is on one of the givem blocklists. |
is_blocked/3 | Check if the IP address is on one of the givem blocklists and not on one of the white lists. |
status/1 | Check the block- or allowlist status of an IP address. |
status/2 | Check the block- or allowlist status of an IP address with the given block lists. |
status/3 | Check the block- or whitelist status of an IP address with the given block- and whitelists. |
dns_allowlist() -> [string()]
Default list of DNSWL services
dns_blocklist() -> [string()]
Default list of DNSBL services
is_blocked(IP::inet:ip_address()) -> boolean()
Check if the IP address is on one of the default blocklists.
is_blocked(IP::inet:ip_address(), RTBLs::[string()]) -> boolean()
Check if the IP address is on one of the givem blocklists.
is_blocked(IP::inet:ip_address(), RTBLs::[string()], WLs::[string()]) -> boolean()
Check if the IP address is on one of the givem blocklists and not on one of the white lists. If an IP address is white listen then this routine always return true.
status(IP::inet:ip_address()) -> {ok, notlisted | allowed | {blocked, [string()]}}
Check the block- or allowlist status of an IP address. If it is blocked then the blocklists where the IP address is blocked are returned.
status(IP::inet:ip_address(), DNSBLs::list()) -> {ok, notlisted | allowed | {blocked, [string()]}}
Check the block- or allowlist status of an IP address with the given block lists. If it is blocked then the blocklists where the IP address is blocked are returned.
status(IP::inet:ip_address(), DNSBLs::list(), DNSWLs::list()) -> {ok, {blocked, list()}} | {ok, notlisted} | {ok, allowed}
Check the block- or whitelist status of an IP address with the given block- and whitelists. If it is blocked then the blocklists where the IP address is blocked are returned.
Generated by EDoc