[squid-users] Re: Re: Block List

From: Rafael Dewes <suporte@dont-contact.us>
Date: Thu, 31 Aug 2006 11:25:50 -0300

This one i have, I mainly need a list to block porn sites.

Do you have one ?

++++++++++++++++++++++++

> Here is how I do it....
> 1) Stick a line in /etc/crontab (chose a different time than mine)
>
> 13 */4 * * * root /scripts/malware_block_list.sh
> /dev/null 2>&1
>
> 2) /scripts/malware_block_list.sh contains:
>
> <--cut-->
>
> #!/bin/sh
> usr/local/bin/wget -O -
http://malware.hiperlinks.com.br/cgi/submit?action=list_squid > \
> /usr/local/etc/squid/malware_block_list.txt
> /usr/local/sbin/squid -k reconfigure
>
> <--cut here-->
>
>
> In squid.conf, you need to use an ACL to block the sites:
>
> acl malware_block_list url_regex -i \
> "/usr/local/etc/squid/malware_block_list.txt"
>
> http_access deny malware_block_list
> deny_info
http://malware.hiperlinks.com.br/denied.shtml malware_block_list
>
> PS: The funny part of all this is that it's maintained in your
country
> ;)
Received on Thu Aug 31 2006 - 08:23:54 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT