Re: [squid-users] How can I block a https site?

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Wed, 22 Oct 2008 09:31:54 +0200

On 21.10.08 16:23, Alejandro Bednarik wrote:
> You can also use url_regex -i
>
> acl bad_sites url_regex -i "/etc/squid/bad_sites.txt"
> http_access deny bad_sites

using regexes is very ineffective and may lead to problems if you don't
count with:
- dot matching ANY character
- regex matching the middle of string, not just the end of it (like
  dstdomain does)

> >> # cat bad_sites.txt
> >> .youporn.com
> >> .rapidshare.com
> >> .googlevideo.com
> >> .photobucket.com
> >> .dailymotion.com
> >> .logmein.com
> >> .megavideo.com
> >> .audio.uol.com.br
> >> .imo.im
> >> #
> >>
> >> But I am able to connect https://imo.im
> >> I only got access denied when I access http://imo.im

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Eagles may soar, but weasels don't get sucked into jet engines. 
Received on Wed Oct 22 2008 - 07:32:18 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 22 2008 - 12:00:05 MDT