mirror of
https://github.com/pi-hole/web.git
synced 2026-04-27 20:24:10 +01:00
11 lines
279 B
PHP
11 lines
279 B
PHP
<?php
|
|
if(!isset($_GET['domain'], $_GET['list']))
|
|
die();
|
|
|
|
if($_GET['list'] == "white")
|
|
exec("/usr/local/bin/whitelist.sh ${_GET['domain']}");
|
|
else {
|
|
exec("echo '${_GET['domain']}' >> /etc/pihole/blacklist.txt");
|
|
exec("sudo /usr/local/bin/gravity.sh");
|
|
}
|