Re: [squid-users] Blocking spesific url

From: Alexandre <arekkusu.bug_at_gmail.com>
Date: Thu, 10 Jul 2014 16:29:12 +0200

My bad. I need to check squid ACL in more detail.

I guess squidguard main advantage is speed when dealing with large list
of URL then.

Alexandre

On 10/07/14 14:31, Leonardo Rodrigues wrote:
> Em 10/07/14 09:04, Alexandre escreveu:
>> Concerning blocking the specific URL. Someone correct me if I am wrong
>> but I don't believe you can not do this with only squid.
>> The squid ACL system can apparently block per domain:
>> http://wiki.squid-cache.org/SquidFaq/SquidAcl
>>
>>
> Of course you can block specific URLs using only squid ACL options !!
>
> # acl aclname url_regex [-i] ^http:// ... # regex matching
> on whole URL
> # acl aclname urlpath_regex [-i] \.gif$ ... # regex
> matching on URL path
>
> if the URL is:
>
> http://eaassets-a.akamaihd.net/battlelog/background-videos/naval-mov.webm
>
> then something like:
>
> acl blockedurl url_regex -i akamaihd\.net\/battlelog\/background-videos\/
> http_access deny block
>
> should do it ! And i not even include the filename which, i
> imagine, can change between different stages.
>
>
>
Received on Thu Jul 10 2014 - 14:29:22 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 11 2014 - 12:00:04 MDT