[ale] Blocking ad sites with ipchains

Joe Knapka jknapka at charter.net
Mon Nov 29 11:58:11 EST 1999


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






More information about the Ale mailing list