listbanned none

The listbanned RPC lists all banned IPs/Subnets.

bitcoin-cli listbanned

*bitcoin-cli help listbanned

listbanned

List all banned IPs/Subnets.

Examples:
> bitcoin-cli listbanned 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/