4

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 ;)

Cong Ma
  • 10,692
  • 3
  • 31
  • 47

2 Answers2

4

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.

4

To simulate a positive (spam) result, make a comment-check API call with the comment_author set to viagra-test-123 or comment_author_email set to [email protected].

So you can use [email protected] for the email if you prefer not to use test strings with "viagra" in a professional environment. :)

squarecandy
  • 4,894
  • 3
  • 34
  • 45