




























I'll admit it. I've been neglecting my blog. I went back recently and found a wall of comment spam.
I've tried various ways of fighting it over the years. For a while, having written my own blog in php meant the problem wouldn't exist. The bots would relentlessly try submitting comments via wordpress URLs, which my system didn't understand.
When that stopped working, I introduced a hidden email field that only scripts could see. If it was filled out, I could ignore the comment right away. Somehow, that stopped working.
I built a user interface where I could click a delete button on each comment and they would implode on my screen. It was satisfying, but it still required me to log in once in a while and do it. So the comments built up, and I kind of gave up.
Luckily, I happen to have an AI rig in my bedroom, with ollama and several models installed. I decided to set it to work. I won't go into the details here. There is no need! Here is the prompt I mashed into Visual Studio Copilot, with Claude Sonnet 3.7 agent mode selected. Note that I had lost the database schema of my blog, so I didn't even know how the comments were stored.
Ten minutes later, it was done. It then spent the next few hours classifying all the comments (about eight seconds each) and writing detailed analysis on its reasoning. They were fascinating to read.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。