Re: [squid-users] Blocking Porn sites....

From: David Kandou <davidkandou@dont-contact.us>
Date: Thu, 6 May 2004 15:42:40 +0700

Thank's..........
 
David Kandou
 
-------Original Message-------
 
From: Henrik Nordstrom
Date: Thursday, May 06, 2004 1:13:28 PM
To: David Kandou
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Blocking Porn sites....
 
On Thu, 6 May 2004, David Kandou wrote:
 
> How to block porn site like :
> http://sanggrahan.org
> http://66.98.190.156
>
> in squid conf i wrote :
>
> acl xxx1 dstdomian "/tmp/forbidden_url.txt"
 
dstdomain, not dstdomian.. and this matches destination hosts, not URLs.
 
acl xxx1 dstdomain "/tmp/forbidden_domains.txt"
 
you also need
 
acl xxx2 dst "/tmp/forbiden_ips.txt"
 
in forbidden_hosts.txt you enter the hosts and/or domain names you block
access to. www.playboy.com blocks the host www.playboy.com, .playboy.com
(note the leading dot) blocks the whole domain playboy.com including the
host playboy.com.
 
> http_access deny xxx1
 
and also add
 
http_access deny xxx2
 
Regards
Henrik
 
.
Received on Thu May 06 2004 - 02:34:57 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT