Dummies guide to custom squidguard filter page?
-
Hi All,
Been googling around and looking around the forum for an answer to this one but struggled.
We're setting up Squidguard but we're wanting to use an internal page/design rather than the standard text when the user hits a blocked site.
Since we're using the pfSense as a transparent proxy, we're unable to use the internal redirect easily. Has anyone got baby steps on how to do this?The closest i could find was http://forum.pfsense.org/index.php?topic=9519.0 but i didn't really understand it. Has anyone got any clear instructions on what to do?
Thanks,
grievsa93
-
Hi,
I am using "Redirect mode" = "int error page (enter error message)" and then I put some "Redirect info" in the field. Carefully - not all characters and symbols are allowed.
Then I modified this file:
/usr/local/www/sgerror.php
and this fuction:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # IE displayed self-page, if them size > 1024 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ function get_error_page($er_code_id, $err_msg='') { . . . }
This only works if pfsense GUI is on http and not https.
-
Hi,
I am using "Redirect mode" = "int error page (enter error message)" and then I put some "Redirect info" in the field. Carefully - not all characters and symbols are allowed.
Then I modified this file:
/usr/local/www/sgerror.php
and this fuction:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # IE displayed self-page, if them size > 1024 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ function get_error_page($er_code_id, $err_msg='') { . . . }
This only works if pfsense GUI is on http and not https.
Hi Nachtfalke,
Do you mind me asking what you put into 'Redirect info'? just text saying you naughty person get off this site', or coding?
Thanks,
g93
-
I just put in "Access denied for webpage:"
I am not good at coding so I searched the forum and found a thread where different people offered their blocked pages. Perhaps searching the forum could help you. I think ist simple php coding.
My page looks something like that:
http://forum.pfsense.org/index.php/topic,26057.msg207864.html#msg207864