Skip to content

Instantly share code, notes, and snippets.

From 9a236e8c15b86bbfaaa39ccdef7bb0ea12406a5f Mon Sep 17 00:00:00 2001
From: Markus Hitter <mah@jump-ing.de>
Date: Fri, 4 Dec 2015 19:08:08 +0100
Subject: Spam protection: require user-agent to be set.
While it's easy to set the agent, some spammers don't, so do this
simple check to reject them. All legitimate users are expected to
actually use a browser, so the field is set and they won't notice
the distinction.
---