mirror of
https://github.com/pi-hole/web.git
synced 2025-12-27 05:56:22 +00:00
13 lines
291 B
PHP
13 lines
291 B
PHP
<?php
|
|
if(!isset($_GET['domain'], $_GET['list']))
|
|
die();
|
|
|
|
switch($_GET['list']) {
|
|
case "white":
|
|
exec("/usr/local/bin/whitelist.sh -q -d ${_GET['domain']}");
|
|
break;
|
|
case "black":
|
|
exec("/usr/local/bin/blacklist.sh -q -d ${_GET['domain']}");
|
|
break;
|
|
}
|