Log Pages Denied by SquidGuard not working
-
Re: Issues with "Log Pages Denied by SquidGuard"
Hi, i have an issue where when this option is enabled in squid, it seems to have no effect. I put the code given in the instructions :
$sge_prefix = (preg_match("/\?/", $cl['u']) ? "&" : "?"); $str[] = '< iframe > src="'. $cl['u'] . $sge_prefix . 'sgr=ACCESSDENIED" width="1" height="1" > < /iframe >';
I place it at the end of my sgerror.php file, which you can find here :
In the access.log, I still see only logs regarding squid, but not squidguard ones.
My pfsense is 2.5.2, squid is 0.4.45_5 and squidguard is 1.16.18_20.
Do you have any idea how i could further troubleshoot this ? Thank you all,
-
OK Found the answer, I had to put this :
$sge_prefix = (preg_match("/\?/", $cl['u']) ? "&" : "?"); $str[] = '<iframe> src="'.$cl['u'].$sge_prefix.'sgr=ACCESSDENIED" width="1" height="1" > </iframe>';
Right before the ?> at the end of /usr/local/www/sgerror.php, which for whatever reason didn't work earlier. This can be closed :)
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.