title: Apache2 Don't log bad requests for centain IPs in CustomLog
body: <h2>I'm trying to remove some IPs that are making noise over my little computer server</h2>
  <p>in the file  <code>/var/log/apache2/access.log</code> (custom log)</p>
  <p>Here there are</p>
  <pre><code>91.232.30.199 - - [11/Jul/2021:18:12:38 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  194.54.83.206 - - [11/Jul/2021:18:13:21 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  91.232.30.199 - - [11/Jul/2021:18:14:59 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  194.54.83.206 - - [11/Jul/2021:18:15:22 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  64.62.197.62 - - [11/Jul/2021:18:15:48 +0200] &quot;GET / HTTP/1.1&quot; 403 281 &quot;-&quot; &quot;-&quot;
  91.232.30.199 - - [11/Jul/2021:18:16:35 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  194.54.83.206 - - [11/Jul/2021:18:17:23 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  91.232.30.199 - - [11/Jul/2021:18:18:20 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  91.232.30.199 - - [11/Jul/2021:18:19:06 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  91.232.30.199 - - [11/Jul/2021:18:20:00 +0200] &quot;POST / HTTP/1.1\n&quot; 400 0 &quot;-&quot; &quot;-&quot;
  </code></pre>
  <p>So, if they don't make Bad Requests it's not difficult using mod_setenvif (SetEnvIf)</p>
  <pre><code>        SetEnvIf Remote_Addr &quot;^194\.54\.83\.102&quot; dontlog=1
          CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog
  </code></pre>
  <p>and they're hidden. In this way I've excluded also the logging of my localhost requests</p>
  <p>But I don't have understand <b>if they makes Bad Requests (error 400) or some other errors like Not Found (error 404) how to hide them</b></p>
  <p>What I have to do?</p>