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

    Custom SquidGuard Error Pages?

    Scheduled Pinned Locked Moved Cache/Proxy
    28 Posts 8 Posters 11.0k 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.
    • N Offline
      n3by
      last edited by

      I have the same problem since I updated from 2.1.5.
      It worked till 2.1.5 and at some point something was broken and now is not properly redirect when an url is blocked, it ad after the redirect to destination address ( in my case: https://duckduckgo.com ) this string:

      https://duckduckgo.com**%20[HOST IP blocked]/[HOST FQDN blocked]%20-%20GET**

      1 Reply Last reply Reply Quote 0
      • F Offline
        foresthus
        last edited by

        Hi,

        the code still works fine on pfsense 2.2.4 with squid3 and squidguard. You need the image and the file sgerror_forum.txt. You need to change the name to sgerror.php. Copy it to your pfsense with for example winscp into the folder /usr/local/www/

        Thats all.

        pfsenselogo_new.png
        sgerror_forum.txt

        1 Reply Last reply Reply Quote 0
        • M Offline
          maverik1
          last edited by

          @foresthus:

          Hi,

          the code still works fine on pfsense 2.2.4 with squid3 and squidguard. You need the image and the file sgerror_forum.txt. You need to change the name to sgerror.php. Copy it to your pfsense with for example winscp into the folder /usr/local/www/

          Thats all.

          It's not working for me. Even after using your sgerror.php and copying it to/usr/local/www folder. When I get my deny page I am seeing this as the blocked url:  URL: http://www.playboy.com/10.0.0.10/desktop-fj4n784.syndicate.com-GET

          It's got to be some setting in squidguard or something…

          1 Reply Last reply Reply Quote 0
          • L Offline
            lorenzobrazuna
            last edited by

            I'm almost the same problem. The squidguard does not display the custom sgerror.php, only displays a white screen and 400 - Bad Request.
            Someone found a solution?
            Thanks,

            1 Reply Last reply Reply Quote 0
            • F Offline
              foresthus
              last edited by

              Hello,

              of course you must set for the rule you want to have the errorpage in squidguard. I thought that this was clear.

              Look at the image.

              squidguard_001.PNG
              squidguard_001.PNG_thumb

              1 Reply Last reply Reply Quote 0
              • L Offline
                lorenzobrazuna
                last edited by

                @foresthus:

                Hello,

                of course you must set for the rule you want to have the errorpage in squidguard. I thought that this was clear.

                Look at the image.

                Yes, this option is already selected.

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lorenzobrazuna
                  last edited by

                  Well, I tried everything. All settings and nothing. I took an internet outage here in my region and formatted the server and installed all of ZERO. I not returned or backup.
                  So far all normal, squidguard blocking, but showing the screen "403 Forbidden" and not the "400 Bad Request".

                  Thank you to those who helped in any way :)

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    foresthus
                    last edited by

                    Hi there,

                    I guess my solution is not working anymore, because basically the content of the file changed completely. I will look if can post a new solution here.

                    cu.

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