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

    Custom SquidGuard Error Page not working

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 3 Posters 3.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.
    • M
      MrGlasspoole
      last edited by

      Hi,

      if SquidGuard blocks a page all i get is 404 - Not Found. So i decided i need
      something custom and found: https://forum.pfsense.org/index.php?topic=26057.0

      I'm trying to do it like 3dinfluence: https://forum.pfsense.org/index.php?topic=26057.msg173293#msg173293

      I can show the site with "http://warning.mydomain.net/index.html" fine.
      I'm not sure if i should put
      http://warning.skulltronics.net/index.html&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      or
      http://warning.skulltronics.net/lg_block.php&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      in Common ACL > Redirect info.
      Redirect mode is set to "ext url move".

      If i call a blocked site i get the URL:
      http://warning.mydomain.net/index.html&a=192.168.0.70&n=&i=&s=default&t=blk_malicious&u=http://rarlab.com/%20192.168.0.70/-%20-%20GET
      But i only see a white page with 404 - Not Found.

      With this method do i still need to modify the sgerror.php somehow?

      1 Reply Last reply Reply Quote 0
      • V
        veyron
        last edited by

        I'm having the same issue… need some help here :)

        1 Reply Last reply Reply Quote 0
        • V
          veyron
          last edited by

          Well, one way to go over the problem is add a ? to the end of the url. So, imagine that we are redirecting to http://google.com. If we replace it by http://google.com/? we get the correct page, but the url still have the *-%20-%20GET…

          1 Reply Last reply Reply Quote 0
          • M
            MrGlasspoole
            last edited by

            So you have it working?

            Where did you place the "?"

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Place the ? between the page title (e.g. blocked.php) and the parameters, so something.php?one=1&two=2&three=3, and so on.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • M
                MrGlasspoole
                last edited by

                Ok with

                http://warning.mydomain.net/index.html?&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
                

                the 404 is gone and i can see the source code in Firebug.

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