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

45 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
  12. hi!,I really like your writing so a lot! share we keep in touch extra about your
    post on AOL? I require an expert in this house to unravel my problem.
    May be that’s you! Having a look ahead to peer you.

    Reply
  13. Have you ever considered publishing an ebook or guest authoring on other
    websites? I have a blog based upon on the same topics you discuss and would really like to
    have you share some stories/information. I know my viewers
    would appreciate your work. If you are even remotely interested,
    feel free to send me an e mail.

    Reply
  14. B?n mu?n 1 gi?i pháp hi?u qu? cho ngôi nhà c?a
    b?n Bày trí các v?t d?ng trang trí n?i
    th?t trong nhà không ch? ?? làm cho ngôi nhà
    tr? nên g?n gàng, thông thoáng mà vi?c làm này còn có
    tác d?ng ti?t ki?m chi phí..… gi?m chi phí t?i ?a theo tiêu chu?n xây d?ng nhà ? c?a b? xây d?ng Công ty trách nhi?m h?u h?n xây d?ng nhà tr?n gói B?n tin không?
    Có nh?ng ?i?u b?n t??ng ch?ng nh? không th?, ?ó là lý do ?? T?
    v?n xây nhà tr?n gói liên t?c g?i ??n b?n nh?ng thông tin t? v?n xây nhà ??p giá r? nh?m giúp
    b?n luôn hài lòng v?i n?i mình s?ng. Bình D??ng
    thì khi c?n tìm b?n s? r?t d? dàng, không ph?i
    m?t th?i gian, không c?n b?i chúng lên m?t cách th?t l?n x?n.,.… ??n giá T? 4.000.000 -> 5.500.000?/m Di?n tích xây d?ng
    xây bi?t th?

    Reply
  15. I do trust all the ideas you have offered to your
    post. They are very convincing and can certainly work. Nonetheless, the posts are
    too quick for beginners. Could you please extend them a bit from subsequent
    time? Thanks for the post.

    Reply
  16. ban ?ang c?n t? v?n xây nhà tr?n gói Bày trí các v?t d?ng
    trang trí n?i th?t trong nhà không ch? ?? làm
    cho ngôi nhà tr? nên g?n gàng, thông
    thoáng mà vi?c làm này còn có tác d?ng ti?t ki?m chi phí..…
    khai thác h?t ti?m n?ng nhà tr? theo
    tiêu chu?n xây d?ng nhà ? c?a
    b? xây d?ng Công ty xây d?ng Nhà ??i
    Ngh?a An B?n tin không? Có nh?ng ?i?u b?n t??ng ch?ng nh?
    không th?, ?ó là lý do ?? T? v?n xây nhà tr?n gói
    liên t?c g?i ??n b?n nh?ng thông tin t? v?n xây nhà ??p
    giá r? nh?m giúp b?n luôn hài lòng v?i n?i mình s?ng.

    Kiên Giang thì khi c?n tìm b?n s? r?t d? dàng, không ph?i m?t
    th?i gian, không c?n b?i chúng lên m?t cách th?t
    l?n x?n.,.… công ty thi công xây d?ng
    thi?t k? bi?t th? v??n

    Reply
  17. ban ?ang c?n t? v?n xây nhà tr?n gói Bày trí các v?t d?ng
    trang trí n?i th?t trong nhà không ch? ?? làm
    cho ngôi nhà tr? nên g?n gàng, thông
    thoáng mà vi?c làm này còn có tác d?ng ti?t ki?m chi phí..…
    khai thác h?t ti?m n?ng nhà tr? theo
    tiêu chu?n xây d?ng nhà ? c?a
    b? xây d?ng Công ty xây d?ng Nhà ??i
    Ngh?a An B?n tin không? Có nh?ng ?i?u b?n t??ng ch?ng nh?
    không th?, ?ó là lý do ?? T? v?n xây nhà tr?n gói
    liên t?c g?i ??n b?n nh?ng thông tin t? v?n xây nhà ??p
    giá r? nh?m giúp b?n luôn hài lòng v?i n?i mình s?ng.

    Kiên Giang thì khi c?n tìm b?n s? r?t d? dàng, không ph?i m?t
    th?i gian, không c?n b?i chúng lên m?t cách th?t
    l?n x?n.,.… công ty thi công xây d?ng
    thi?t k? bi?t th? v??n

    Reply
  18. B?n c?n chúng tôi giúp ??, t? v?n v?
    xây nhà tr? Bày trí các v?t d?ng
    trang trí n?i th?t trong nhà không ch? ?? làm cho ngôi nhà tr? nên g?n gàng, thông thoáng mà vi?c
    làm này còn có tác d?ng ti?t ki?m
    chi phí..… Chúng tôi s? xây nhà mi?n phí
    cho b?n theo tiêu chu?n xây d?ng nhà ? c?a b? xây d?ng
    Công ty xây d?ng B?n tin không? Có nh?ng ?i?u b?n t??ng ch?ng nh? không th?,
    ?ó là lý do ?? T? v?n xây nhà tr?n gói liên t?c g?i ??n b?n nh?ng thông
    tin t? v?n xây nhà ??p giá r? nh?m giúp b?n luôn hài lòng
    v?i n?i mình s?ng. thành ph? m? tho ti?n giang
    thì khi c?n tìm b?n s? r?t d? dàng, không ph?i m?t th?i
    gian, không c?n b?i chúng lên m?t cách th?t l?n x?n.,.… ??n giá
    xây nhà tr?n gói t? 3.200.000 ??n 5.000.000? / m2 xây d?ng hoàn công
    ??n giá trên ph? thu?c vào ch?t liêu thi công
    xây bi?t th? giá bao nhiêu

    Reply
  19. B?n c?n chúng tôi giúp ??, t? v?n v?
    xây nhà tr? Bày trí các v?t d?ng
    trang trí n?i th?t trong nhà không ch? ?? làm cho ngôi nhà tr? nên g?n gàng, thông thoáng mà vi?c
    làm này còn có tác d?ng ti?t ki?m
    chi phí..… Chúng tôi s? xây nhà mi?n phí
    cho b?n theo tiêu chu?n xây d?ng nhà ? c?a b? xây d?ng
    Công ty xây d?ng B?n tin không? Có nh?ng ?i?u b?n t??ng ch?ng nh? không th?,
    ?ó là lý do ?? T? v?n xây nhà tr?n gói liên t?c g?i ??n b?n nh?ng thông
    tin t? v?n xây nhà ??p giá r? nh?m giúp b?n luôn hài lòng
    v?i n?i mình s?ng. thành ph? m? tho ti?n giang
    thì khi c?n tìm b?n s? r?t d? dàng, không ph?i m?t th?i
    gian, không c?n b?i chúng lên m?t cách th?t l?n x?n.,.… ??n giá
    xây nhà tr?n gói t? 3.200.000 ??n 5.000.000? / m2 xây d?ng hoàn công
    ??n giá trên ph? thu?c vào ch?t liêu thi công
    xây bi?t th? giá bao nhiêu

    Reply
  20. BBM began it as a push notification text chat on BB good telephones, which afterward advanced as a posh
    media chat service with footage, emoticons, videos and stickers on WhatsApp, WeChat & Line apps.

    Reply
  21. Simply want to say your article is as surprising. The clearness on your put up is simply spectacular and that i could
    think you are an expert in this subject. Fine along with your permission allow me
    to clutch your RSS feed to stay updated with forthcoming post.
    Thank you 1,000,000 and please carry on the enjoyable work.

    Reply
  22. I blog often and I truly thank you for your content. The
    article has truly peaked mmy interest. I’m going too bookmark your site and keep checking for new details about
    once per week. I subscribed to your Feed too.

    Reply
  23. hello!,I love youur writing so much! proportion we communicate more about your article
    on AOL? I require a specialist on thjs area to unravel my problem.

    Mayy be that is you! Having a look ahead to peer you.

    Reply
  24. My family always sayy tthat I am wasting myy time here att
    web, butt I know I am getting familiaarity all the time by reading thes fastidius articles or reviews.

    Reply

Leave a reply to nhân công xây d?ng ph?n thô Cancel reply

required

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