Loading...
 
Skip to main content

Development


Prevent automatic/robot submission-feature for Forums

Our Forums have been under attack by spammers, adding topic of the "porn babes come"-type 😡 (because anonymous users can submit, and that's the way it's got to be).

On the Admin Login-page is a Prevent automatic/robot registration-feature (means: you have to read and insert a 5 digit code to register as a user).

I would like to see something like that in Forums, i.e. that I could decide submitters must enter a five digit code. It is probably relevant for other areas of tikiwiki as well.

I am aware that it will not stop spammers.




I added CAPTCA support for all forms and submissions in my Tiki via http://www.protectwebform.com/Question. I found it quick and easy to implement, very effective, and it supports accessibility features (such as voice CAPTCHAs).

I don't have a forum on my TikiQuestion, but I added it to:

  • Registration
  • HTML pages that contain form submissions
  • Directory submission


HTH,

-RickQuestion

> I added CAPTCA support for all forms and submissions in my Tiki via http://www.protectwebform.com/Question. I found it quick and easy to implement, very effective, and it supports accessibility features (such as voice CAPTCHAs).
>

😑

How did you do it? I get a code to copy to the php-file which processes the form, tiki-view_forum.php, right after ?php, but the image doesn't appear on my input form.

However, when I enter something and hit enter, I get the "The image code you have provided does not match the
actual one. Hit the 'back' button of your browser and input the correct code please."-message, which is kind of a success. But there was no way to enter the right code, there was no CAPTCHA-image, and no field to enter the code in.

It seems to me that the CAPTCHA-processing is there in the code, but not the code to display the image + field.

There are two pieces to add:

  1. Add the PHP code to the appropriate PHP file; in your case: tiki-view_forum.php
  2. Add the HTML code to the appropriate TPL file; in your case: tiki-view_forum.tpl


FWIW, I've found http://www.protectwebform.comQuestion to be highly effective. My spam submissions and false registrations have been reduced to nearly 0. 😀

HTH,

-RickQuestion

Thanx, it's working now, I had misunderstood something. It's really great. What a relief, phew!