[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Blocking ad sites with ipchains
- Subject: [ale] Blocking ad sites with ipchains
- From: jknapka at charter.net (Joe Knapka)
- Date: Mon, 29 Nov 1999 11:58:11 -0500
You would need a rule per site you want to block.
In the output chain, you want to block connections
to port 80 of the site, so:
ipchains -I output -d ad.monger.com 80 -p tcp -y -j REJECT
should do the trick. Maybe DENY, instead of REJECT, if
your browser puts up annoying dialogs when a connection is
refused. That might have bad side effects though.
HTH,
- Joe
smn wrote:
>
> I used to include a rule to block specific ad sites using ipchains.
> Could someone refresh my memory of this rule?
>
> Thanks,
> Scott
-- Joe Knapka