Custom SquidGuard Error Page not working
-
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.0I'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?
-
I'm having the same issue… need some help here :)
-
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…
-
So you have it working?
Where did you place the "?"
-
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.
-
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.