Search code examples
debiansquid

How to block website using SQUID server


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.


Solution

  • 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