/web/index.php |
---|
279,8 → 279,10 |
<?php |
if (! $direct_access){ |
$pattern = preg_replace('/www./','',$_SERVER['HTTP_HOST']); |
$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"; |
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])"; |
} |
?> |
</div> |