i cant think A blog belong to Mohammad Azwan bin Ali. Most of his writings are about his real life story, ideas, thoughts, moderate political views, computer, programming, tips & tricks, particularly in Linux…. and of course it includes some random unspecified crappy stuffs too! Don't forget to check Movies and Junkyard pages out!
note: most of entries is not suitable for faint hearted person or anybody with iq below 100.

i’m not spammer plugins

today i'm testing my new anti-spam plugin named i'm not spammer plugins, it's day one and my akismet didn't show any spam come in except from trackback...>_<

nice -_-
let see how its going for couple more days

i got an idea to built this simple plugin from cry4freedom's blog, so i try to search out for wp plugins that work just like that, then i end up with zero result. cry4freedom also didn't use wordpress as his blog engine. well, i just create my own..lah

it's just a simple plugin, well as long as it's working then it's fine, who care about the rest

if you are using k2 theme
you can simply mod comments-ajax.php

here is how to modify it.

1. in comments-ajax.php, find code that look like this

$comment_post_ID = (int) $_POST['comment_post_ID'];

then add
$spam_check = $_POST['notspam'];
if ( empty($spam_check) ) {
do_action('spammer', $comment_post_ID);
fail(__('not spammer?'));
}

2. make sure you add this into your comment.php

<p><input type="checkbox" name="notspam" id="notspam" value="notspam"> Believe me, i'm not a spammer</p>

put it somewhere below if you donno where to put it

or you can read the manual how to add spam filter into k2 comment-ajax.php

if have something to share or something to add, feel free to discuss it here

please report to me if you can't post here (make sure you are not a spammer) [lolx]

update : why the hell trackback spammer only focus on my entry about "berapakah nilai laman web anda". trackback to that url will now be turned off.. :D


6 Comments

this is spam test

Posted by spam-test on 24 November 2006 @ 6pm

taraaaa.....

success! ni bukan spam ye. hu3.
btw kau nye comment kat site my.cypherhackz.net aku kene trap ngan akismet. nasib baik aku tak delete all. hu3.

Posted by CypherHackz (Spammer) on 26 November 2006 @ 1am

dah agak dah... wakhakahkah
giledah akismet neh tapi tak segila sk2 [thumb]

Posted by novatech on 26 November 2006 @ 1am

hello, i'm king of spammer in the world. so how about your osama@cia.gov

Posted by azraai on 26 November 2006 @ 2am

testing2..dasyat hang wan la nih..siap buat plugin lagi..keep up the good work.. :-)

Posted by Bat@SepamBob on 26 November 2006 @ 5am

hehe, seme jadi spammer yer.. hmmm
@azraai : not try it yet..btw, i don't like live mesenger either
@bat : takde la dasyat, plugin cikai jek, sape² pon leh wat, wp mmg memudahkan keje utk tambah ape² keperluan yg kita nak [color]

Posted by novatech on 26 November 2006 @ 3pm