Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

/usr/share/squid/errors/en
share|improve this answer
    
will give this a try tomorrow –  user42891 May 23 '10 at 13:41
1  
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

 
discard

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.