Advanced Usage¶
Examples¶
Testing your application¶
Antispam measures are all fine and great, until you start to write functional tests for your application and you discover after hours of debugging that all your form submissions are failing because your tests are actually behaving exactly like spambots on your own application, and being stopped by this bundle.
It is recommended to disable the entire bundle when testing in the config:
But what if we actually want to test the anti-spam measures? Just enable it again for the test you are running:“Fake pass”¶
A spammer who sees success is a happy spammer. One of the problems we have to cope with these days is that some people actually consider it an effective strategy to pay people to randomly fill in forms on the internet. If actual people see their spam is rejected, they might actually want to try again. Let’s discourage that.
To lure the spammer into believing their spam was accepted and is going to be read, we have to enable passive
mode on
the form profile:
AntiSpam
class!