Security

In order to ensure that your server is really talking with Modraptor our server will always use the header X-MODRAPTORAUTH

This is a SHA256 hash of the time parameter returned along with your API key. Example code to reproduce the header is below:


Example code (PHP) for use with our callback to your server

$myapikey="9cdfb439c7876e703e307864c9167a15"; // your apikey
$requesttime=$_GET['time']; // the time we provide
$hash=hash('sha256',$requesttime.$myapikey);

if ($hash!=$_SERVER['X-MODRAPTORAUTH']) {
    // this request did not come from our server, log the request and exit
    exit;
}

Get started with 100 free images!