Re: [squid-users] Re: Block List

From: Odhiambo WASHINGTON <odhiambo.raburu@dont-contact.us>
Date: Thu, 31 Aug 2006 21:06:38 +0300

* On 31/08/06 11:25 -0300, Rafael Dewes wrote:
| 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
| > ;)

Install Dansguardian!!

-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
+======================================================================+
A candidate is a person who gets money from the rich and votes from the
poor to protect them from each other.
Received on Thu Aug 31 2006 - 12:07:03 MDT

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