[squid-users] block sites access

From: Eicke <eick.jac@dont-contact.us>
Date: Wed, 5 Nov 2003 18:02:39 -0200

Hi folks,

I did get block sites access with the following acls:

acl blockedsites url_regex "/usr/local/squid/etc/bloqueados/block.txt"
acl unblockedsites url_regex "/usr/local/squid/etc/bloqueados/unblock.txt"
acl all src 0.0.0.0/0.0.0.0
acl local src 192.168.5.0/255.255.255.224
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow local
http_access allow unblockedsites all
http_access deny blockedsites all
http_access deny all

# ls -la /usr/local/squid/etc/bloqueados/
total 8
drwxr-xr-x 2 root wheel 512 Nov 5 16:37 .
drwxr-xr-x 3 root wheel 512 Nov 5 16:14 ..
-rw-r--r-- 1 root wheel 13 Nov 5 16:49 block.txt
-rw-r--r-- 1 root wheel 12 Nov 5 16:41 unblock.txt

# more block.txt
sexo
estadao

# more unblock.txt
www.sex.com

I get access to www.sexo.com.br.

Please Is there something wrong?
Could you help me???
Regards Eicke.
Received on Wed Nov 05 2003 - 13:05:02 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:07 MST