<p>Whitelisting ips is possible with this annotation: <code>ingress.kubernetes.io/whitelist-source-range: &quot;1.1.1.1/24&quot;</code></p>
<p>Is it possible to do <strong>the same with blacklisting?</strong> would be nice to block some suspicous requests.</p>

8bit
<p>Unfortunately support for blocking ip addresses is not supported natively by traefik and any requests were <a href="https://github.com/traefik/traefik/pull/4454" rel="nofollow noreferrer">declined</a> with a comment:</p>
<blockquote>
<p>We want to keep the IP filtering section as simple as possible and we
think that your use case could be addressed differently.</p>
<p>We think that a blacklisting task can be better achieved using a
firewall.</p>
<p>So, for now, and I insist on the &quot;for now&quot;, we will decline your pull
request.</p>
</blockquote>
<p>For the same reason <a href="https://github.com/traefik/traefik/pull/7926" rel="nofollow noreferrer">#7926</a> was declined.</p>
<p>You may be interested though in the those two plugins:</p>
<ul>
<li><a href="https://pilot.traefik.io/plugins/276812076107694611/deny-ip-plugin" rel="nofollow noreferrer">https://pilot.traefik.io/plugins/276812076107694611/deny-ip-plugin</a></li>
<li><a href="https://pilot.traefik.io/plugins/280093067746214409/fail2-ban" rel="nofollow noreferrer">https://pilot.traefik.io/plugins/280093067746214409/fail2-ban</a></li>
</ul>
