Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/lolipop.jp-dp07276078/web/blog/wp/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/lolipop.jp-dp07276078/web/blog/wp/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/lolipop.jp-dp07276078/web/blog/wp/wp-includes/theme.php on line 508
blog.cori95.net : 続コメントspam対策

2004/11/30

続コメントspam対策

color99さんの言っていたhail2u.netの方法を導入してみる。
この方法ってエントリ中に書いてる9月のときに見たけど試してなかったヤツだ。なんか似たようなのをどっかでもやってたな、そういや。
ところでRewriteCondを並列で書くときの[OR]の書き方はこれであってるんだろうか???
一応動き的にはこれでO.K.な気はする。
基本的には受け売りです(笑

RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .writeback$
RewriteCond %{HTTP_COOKIE} !spamcheck= [OR]
RewriteCond %{HTTP_REFERER} !^http://cori95.net/.*.htm$ [OR]
RewriteCond %{HTTP:Accept-Encoding} !gzip
RewriteRule (.*) - [F,L]

追記:Module mod_rewrite URL Rewriting Engineを見た感じ記述もあってる気配。クッキー部分は相当怪しいけど(笑

[2007-10-03 追記]
このエントリはかつて Blosxom 用に書いたものをスクリプトで自動変換したものです。真面目に確認していないので,デザインの崩れやリンク切れが残っています場合にはご容赦ください。

Posted at 13:15:23|個別ページblosxomトラックバックURL||
はてなブックマークに追加! この記事をLivedoorクリップ! Yahoo!ブックマークに追加! del.icio.usに追加! ニフティクリップに追加! Buzzurlに追加! このページを POOKMARK Airlines の行き先に登録する BlogPeople Instant Bookmark に追加! newsing it!に追加! PingKingポッケに追加!

トラックバックURL

トラックバック URL :

コメント »

この記事にはまだコメントがついていません。

コメントをどうぞ

HTML convert time: 0.064 sec. Powered by WordPress ME