referer を付けてアクセスしてくる robot がいて、本日のリンク元に
激しい勢いで数字を積み上げてくれます。こんな変更はいかがでしょうか。
Index: tdiary.rb
===================================================================
RCS file: /cvsroot/tdiary/core/tdiary.rb,v
retrieving revision 1.175
diff -u -1 -r1.175 tdiary.rb
--- tdiary.rb 20 Jan 2004 15:35:11 -0000 1.175
+++ tdiary.rb 7 Feb 2004 08:04:24 -0000
@@ -1280,3 +1280,3 @@
end
- if @diary then
+ if @diary and !@conf.bot? then
@diary.add_referer( @cgi.referer )
@@ -1382,3 +1382,3 @@
@diary = self[@date]
- if @diary and referer? then
+ if @diary and referer? and !@conf.bot? then
@diary.add_referer( @cgi.referer )
--
/
/__ __ Akinori.org / MUSHA.org
/ ) ) ) ) / FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp
"It seems to me as we make our own few circles 'round the sun
We get it backwards and our seven years go by like one"
|