Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is it possible for customize squid to temporary allow blacklisted website via the error page?

Similar to Webwasher functionality below where it can detect blacklisted website, show an error page with a green button which the user can click to have 30 minutes allowance to visit that website.


alt text


Access to the desired site requires your confirmation. 

Your selected internet site "" belongs to the category (Online shopping at). 
If access is business-related or held outside of working hours, please confirm this by clicking on the "confirmation" 

If the page longer than 30 minutes is selected, this message appears again. 

Thank you for your understanding.
share|improve this question

I just have a button that reports the error to IT.. if users are stupid enough to push it for pr0n they get nailed.. I suppose you could use the same variables to populate a local php/perl function that modifies the acl, reloads the config and waits for cron to switch it back..

<br />If this is an error, please click the button below.
<br /><br />
<form method="post" action="http://proxy/catch.php">
<input type="hidden" name="url" value="%U" />
<input type="submit" value="Please click here to report this as an error" /></form>
<br />

in /etc/squid/errors/ERR_ACCESS_DENIED

use deny_info ERR_ACCESS_DENIED blacklistedacl

share|improve this answer
Thanks for the idea! – Dan Sep 3 '10 at 6:34

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.