Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

The pages you are looking for are located in

/usr/share/squid/errors/{your language}

e.g. for English

share|improve this answer
will give this a try tomorrow – user42891 May 23 '10 at 13:41
I see from another question that you're using squid on 2K3. The error pages are found in \squid\share\errors\{your language} e.g \squid\share\errors\English. – Iain May 23 '10 at 14:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.