Increase security of ipn.php

This commit is contained in:
Mark Samman 2014-10-29 19:36:39 +01:00
parent 7a265593b8
commit 48363b655a

View File

@ -1,4 +1,7 @@
<?php
if (gethostbyaddr($_SERVER['REMOTE_ADDR']) !== 'notify.paypal.com') {
exit();
}
// Require the functions to connect to database and fetch config values
require 'config.php';