Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to block website using SQUID server

Tags:

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.

like image 748
rahul Avatar asked Jan 20 '12 15:01

rahul


2 Answers

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 
like image 76
Youssef Hanna Avatar answered Oct 22 '22 18:10

Youssef Hanna


You can also do by following changes in squid.conf

acl toblock dstdomain .facebook.com .google.com http_access deny toblock 

like image 32
abhisheyke Avatar answered Oct 22 '22 19:10

abhisheyke