mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Increase security of ipn.php
This commit is contained in:
parent
7a265593b8
commit
48363b655a
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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user