Search squid archive

Re: Blocking an entire TLD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux