<blockquote>
<p><strong>What I do not understand is why would I want to ban other nodes in the network,</strong></p>
</blockquote>
<p>According to <a href="https://bitcoincore.reviews/19825" rel="nofollow noreferrer">https://bitcoincore.reviews/19825</a> some of the reasons suggested include:</p>
<blockquote>
<ul>
<li>maybe you want to not allow connections from/to certain cloud providers. they have a lot of ip ranges</li>
<li>it's rather for not up-to-date nodes or bugged nodes</li>
<li>Ban nodes not sending blocks or nodes attempting to swarm your node.</li>
<li>to keep the network healthy from bad actors such as spy nodes</li>
</ul>
</blockquote>
<p>and so on.</p>
<hr />
<blockquote>
<p><strong>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.</strong></p>
</blockquote>
<p>My understanding is that interconnecting as many nodes as possible doesn't require that each node individually needs to communicate with as many as possible.</p>
<p>Just as the notion of <a href="https://en.wikipedia.org/wiki/Six_degrees_of_separation" rel="nofollow noreferrer">six degrees of separation</a> doesn't require that we all individually try to communicate directly with seven billion other people.</p>

CC BY-SA 4.0
2022-09-08T22:09:58.527Z
2022-09-08T22:09:58.527Z
RedGrittyBrick
<p>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.</p>
<p>From an internet network point of view, the concept of ban is pretty clear so there is no misconception there.</p>
<p>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.</p>

<bitcoin-core><bitcoind><json-rpc>
Why would I need to ban peer nodes in bitcoin network?
javi11br
# Why would I need to ban peer nodes in bitcoin network?

(Asked by: username_0 on 2022-09-08)

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.

**Tags:** bitcoin-core, bitcoind, json-rpc


---

## 1 answers

### Answer by username_1 on 2022-09-08. Score: 3 | Accepted answer

> **What I do not understand is why would I want to ban other nodes in the network,**

According to <https://bitcoincore.reviews/19825> some of the reasons suggested include:

> * maybe you want to not allow connections from/to certain cloud providers. they have a lot of ip ranges
> * it's rather for not up-to-date nodes or bugged nodes
> * Ban nodes not sending blocks or nodes attempting to swarm your node.
> * to keep the network healthy from bad actors such as spy nodes

and so on.

---

> **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.**

My understanding is that interconnecting as many nodes as possible doesn't require that each node individually needs to communicate with as many as possible.

Just as the notion of [six degrees of separation](https://en.wikipedia.org/wiki/Six_degrees_of_separation) doesn't require that we all individually try to communicate directly with seven billion other people.


---

