From: Andre Lorenz <andre@highsecure.de>
To: netfilter@lists.netfilter.org
Cc: woksy@ether.net1.nerim.net
Subject: Re: iptables and ads
Date: Mon, 11 Aug 2003 17:51:21 +0200 [thread overview]
Message-ID: <200308111751.36820.andre@highsecure.de> (raw)
In-Reply-To: <200308111738.35713.woksy@ether.net1.nerim.net>
Am Montag, 11. August 2003 17:38 schrieb woksy@ether.net1.nerim.net:
> Hi people ! ;-)
> I was just answering myself if i could stop ads loading from web pages such
> as yahoo, lycos, & co ? (i don't mean blocking popup, just stopping those
> boring ads from loading)
> I tried to do this with something like that:
> $IPTABLES -A INPUT -i $EXTIF -s 216.73.92.112/32 -j drop-and-log-it
> but it seems that I mistaked.
> Can anybody help me please ?
> Thanks
Hello,
I would solve this like this way
iptables -N drop-and-log-it
iptables -A input -i $EXTIF -j drop-and-log-it
iptables -A drop-and-log-it -s 216.73.92.112/32 -j DROP
iptables -A drop-and-log-it -s 216.73.92.112/32 -j LOG --log-prefix
"SOMETHING_TEXT: "
It isn't elegant, but it might work
mfg
Andre
next prev parent reply other threads:[~2003-08-11 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 15:38 iptables and ads woksy
2003-08-11 15:51 ` Andre Lorenz [this message]
2003-08-11 19:38 ` woksy
2003-08-11 15:54 ` Ramin Dousti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200308111751.36820.andre@highsecure.de \
--to=andre@highsecure.de \
--cc=netfilter@lists.netfilter.org \
--cc=woksy@ether.net1.nerim.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox