« やっとここまで来ました…… | メイン | めざせ20%OFF! »

2004年10月12日

* いじったことを書いてみる

Tip 1: Rename your comment script

The reasoning: The quickest and easiest way to discover the URL of the comment script is just to search the page for mt-comments.cgi, which is its default name.

The fix: As well as giving the mt-comments.cgi file a new name (something relatively random, though make sure you keep the .cgi suffix) you'll need to edit the CommentScript setting in your mt.cfg file. The best way to do this so as to ensure uninterrupted service is to copy (not rename) the script to the new filename, then edit the config, then delete the old script.

Unfortunately, it won't be quite that easy for most MT users, as they're still using templates based on older versions that didn't use the <$MTCommentScript$> tag to get the location of the script, and have mt-comments.cgi hard-coded instead. It's worth the time to go through your templates and do some search-and-replaces for this.

Source: "Seven quick tips for a spam-free blog" of "The Accumulating Evidence of Yoz Grahame's Infuriating Inability to Prioritise"

要は、「コメントをつけるcgiの名前を変更する」ということです。version 3.xでは、mt.cfgの333-338行で、スクリプトの名前が指定できるようになっています。もちろん変更する場合は、該当するスクリプトの前にある#(とスペース)を取っておいてください。コメントスクリプトのついでに、トラックバックのスクリプトも変更しました。version 2.xではこの変更ができないので、個別エントリーのテンプレートや、コメント関係のテンプレート(何種類かあります)を調べて、<$MTCommentScript$>部分に、名前を変えたコメント用スクリプト(例えばmt-naninani.cgi)を入力すればいいようです。

効果てきめんだといいのですが。でも、相手も「コメント用のスクリプト名を割り出して動かす」とか、やるんでしょうかねえ……。だとしたら、コメントは承認制にするしかないのかな、とも思 います。そういうのは避けたいのですが。

投稿者 Remi : 2004年10月12日 22:27

トラックバック

このエントリーのトラックバックURL:
http://www.orpharion.com/blogcgi/mt-tb.cgi/10