Re: [squid-users] Blocking an entire TLD

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 06 Jul 2009 20:37:59 +1200

Dayo Adewunmi wrote:
> Amos Jeffries wrote:
>> Dayo Adewunmi wrote:
>>> Is it possible to use noaccess.dat to block access to an entire
>>> top-level domain?
>>
>> Yes.
>>
>> Now, what type of software are you using? and is it related to Squid
>> in any way?
>>
>>
>> Amos
> I'm using 3.0.STABLE1-1ubuntu1 on an Ubuntu 8.04 server.
> In /etc/squid3/squid.conf I add this line:
>
> acl noaccess dstdomain "/etc/squid3/noaccess.dat"
>
> and all the URLs listed (one per line) in this file become inaccessible to
> users. I enter URLs in the following format:
>
> .example.com
>
> the result is user get an Access Denied error when trying to access
> example.com and all it's subdomains.
>
> What I'm looking for now, is a way to block an entire TLD, e.g. one like
>
> .cc
>
> How would I go about doing this?

Add '.cc' on a line in that file.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE16
   Current Beta Squid 3.1.0.9
Received on Mon Jul 06 2009 - 08:38:07 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 08 2009 - 12:00:03 MDT