LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   squid acl how to block all site except some (https://www.linuxquestions.org/questions/linux-networking-3/squid-acl-how-to-block-all-site-except-some-128024/)

mikmok 12-22-2003 05:42 AM

squid acl how to block all site except some
 
Hi, alll

i need to block all the connection to the web
My users have to go only on a restricted number of site thet i want to manage with a file. something like a whitelist.

thank you very much and
Merry Christmas


Mik

nikai 12-22-2003 08:20 AM

You can do that in your squid.conf using an acl like

acl whitelist dstdomain "/etc/squid/whitelist"
http_access deny !whitelist

and a whitelist that looks like

.slashdot.org
.linuxquestions.org

Another option would be to use an acl with "dst (ip-address/netmask)" instead of "dstdomain (.linuxquestions.org)". Modify to your needs, there are tons of other options described in the squid.conf comments.

Cheers,
n.


All times are GMT -5. The time now is 01:56 AM.