Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 729
Cong Ma Avatar asked Feb 05 '23 22:02

Cong Ma


1 Answers

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.

like image 187
Christopher Finke Avatar answered Mar 11 '23 22:03

Christopher Finke