Re: [squid-users] Blocking an entire TLD

From: Dayo Adewunmi <contactdayo_at_gmail.com>
Date: Wed, 08 Jul 2009 00:22:13 +0100

Amos Jeffries wrote:
> 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
I tried that before and it wouldn't work. Now it works beautifully.
I guess I must have forgotten to reload squid.
Thanks!

Dayo
Received on Tue Jul 07 2009 - 23:22:34 MDT

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