mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Increase security of ipn.php
This commit is contained in:
3
ipn.php
3
ipn.php
@@ -1,4 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
if (gethostbyaddr($_SERVER['REMOTE_ADDR']) !== 'notify.paypal.com') {
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
// Require the functions to connect to database and fetch config values
|
// Require the functions to connect to database and fetch config values
|
||||||
require 'config.php';
|
require 'config.php';
|
||||||
|
Reference in New Issue
Block a user