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

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 6 May 2004 07:58:08 +0200 (CEST)

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 Wed May 05 2004 - 23:58:11 MDT

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