Next | Welcome to my ~/bin | 21 |
localtime was inspired by two filters written by Dan Bernstein:
tai64nlocal
dnsfilter
dnsfilter is great; it takes this
67.70.87.176 - - [08/Jul/2004:21:50:16 -0400] "GET /pics/medium-sigils.gif HTTP/1.1" 200 4420 "http://perl.plover.com/idiocy/RandProg.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
67.70.87.176 - - [08/Jul/2004:21:50:17 -0400] "GET /pics/ws.gif HTTP/1.1" 200 1123 "http://perl.plover.com/idiocy/RandProg.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
64.68.82.55 - - [08/Jul/2004:21:50:28 -0400] "GET /obfuscated/numbercode.pl HTTP/1.0" 200 858 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
12.168.173.254 - - [08/Jul/2004:21:54:44 -0400] "GET /yak/performance HTTP/1.1" 301 327 "-" "Java/1.4.2_04"
221.186.146.26 - - [08/Jul/2004:21:56:06 -0400] "HEAD / HTTP/1.1" 304 - "-" "Hatena Antenna/0.4 (http://a.hatena.ne.jp/help)"
Turns it into this:
67.70.87.176=toronto-hse-ppp3877647.sympatico.ca - - [08/Jul/2004:21:50:16 -0400] "GET /pics/medium-sigils.gif HTTP/1.1" 200 4420 "http://perl.plover.com/idiocy/RandProg.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
67.70.87.176=toronto-hse-ppp3877647.sympatico.ca - - [08/Jul/2004:21:50:17 -0400] "GET /pics/ws.gif HTTP/1.1" 200 1123 "http://perl.plover.com/idiocy/RandProg.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
64.68.82.55=crawler11.googlebot.com - - [08/Jul/2004:21:50:28 -0400] "GET /obfuscated/numbercode.pl HTTP/1.0" 200 858 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
12.168.173.254:temporary-failure - - [08/Jul/2004:21:54:44 -0400] "GET /yak/performance HTTP/1.1" 301 327 "-" "Java/1.4.2_04"
221.186.146.26=ns.hatena.ne.jp - - [08/Jul/2004:21:56:06 -0400] "HEAD / HTTP/1.1" 304 - "-" "Hatena Antenna/0.4 (http://a.hatena.ne.jp/help)"
Next | Menu | Copyright © 2005 M. J. Dominus |