View Source z_email_dnsbl (zotonic_stdlib v1.17.0)
Link to this section Summary
Functions
Default list of DNSWL services
Default list of DNSBL services
Check if the IP address is on one of the default blocklists.
Check if the IP address is on one of the given blocklists.
Check if the IP address is on one of the given blocklists and not on one of the white lists. If an IP address is white listen then this routine always return true.
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.
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.
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.
Link to this section Functions
-spec dns_allowlist() -> [string()].
-spec dns_blocklist() -> [string()].
-spec is_blocked(inet:ip_address()) -> boolean().
-spec is_blocked(inet:ip_address(), [string()]) -> boolean().
-spec is_blocked(inet:ip_address(), [string()], [string()]) -> boolean().
-spec status(inet:ip_address()) -> {ok, notlisted | allowed | {blocked, [string()]}}.
-spec status(inet:ip_address(), list()) -> {ok, notlisted | allowed | {blocked, [string()]}}.
-spec status(inet:ip_address(), list(), list()) -> {ok, {blocked, list()}} | {ok, notlisted} | {ok, allowed}.