You can’t ban at the protocol level, which is the great feature of nostr. Clients and relays can cater to customers however they want, which is the free market approach
that's beauty core feature openness - relay admin has right block/filter/rate-limit whatever they think is harmful/illegal/DOSing-resources