Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Log Pages Denied by SquidGuard not working

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 1 Posters 668 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Joreimer
      last edited by

      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 :

      sgerror.php.txt

      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,

      J 1 Reply Last reply Reply Quote 0
      • J
        Joreimer @Joreimer
        last edited by

        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 :)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.