Re: [squid-users] Block Lists

From: Odhiambo WASHINGTON <odhiambo.raburu@dont-contact.us>
Date: Thu, 31 Aug 2006 16:45:11 +0300

* On 31/08/06 10:13 -0300, Rafael Dewes wrote:
| Somebody has a list of blockade for porn sites and sharing, as torrent
| and others p2p?

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
;)

-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
Loan-department manager:  "There isn't any fine print.  At these
interest rates, we don't need it."
Received on Thu Aug 31 2006 - 07:45:34 MDT

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