do you have discourse-captcha enabled?
use an established preventative control rather than a remedial or reactive solution that likely doesn’t exist.