mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 21:46:22 +00:00
12 lines
290 B
PHP
12 lines
290 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;
|
|
} |