Re: [squid-users] How to deny a specific URL?

From: D & E Radel <radel@dont-contact.us>
Date: Sat, 02 Jun 2007 23:40:17 +1200

Steve Snyder wrote:
> Looking around, I find plenty if examples on how to block object types
> and/or domain, but not on a full URL.
>
> Can someone point to an example of how, on Squid 2.6S13, to block access
> to a specific URL?
>
> Thanks.
>

I put all each url on a separate line in a text file and use the following:

     # Block websites using url or keywords.
     # Uses "\.file$" format to block file extensions
     #-------------------------------------------------
     acl blocked_content url_regex -i "/etc/squid/blocked_sites.txt"
     http_access deny blocked_content download all
     http_access deny blocked_content all
     http_reply_access deny blocked_content all

Hope that this helps
D.Radel.
Received on Sat Jun 02 2007 - 05:40:27 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:03 MDT