Hi,

ich habe ein kleines Problem. Ich möchte eine host.deny-Liste für eine RewriteRule erzeugen für IPs die zuviel herunterladen. Ich habe per Konfiguration analog dazu überredet mit die entsprechenden IPs formatiert zu liefern (ich weiß die Bots muß ich noch über die Konfiguration herausfiltern):
Code:
ts@ts-mobile:~/Sites
15:13:57 - 586> gunzip -c Log-2004-12.gz | analog +ganalog-hostdeny.cfg  -                                                                             
x       VE      analog 5.32
x       HN      CAN in Automation
x       PS      2004    12      23      15      14
x       FR      2004    12      01      00      00
x       LR      2004    12      22      00      00
S       *f      1.000000%B      a
S       Rb      2310    1.845   66.249.66.164
S       Rb      4918    3.139   203.101.103.2
S       Rb      8862    2.043   211.99.10.1
S       Rb      2202    1.221   gimli.seekbot.net
S       Rb      681254  91.752  [not listed: 13246]
Für die RewriteMap brauche ich aber folgende Struktur:
Code:
IP       -
Ich habe das jetzt so gelöst:
Code:
ts@ts-mobile:~/Sites
15:08:35 - 585> gunzip -c Log-2004-12.gz | analog +ganalog-hostdeny.cfg  - | grep  "^S" | grep -v "*f" | grep -v "not listed" | awk '{ print $5"\t-" }'
66.249.66.164   -
203.101.103.2   -
211.99.10.1     -
gimli.seekbot.net       -
Aber das geht doch bestimmt auch noch schöner, oder? Also, wenn jemand Tips hat wie das zu verbessern wäre.

Danke.

Thilo