On Fri, Jun 04, 2004 at 07:28:35AM +0700, adi wrote:
> On Fri, Jun 04, 2004 at 09:27:15AM +0000, Dion Sasmito wrote:
> >#!/bin/sh
> >cat porno.txt | while read site rest 
> >do
> >iptables -t filter -A FORWARD -d "$site" -j DROP
> >done
> >
> 
> sebelum ada yang mengingatkan soal 'useless use of cat', saya
> duluin :-))
> 
> while read i; do whatever; done < prono.txt

Dang, keduluan. Hahaha.

Anyway, sekedar tambahan, tentu saja $site di atas itu harus hostnya
doang (name or IP, e.g. detik.com), gak bisa URL (e.g.
http://detik.com).

Ronny

Attachment: pgpi91AgjUpXm.pgp
Description: PGP signature

Kirim email ke