# Como bloquear um intervalo de IPs?

**URL:** https://meta.discourse.org/t/how-to-block-an-ip-range-screened-ips-not-being-blocked/386851
**Category:** Support
**Created:** [Outubro 27, 2025, 5:32pm UTC](https://meta.discourse.org/t/how-to-block-an-ip-range-screened-ips-not-being-blocked/386851 "2025-10-27T17:32:58Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![sb56637](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sb56637](https://meta.discourse.org/u/sb56637)
#### Post date: [Outubro 27, 2025, 7:57pm UTC](https://meta.discourse.org/t/how-to-block-an-ip-range-screened-ips-not-being-blocked/386851/8 "2025-10-27T19:57:35Z")

</div>

Obrigado por confirmar.

Então, qual seria o método mais fácil para negar solicitações de um IP ou intervalo de IPs? Encontrei isto, mas parece ser o oposto do que preciso. (lista branca em vez de lista negra) e mexer na configuração do Nginx dentro do contêiner parece um trabalho totalmente improvisado:

> [@How to disable access to anyone not coming from a specific IP address](https://meta.discourse.org/t/how-to-disable-access-to-anyone-not-coming-from-a-specific-ip-address/114907/8):
>
> @pfaffman thank you for the pointers. I fixed it slight_smile Here is solution in case someone needs it. ./launcher enter app from /var/discourse folder Go to '/etc/nginx/ folder and create file ‘whitelist-ip.conf’ add below lines in ‘whitelist-ip.conf’ file allow 192.168.1.1; deny all; open /etc/nginx/conf.d/discourse.conf go to line no 37 see below section, it is for port 443 server { include /etc/nginx/whitelist-ip.conf; } add line ‘include /etc/nginx/whitelist-ip.conf;’ Test Ngin…

---

_[View the full topic](https://meta.discourse.org/t/how-to-block-an-ip-range-screened-ips-not-being-blocked/386851)._
