This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP Proxy - block everything except explicit list

Hello all.

I want to use the proxy to block access to *EVERYTHING* except an explicit list of sites that I provide.  I haven't been able to find any way to do this in 3.x, but recently upgraded to 4.0 and found that you can now define custom Categories.

Looking for a way to create a Category (or something manual on the command line, don't care) that blocks EVERYTHING except a list of sites I provide.

Any ideas appreciated.  


This thread was automatically locked due to age.
Parents
  • Create one profile for "Any" network. Do not create any other profiles.
    In this profile add the stuff you want to allow to the whitelist and add the entry * to the blacklist. Since whitelist has priority, all of the entries in it will be visible while all other fall to the blacklist and get matched by * and so denied.
    Turn on this profile and ... well let me know how it went.

      
  • Nope.  Doesn't work.

    In fact, it makes my entire surf protection daemon die.  I posted another message about that thinking it was something wrong with 4.0, but it turns out to be the "*" character as far as I can tell. 

    Any other ideas?  
  • So, pretty much any regex that I put into the blacklist box makes this whole thing die. 

    I really need a way to block EVERYTHING except what's in the whitelist.  I'm even fine with having to edit the squid configuration...  
  • Sorry, it's my fault (and yours when I get to think of it)  
    We both forgot that "*" is not a valid regexp!!!  
    You should write ".*" and keep the rest the same as the other message I posted.
       
Reply
  • Sorry, it's my fault (and yours when I get to think of it)  
    We both forgot that "*" is not a valid regexp!!!  
    You should write ".*" and keep the rest the same as the other message I posted.
       
Children