/web/index.php |
---|
282,6 → 282,7 |
//search in the blacklist categories |
if ((! $direct_access) && (! $network_pb)){ |
$pattern = preg_replace('/www./','',$_SERVER['HTTP_HOST']); |
$pattern = filter_var($pattern, FILTER_VALIDATE_URL) == false ? "" : $pattern; |
exec("grep -Re ^$pattern$ /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6", $output); |
unset ($line); |
foreach ($output as $row) { |