Webhooks Security
There are many ways to secure your application. Our sample shows you how you can restrict the Webhook to only your server IP. An example (using PHP) is below.
if ($_SERVER['REMOTE_ADDR'] != 'xx.x.xxx.xx') { // Your server IP here.
header('HTTP/1.1 403 Forbidden');
mail('mail@mail.com', 'Webhook called from invalid IP.', $_SERVER['REMOTE_ADDR']); // Send an email notification.
exit;
}