Mailing List Archive


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

Re: [tlug] spam and flash ads



On Thu, 28 Dec 2006 13:12:03 +0900, Darren Cook <darren@example.com>
wrote:

> Alternatively is there a (really) easy way to block it at the network
> level?

Easiest solution:

Add this to your /etc/hosts and restart Firefox:

0.0.0.0			speed.pointroll.com


Harder solution but probably better in the long run:

Set up BIND as a caching nameserver. In your named.conf, declare that
you're the authoritative nameserver for all domains you want to block
and point BIND to an empty zonefile. Something like this:

Excerpts from /etc/named.conf:

options {
        directory "/var/named";
        pid-file "named.pid";
};

zone "advertising.com" IN {
        type master;
        file "db.blank";
        allow-update { none; };
};

/var/named/db.blank looks like this:

$TTL 3h

@    IN      SOA     my.nameserver. my.email.address. (
        2       ;       Serial number
        3h      ;       Refresh after 3 hours
        1h      ;       Retry after 1 hour
        1d      ;       Expire after 1 day
        3h )    ;       Negative caching TTL of 3 hours

@    IN      NS      my.nameserver.


--
G. Stewart - godwin.stewart@example.com

Let's call it an accidental feature.
            -- Larry Wall

Attachment: pgpXR3GVOILq5.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links