API reference
When your requirements demand that you permit the unauthenticated user to POST to the store, you might need to prevent automated scripts, also known as bots, from performing the request. In Topincs you can achieve this with minimal effort by using the captcha
function.
Compared to other methods, the Topincs CAPTCHA is easier to solve for a literate user that is familiar with some basic concepts taught in elementary school. It is not impossible to circumvent the mechanism, but requires some effort by the attacker.
API reference
The implementation in a POST service is straight forward. Just put the captcha
call in the very beginning of the computational component. To protect a Topincs form, place the call in a BEFORE SAVE
trigger. If you do not want your authenticated users to be bothered by the CAPTCHA, use the user
function.
if (user()->name === null) {
captcha();
}
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.
Saving …