How to customize the re-direct page when a user tries to access a blocked site

Posted by user42891 on Server Fault See other posts from Server Fault or by user42891
Published on 2010-05-23T12:39:58Z Indexed on 2010/05/23 12:51 UTC
Read the original article Hit count: 158

Filed under:
|
|

How to customize the html page which is re-directed when a user tries to access a URL which has been blacklisted by squid proxy server.

acl blocksites url_regex "/etc/squid/squid-block.acl"
http_access deny blocksites

I would like to re-direct to a custom HTML page explaining why he is not allowed to go the blocked site or send him to an empty page.

© Server Fault or respective owner

Related posts about proxy

Related posts about squid