heh just added it, went to the URL you mentioned above (appended the form API key) and it's returning an "Invalid API key" error.Where does it give me the file to upload to the server btw? (can't see an option for it)
Worked perfectly, cheers
I'll definately need more than 300 per day (the SBST gets in excess of 5000 queries per day on a single site, and I've got it installed on 3 sites so far (no idea of the traffic to them on the other two sites as I don't monitor them)).
I've asked him to join over here, but just as a heads up;http://www.stopforumspam.com/forum/p3053-Today-2%3A46#p3053
There was an error creating your API Key entry.NOTE: Failure to create an API Key may be due to duplicate web site or email addresses. An API Key may be used across an entire domain, so you don't need to create multiple API Keys to use the bot testing code on different pages of your site. If this error persists, please contact the Administrators and inform them of this problem.
Hi, I'm new here and have a problem. Today four times I try to get API but get an error Help me please!
Quote from: MysteryFCM on January 30, 2009, 09:03:20 amI've asked him to join over here, but just as a heads up;http://www.stopforumspam.com/forum/p3053-Today-2%3A46#p3053No problem; we'll be glad to help him out. If you have any sample or development code that you'd like to share, we'd be more than happy to post it or link to it (and credit you, of course).
// ********************************************************************************* // BEGIN CHECK BOTSCOUT // ********************************************************************************* // // Check the e-mail address against BotScout // if($mail !='' && $sBSAPI !=''){ $bFoundMatch=false; $fspamcheck = getURL('http://botscout.com/test/?key='.$sBSAPI.'&mail='.$mail); if (strpos($fspamcheck, '! ') !==False) { $bFoundMatch = false; echo 'Error: '.$fspamcheck; }else{ if (strpos($fspamcheck, 'Y|') !==False) { $bFoundMatch = true; } } if($bFoundMatch==true){ $bsspambot = true; } // End if($bsxml->appears == 'Y') (Email) } // End If // // Now check the IP // if($ip !='' && $sBSAPI !=''){ $bFoundMatch=false; $fspamcheck = getURL('http://botscout.com/test/?key='.$sBSAPI.'&ip='.$ip); if (strpos($fspamcheck, '! ') !==False) { $bFoundMatch = false; echo 'Error: '.$fspamcheck; }else{ if (strpos($fspamcheck, 'Y|') !==False) { $bFoundMatch = true; } } if($bFoundMatch==true){ $bsspambot = true; } // End if($bsxml->appears == 'Y') (IP) } // End If // // Lets check the username // if($name !='' && $sBSAPI !=''){ $bFoundMatch=false; $fspamcheck = getURL('http://botscout.com/test/?key='.$sBSAPI.'&name='.$name); if (strpos($fspamcheck, '! ') !==False) { $bFoundMatch = false; echo 'Error: '.$fspamcheck; }else{ if (strpos($fspamcheck, 'Y|') !==False) { $bFoundMatch = true; } } if($bFoundMatch==true){ $bsspambot = true; } // End if($bsxml->appears == 'Y') (username) } // End If if($bsspambot == true){ $spambot = true; // Required seperately now that dumping to a text file is optional echo 'BotScout '; } // ********************************************************************************* // END CHECK BOTSCOUT // *********************************************************************************
function getURL($sURL){ if(!function_exists('file_get_contents')){ // Use file_get_contents $sURLTemp = file_get_contents($sURL); }else{ // Use cURL (if available) $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $sURL); curl_setopt($curl, CURLOPT_VERBOSE, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); $sURLTemp = curl_exec($curl); curl_close($curl); } return $sURLTemp;}