A Django site.
2月 14, 2008
» WP-SpamFree: A Powerful Anti-Spam Plugin for WordPress

This feed and post is written by aka and licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. (digitalfingerprint: 6239bd715870926370ef9d60ec28f896)
K9y_D#A4T+6m2M*p?3c?93799Cs-tHe-++9Z6=7dy@Q@?cmW2-V83!Q_2-8yWU%Z


tai さんの記事にもあるのですが,ヨサゲなアンチスパムプラグインがあったので久しぶりに試してみた。

WordPress 2.3 になってから Comments Post Rewriter が使えなくなったので,代わりになる強力なアンチスパムプラグインを探していました。ユーザにコメント以外の何かしらの入力を強いるような機構はどうも苦手なので,そういったものがついていないプラグインを探していました。そこで見つけたのが WP-SpamFree: A Powerful Anti-Spam Plugin for WordPress! | WebGeek。配布元を読むと,人間か bot のアクセスかを見分けるために CAPTHA や „これに答えて“ といったユーザに入力の手間をかけるものではなく, Java Script と Cookie を使っているプラグインであること; コンタクトスパムを100%の確率で撃墜出来ているスクリプトの改造版である事なんかが書かれています 。

使い方はいたって簡単。

  1. プラグインを有効化
  2. wp-comments-post.php へinclude(dirname(__FILE__)."/wp-content/plugins/wp-spamfree/inc-commentvalidation.php");を追記

これだけ。
ここでもこれを 2008⁄01/18の真夜中から使っています。そろそろ40時間ほど経ちますが,コメントスパムは100%防げています。trackback スパムに関してはいつもの Simple Trackback Validation でこれもまた100%防げています。コメントスパムの投稿自体されないので MySQL にも負担をかけずに済むというサーバに優しい設計です。

ここの動作環境:

  • Apache—2.2.6
  • PHP—5.2.5

さて,翻訳ですが,プラグイン自体の管理画面は無いので,ドキュメントをチマチマやっていきます。


Ähnliche Beiträge


Ähnliche Beiträge

8月 23, 2007
» コメント通知メールの文字化け

This feed and post is written by aka and licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. (digitalfingerprint: 6239bd715870926370ef9d60ec28f896)
K9y_D#A4T+6m2M*p?3c?93799Cs-tHe-++9Z6=7dy@Q@?cmW2-V83!Q_2-8yWU%Z


lolipop+WP2.0xの頃は全く化ける事が無かったんですが,BlueHost+WP2.2にしてからコメント通知メールの日本語部分が件名本文問わず化けまくり。何かしら良い解決方法がないか調査中。

症状

  • コメント通知メールの件名と本文が文字化けする;
  • コメントモデレーション/トラックバック/ピンバックモデレーションの通知も同様;
  • トラックバック/ピンバックの通知メールは文字化けしない;

環境

  • WordPress 2.2
  • PHP 5.1.6
  • MySQL 5.0.2
  • PHP info

あんまり関係ないですけど

フォーラムを見ていたらWordPress › Support » Tags — japaneseなる tag がありました。ピッタリな症例は無かったんですが,マルチバイト件の情報があまりないので時々は見てみようかと思います。


Ähnliche Beiträge


Ähnliche Beiträge

8月 21, 2007
» WordPress 2.2 上の More Smilies がコメント欄の改行をレンダリングしない件

This feed and post is written by aka and licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. (digitalfingerprint: 6239bd715870926370ef9d60ec28f896)
K9y_D#A4T+6m2M*p?3c?93799Cs-tHe-++9Z6=7dy@Q@?cmW2-V83!Q_2-8yWU%Z


この間2.2に上げてからコメント欄がおかしいなあと思ってフォーラムを見たらコメントに関するフィルタ部分に More Smilies が変に介入しちゃったみたいです。

via

原因

The More Smilies 2.1 plugin breaks the paragraph formatting in comments.

from WordPress › Support » More Smilies Plugin Modification Needed

応急処置?

It has to do with this code in More Smilies:

# remove filters
remove_filter('comment_text', 'convert_smilies', 20);
remove_filter('the_content', 'convert_smilies');
remove_filter('the_excerpt', 'convert_smilies');
# add filters
add_filter('comment_text', array(&$this, 'convert_smilies'));
add_filter('the_content', array(&$this, 'convert_smilies'));
add_filter('the_excerpt', array(&$this, 'convert_smilies'));

I don’t know how to fix it to shut off the comment text filter, if anyone can help that would be wonderful. I love this plugin but it’s not being supported by the author anymore.

from WordPress › Support » Line breaks not rendered in comments


Ähnliche Beiträge


Ähnliche Beiträge