22 lines
470 B
PHP
22 lines
470 B
PHP
|
|
<?php
|
||
|
|
// setup the URL
|
||
|
|
// setup the URL
|
||
|
|
$url = 'http://api.stopforumspam.org/api?json&ip=209.107.214.81';
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
// init the request, set some info, send it and finally close it
|
||
|
|
$ch = curl_init($url);
|
||
|
|
|
||
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
||
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
||
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||
|
|
|
||
|
|
$result = curl_exec($ch);
|
||
|
|
|
||
|
|
|
||
|
|
curl_close($ch);
|
||
|
|
|
||
|
|
$check=json_decode($result, true);
|
||
|
|
|
||
|
|
if($check["ip"]["appears"]){echo "AAA";}
|