How to block website using SQUID server

rahul picture rahul · Jan 20, 2012 · Viewed 65.3k times · Source

I am using squid server in my Debian server, I want to block some websites in my system and I followed all the procedures for this but there is no result.

Answer

Youssef Hanna picture Youssef Hanna · Mar 31, 2012

You have to do some changes in squid.conf and here are the steps:

  • open this file /etc/squid3/squid.conf

  • add these lines:

    acl bad_url dstdomain "/etc/squid3/bad-sites.acl"
    http_access deny bad_url
    
  • then go to /etc/squid3/bad-sites.acl and add domains with this format

    .google.com
    .msn.com
    .app.facebook.com