Sarge with squid new Log Pages Denied by SquidGuard?
-
Hi,
So i was tweaking some stuff on squid and never really realized the option that showsLog Pages Denied by SquidGuard
But in bold letters i see
Hint: You MUST remove extra spaces in the above iframe HTML tags.
so the code is this
$sge_prefix = (preg_match("/\?/", $cl['u']) ? "&" : "?"); $str[] = '< iframe > src="'. $cl['u'] . $sge_prefix . 'sgr=ACCESSDENIED" width="1" height="1" > < /iframe >';
but as the hint says remove extra spaces?
so something like this?
$sge_prefix = (preg_match("/\?/", $cl['u']) ? "&" : "?"); $str[] = ' <iframe>src="'. $cl['u'] . $sge_prefix . 'sgr=ACCESSDENIED" width="1" height="1" ></iframe> ';
and then edit the sgerror.php located /usr/local/www edit the file adding the line of code not really sure where to put it in?
Thank you
-
Hello. Edit the file sgerror.php. I put the code in the end just after the last } (line 291 in my file):
It looks like:}
$sge_prefix = (preg_match("/?/", $cl['u']) ? "&" : "?");
$str[] = '< iframe > src="'. $cl['u'] . $sge_prefix . 'sgr=ACCESSDENIED" width="1" height="1" > < /iframe >';
?> -
Hey thanks for the reply
So this is what i have see picture
But when i go to sarg reports and go to the denied pages I dont see the pages that have been blocked I tried going to sites blocked but nothing :(
Thank you