Search code examples
spamspam-preventionakismet

Standard, positive spam test for Akismet


Is there a standard test-case message for Akismet?

Basically, it should work like the GTUBE test case for SpamAssasin (which will always get marked as spam), but for Akismet. I tried the GTUBE string but (to my surprise) Akismet gave green light.

And no, I don't want to use

buy viagra buy viagra hello I'm nigerian prince

Or anything really spammy like that. What I'd like to see is a standard test case to give Akismet a very basic sanity check. Is this a thing?

(Sorry for the spam ;)


Solution

  • Yes. As described in our API docs, to guarantee a true response, send the value viagra-test-123 as the comment_author parameter.

    To guarantee a false response, send the value administrator for the user_role parameter.