Our network of websites takes questions from readers in a comment box under every article and tool. Our sites have taken comments since 2009. We still hold about 154,000 on the live sites, 120,000 from readers and 34,000 of our replies, in records going back to 2011. Spam arrives far faster. We only began counting every attempt this autumn: in 53 days, 299,153 comments were sent and 2,223 got past the filters, so about 99 in every 100 were refused. At that rate it is around 2 million a year, and the sites have been a target for well over a decade. Most of the work of sorting them is automated: spam filters, an AI check, automatic replies, and a rule that refreshes an old article when someone new asks about it. On 27 November one spam comment, which never appeared on any page, led us to two faults in that automation that had been running for months.
The comment
It looked like thousands of others. A name of "OP", a throwaway email address, and two lines of generic praise for an article about detox. Our AI check scored it 62 out of 100, "maybe spam", so it was held back for us to look at rather than posted.
What caught our eye was the admin page. Where the column normally shows which article a comment belongs to, this one showed the address of a website selling dental products.
How it got there
Every comment form on the web carries hidden fields that you never see. Ours tell the server which page the comment came from, so it is saved against the right article. A person using the form cannot change them. A bot does not use the form at all: it sends the data straight to the server, and it can put whatever it likes in any field. Spam bots often put their link into every field that might be a "website" box, and this one put it in the hidden field that names the article. It also gave the number of a different page altogether.
Our server took both values on trust. Every one of our spam checks looked at the comment text, the email address and where the comment came from. None of them looked at the hidden fields, because they were filled in by our own page. Only the AI noticed, because it was shown the whole record and spotted a link to an unrelated shop.
That comment did no harm. A page only shows comments saved against it, so a comment saved against a shop's address could never appear anywhere. But it made us look at what else trusted those fields.
The first fault: acting before checking
A new question on an old article is a good sign that the page still has readers. So when an article that has not been updated for a year gets a new comment, it is queued for our AI engine to rewrite it with current facts. This works well. Earlier that evening, a reader's question about ending a living trust led to a rewrite that corrected years old advice written for the United States.
The problem was the order. The rewrite was queued the moment the comment arrived, and the spam check ran just after. If the comment then turned out to be spam and was hidden or deleted, the rewrite still went ahead. Looking back to July, about 64 of roughly 160 rewrites set off by comments followed only comments that were later removed as spam. That figure is approximate, because we matched each rewrite to comments in the three hours before it. The articles were not harmed, since a rewrite is a refresh, but spam was deciding which pages we spent money updating.
The second fault: two kinds of page, one kind of number
Our free tools have comment boxes too. They send the tool's own number in the same hidden field that an article uses for the article's number. The rewrite rule did not check which kind of page the number came from. So when someone commented on a tool, the article that happened to have the same number was queued for a rewrite.
That happened 17 times between July and November. A question on our faulty goods checker led to a rewrite of an article about keeping healthy while travelling. A comment on the small claims guide rewrote an article about mobile phone scams. They were all older articles with low numbers, on three sites whose oldest articles share the same low numbers as our tools.
Your situation may be slightly different. ask a question below ↓ and our editorial team will reply with our advice.
The fix
- The hidden fields are now checked. The article number and the page address must match a real article on that site, or a real tool. A genuine form always sends a matching pair, so a mismatch means a bot, and the comment is refused before it is saved. We checked the 66 genuine comments from the previous fortnight: none would have been refused.
- Check first, act second. A rewrite is now queued only after the comment has passed the spam check.
- Tools are tools. A comment on a tool never queues an article rewrite.
- The admin page no longer turns that column into a link unless it looks like one of our own page addresses, so nobody clicks through to a spammer's site by accident.
We then sent a forged comment of our own to the live site, with the wrong page in the hidden field. It was refused, logged as a page mismatch, and nothing was saved.
What I would tell any small business
- Hidden is not secret. Anything your website sends to a visitor's browser can be changed before it comes back. Check it on the server against your own records.
- Put checks before actions. If an automation starts from something the public sends you, make sure it waits until that input has passed every check.
- Know what triggers your automations. Every form, email address and upload box that sets something off is a way for strangers to set it off.
- Watch for numbers that mean two things. An order number and an invoice number, or an article and a tool, can easily be the same number in different tables.
- Look into odd things in your admin screens. One strange entry in a column led us to two faults that had cost us for months without anyone noticing.
We have written before about how we stop comment spam and how we stop emails and comments giving orders to our AI. This is the same lesson from a different direction: anything the public can send you deserves a check before your systems act on it.
Ask Technology for Small Business a question
Ask our editorial team a question and we will reply with our advice. Tell us as much about your situation as you can: the more detail you give, the more useful our answer can be.
You do not need to use your real name. Please do not include your full address, phone number, email address, or the names of other people. We may edit or remove identifying details for privacy and legal reasons.
Comments are moderated before publication.