Search squid archive

Re: How to deny a specific URL?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux