gerben.dev

Akismet doesn't cut it anymore, utilize Cloudflare against spam

When even Akismet can't keep up with the spam, there is another way to not prevent spam comments but bots all together.

Spam queue in Wordpress
Spam queue in Wordpress

I have been noticing a severe drop in spam in my comment queue. I used to have to delete anywhere from 5 to 10 comments a day in the queue with just Akismet. Now there's not one comment.. 99.99% of the time.

I didn't really think anything of it until I just realized why this change occurred; I had enabled Cloudflare for my blog.

Cloudflare saving requests and thus MBs
Cloudflare saving requests and thus MBs

Cloudflare acts as somewhat of a firewall and CDN in one, it blocks malicious requests and serves cached versions of your blog/site/resources. For this particular blog the stats aren't that overwhelming, but for one of my other sites we're talking about multiple gigabytes!

The Cloudflare plugin for Wordpress doesn't only adjust the incoming IPs (they have to change it to the X-FORWARDED-FOR) but it also will tag any comment (and accompanying meta-data) as a spammer in the CF system.

So with my efforts and those of the other thousand of Cloudflare users combined, the spam queue is getting smaller and smaller every month. Making Cloudflare a better spam protection than Akismet.

The spammers don't even get to reach the stage where Akismet has to kick in.

Leave a note

This website uses WebMentions and ActivityPub (via brid.gy), you can respond to this post by linking from your page or replying directly to the Fediverse post.

WebMention

or manually.

Fediverse

On the Fediverse or BlueSky you can search for the URL https://gerben.dev/posts/akismet-doesnt-cut-anymore-utilize-cloudflare-spam or search for my handle @gerben.dev@gerben.dev.

View source

✨ It's dangerous out there, please take some space dust! ✨
This work is licensed under CC BY-NC-SA 4.0 | πŸ€– No AI | πŸ“Š Uptime Status