String apiKey = ERXProperties.stringForKey("er.captcha.akismet.apiKey");
String url = ERXProperties.stringForKeyWithDefault("er.captcha.akismet.url", "http://" + request._serverName());
Akismet api = new Akismet(apiKey, url);
if (ERXApplication.isDevelopmentModeSafe()) {
if (!api.verifyAPIKey()) {
throw new RuntimeException("The API key you provided is invalid. Please set a valid api key in the property 'er.captcha.akismet.apiKey'.");
}
}
String ipAddress = stringValueForBinding("remoteAddress", request._remoteAddress());