Proxy filter blocking message

Hi,
I have configured nethserver as a http/https proxy (amazingly easy using nothing but the GUI).

My question is, how do you customize the blocking message the user receives and where is it located?

Thanks
Warren

1 Like

The block page its one CGI used both from SquidGuard and SquidClamav.

You can change it on SquidGuard using this commands (see http://docs.nethserver.org/projects/nethserver-devel/en/latest/content_filter.html):

config setprop squidguard RedirectUrl <url>
signal-event nethserver-squidguard-save

But for SquidClamav you need to create a template-custom of this fragment /etc/e-smith/templates/etc/squidclamav.conf/20redirect.

Finllay, the CGI code can be found here: /var/www/cgi-bin/nethserver-block.cgi

4 Likes

Hi.

How can i restore the default page?

Thanks for all.

Just revert the modification you did:

  config setprop squidguard RedirectUrl ''
  signal-event nethserver-squidguard-save 

And remove the custom-template, then:

 signal-event nethserver-squidclamav-update
1 Like

Hi.

Can i just change the screen appearance without losing the information as the category.

Thanks