The Strawhouse Pattern.

We allow or deny clients according to their IP address. It may keep spammers and idiots away, but won't stop a real attacker for more than a heartbeat.