How to stop squid from logging some specific URL?

Issues related to configuring your network
Post Reply
Kunwar
Posts: 55
Joined: 2014/08/28 23:21:43

How to stop squid from logging some specific URL?

Post by Kunwar » 2014/10/05 14:56:48

I have a centOS 7 server with Squid installed as transparent proxy in it and it's doing a great job. The only problem that I am having is that it's keeping log of my CRM as well which generates one request every 3 second and it's so annoying. I want to exclude this particular site. I have only one client computer right now and the log is crowded. Imagine 50-60 computers doing the same thing. How do I do it?

Kunwar
Posts: 55
Joined: 2014/08/28 23:21:43

Re: How to stop squid from logging some specific URL?

Post by Kunwar » 2014/10/21 21:31:22

After some research I found out that this can be achieved through making some changes to squid.conf file....

to do so make a separate ACL with all the websites that you want to prevent form logging... and add the following to squid.conf file:

Code: Select all

log_access deny safelist #where safelist is acl name 

Post Reply