OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: randomwalk on May 24, 2020, 07:42:23 pm

Title: Change the web proxy "access denied" page
Post by: randomwalk on May 24, 2020, 07:42:23 pm
I recently set up a transparent proxy to filter traffic for selected devices on the network. It works great.

But when you try to access a blacklisted page, the proxy gives this message that says "access denied" and to contact your administrator. Is there a way to customize that page to say something else?

Or even silently redirect any blacklisted page access attempts to another website randomly selected from a list?
Title: Re: Change the web proxy "access denied" page
Post by: fabian on May 24, 2020, 09:54:41 pm
This is officially not supported but you can overwrite the files in a /usr/local/etc/squid subdirectory. Keep in mind that those changes may not survive squid updates (not common but may happen)