From 4069d2ddb9fbf7fb1ee1d37f8b01a7113ed06fbb Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Wed, 16 May 2012 22:29:47 -0400 Subject: [PATCH] Updated to return false instead of "Invalid Response" Invalid responses and "non-threatening" IP address results come back as the same thing. I couldn't find a way to get it to return something more alerting when the DNS lookup failed, so this will have to do. If you're caching your results for a short period of time, then any issues with the API should correct themselves within the TTL of your data --- ProjectHoneyPot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectHoneyPot.php b/ProjectHoneyPot.php index f0b6f50..bc3dfe4 100644 --- a/ProjectHoneyPot.php +++ b/ProjectHoneyPot.php @@ -85,7 +85,7 @@ class ProjectHoneyPot } else { - return array('error' => 'Invalid Response'); + return false; } }