Bitcoin RPC has the setban command and some other ban related commands. From what I understood from Bitcoin, the network becomes more secure as more nodes are connected sharing blockchain data.
From an internet network point of view, the concept of ban is pretty clear so there is no misconception there.
What I do not understand is why would I want to ban other nodes in the network, since the whole P2P network goal is to interconnect as many nodes as it can so they can secure the blockchain and validate its transactions.