Belom lama ini xyb kena SpamBot di bagian Komentar Menu Artikel, kenapa bisa kena? karna saat mengirim komentar tidak ada Nomer Unique untuk melakukan verifikasi (bahasa kerennya skrng itu Captcha).

Secara default pengunjung yang udah register bisa langsung posting komentar tanpa adanya validation code, dulu gw pikir ini aman, aman dalem arti jauh dari serangan spambot, ternyata salah, buktinya bisa lu liat sendiri gambar diatas yg udah register aja bisa nyembarin ’sampah’ ga jelas di komentar.
Salah satu cara untuk mencegah terjangkitnya spambot yaitu gw harus memvalidasi posting komentar yg ada di Menu artikel/news menggunakan Unique Number (validation code / captcha image).  Cara ngerombak PHP-Fusionnya akan gw bahas tuntas dibawah ini.
1. Buka file /include/comments_include.php
cari potongan code $comment_name = $userdata['user_id'];
kl udah ketemu, tambahkan potongan kode dibawah ini.

include_once INCLUDES.”securimage/securimage.php”;
$securimage = new Securimage();
if (!isset($_POST['com_captcha_code']) || $securimage->check($_POST['com_captcha_code']) == false) { redirect($link); }

masih di file yg sama (/include/comments_include.php) cari lagi potongan code echo display_bbcodes(“360px”, “comment_message”);

kl udah ketemu, tambahkan potongan kode dibawah ini.

echo $locale['global_158'].”
\n”;
echo “”
\n”;
echo “”\n”;
echo “Post Optionsment.getElementById(‘com_captcha’).src = ‘”.INCLUDES.”securimage/securimage_show.php?sid=’ + Math.random(); return false\”>”
\n”;
echo $locale['global_159'].”
\n\n”;

Dah selsai, codingnya cuma segitu doang kok, ga ribet kan. sekarang kl gw Login trus ngeliat article or news akan ada tambahan validation code untuk ngirim komentar. like picture above.

Mudah2an kebal spambot. hahahahha

Tulisan Terkait:

  1. Cara mudah membuat website Vol 2 dengan PHP-Fusion

31 thoughts on “Captcha Validation In Comment For Registered Member in PHP-Fusion V7

  1. Thank you, I have recently been searching for info about this subject for a
    long time and yours is the best I’ve came upon till now.

    But, what concerning the bottom line? Are you certain concerning the supply?

    Reply
  2. Undeniably consider that which you said. Your favorite justification seemed to be at the internet the simplest thing to keep in mind of.

    I say to you, I definitely get annoyed whilst people think about
    worries that they plainly don’t recognize about. You managed to hit the nail upon the highest as neatly as defined
    out the entire thing with no need side-effects , other folks can take a signal.
    Will probably be again to get more. Thanks

    Reply
  3. Good day I am so glad I found your website, I really found you by accident, while I was browsing on Bing for something else, Nonetheless I
    am here now and would just like to say many thanks for a remarkable
    post and a all round interesting blog (I also love the theme/design), I don’t have time to read through it all at
    the moment but I have saved it and also added your RSS feeds, so when I have
    time I will be back to read more, Please do keep up the awesome work.

    Reply
  4. Hello There. I discovered your weblog the use of msn. This is a really
    well written article. I will make sure to bookmark it and return to read extra of your helpful information.
    Thank you for the post. I will definitely comeback.

    Reply
  5. Do you mind if I quote a couple of your articles as
    long as I provide credit and sources back to your webpage?
    My website is in the exact same area of interest as yours and my users would really benefit from
    some of the information you present here. Please let me know if this ok with you.
    Many thanks!

    Reply
  6. Having read this I thought it was very informative. I appreciate you taking the time and energy to put this information together.
    I once again find myself personally spending a lot of time both reading
    and posting comments. But so what, it was still worth it!

    Reply
  7. You’ve just given me the info I was searching for. That helped
    me a lot. I would like to share with you a great
    service to fill a form online. Just look at the service
    website, Layne,
    . Its pretty easy to use. I think you can get a free trial
    if you ask for it.|Valuable article-

    Reply
  8. I just like the helpful information you provide on your articles.

    I’ll bookmark your blog and check again right here frequently.
    I’m relatively sure I will be told lots of new stuff proper right here!
    Best of luck for the following!

    Reply
  9. Usually I don’t learn article on blogs, but I would like to say that this write-up
    very pressured me to take a look at and do it! Your writing taste has been surprised me.

    Thanks, quite great post.

    Reply
  10. Fantastic items from you, man. I have have in mind your stuff prior to and you’re simply extremely wonderful.
    I really like what you have got right here, really like what you’re saying and the way through which you say it.

    You are making it entertaining and you continue to take care of to stay
    it smart. I can’t wait to learn much more from you.
    That is really a tremendous site.

    Reply
  11. Hey very cool blog!! Man .. Excellent .. Superb ..
    I will bookmark your web site and take the feeds
    also? I’m satisfied to find so many helpful info right here in the put up, we’d like develop extra strategies on this regard, thank you for sharing.
    . . . . .

    Reply

Leave a reply

required

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>