/web/index.php |
---|
279,10 → 279,8 |
<?php |
if (! $direct_access){ |
$pattern = preg_replace('/www./','',$_SERVER['HTTP_HOST']); |
chdir('/etc/dansguardian/lists/blacklists/'); |
$domain_bl = exec("grep -Re ^$pattern$ *"); |
$s = explode("/",$domain_bl); |
echo "$l_required_domain : $_SERVER[HTTP_HOST] ($l_category $s[0])"; |
$domain_bl = exec("grep -Re ^$pattern /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6"); |
echo "$l_required_domain : $_SERVER[HTTP_HOST]<BR>$l_category $domain_bl"; |
} |
?> |
</div> |