# How can I block an IP address? are there wildcards?

**URL:** <https://meta.discourse.org/t/how-can-i-block-an-ip-address-are-there-wildcards/25299>\
**Category:** Product Support\
**Created:** [February 16, 2015, 9:21pm UTC](https://meta.discourse.org/t/how-can-i-block-an-ip-address-are-there-wildcards/25299 "2015-02-16T21:21:19Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [May 28, 2016, 11:09pm UTC](https://meta.discourse.org/t/how-can-i-block-an-ip-address-are-there-wildcards/25299/13 "2016-05-28T23:09:55Z")

</div>

IMHO a compromise would be the better approach than an all out preemptive Blacklisting.

Kind of a “extremely harsh manual roll-up”

That is, wait for some SPAM to happen.  
Say it’s IP is “123.123.123.123”

What Discourse does automatically is when more SPAM happens from  
“123.123.123.124”, “123.123.123.125” etc. it Blacklists “123.123.123.0/24”  
That is, all IPs beginning with “123.123.123.\_\_”

As long is your forum’s target audience is only very local, you could do the roll-up yourself.

eg. SPAM happens from “123.123.123.123” you check and find that those using that IP should have no legitimate interest in joining your forum.

You could add “123.123.123.0/24” yourself without waiting for Discourse to do a roll-up.

Take care with this approach. bit masking IPs isn’t exactly the easiest thing to understand and doing it wrong might Blacklist innocents

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-block-an-ip-address-are-there-wildcards/25299)._
