# SetEnvIf do not log local network visits

## SetEnvIf do not log local network visits

i’m trying to prevent apache from loging my own visits.. I’ve enabled SetEnvIf.so and added these lines to my vhost :

There must be something I’m doing wrong since it still logs 192.168.1.10 (.1 and .5 too) to my access.log.
Should SetEnvIf be set somewhere else instead ?
Cheers.

### Solution 1:

You should add `env=!dontlog` at the end of your CustomLog line.

Example (I also noticed the backslashes were not necessary):

``````<VirtualHost *:80>
...