mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 19:55:15 +01:00
Small security update to the indicidual API files
This commit is contained in:
@@ -6,7 +6,12 @@
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
$api = true;
|
||||
|
||||
if(!isset($api))
|
||||
{
|
||||
die("Direct call to api_PHP.php is not allowed!");
|
||||
}
|
||||
|
||||
require "scripts/pi-hole/php/password.php";
|
||||
require "scripts/pi-hole/php/auth.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user