Search squid archive

AW: ACL URL question

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

 



try 

	acl blockID url_regex -i ^http://www.xpto.com/\?id=000

the ? has a special meaing in regex, so you have to demask it...

markus


>-----Ursprüngliche Nachricht-----
>Von: Emilio Casbas [mailto:ecasbas@xxxxxxx] 
>Gesendet: Donnerstag, 5. Juli 2007 16:27
>An: "Rui Dias | Expoarade - Animação,E.M."
>Cc: squid-users@xxxxxxxxxxxxxxx
>Betreff: Re:  ACL URL question
>
>Rui Dias | Expoarade - Animação,E.M. escribió:
>> Hello Everyone,
>> I need to block a site like http://www.xpto.com/?id=000 
>> When i try to block the full address with the ?id=000 the 
>rule don't work,
>> but if I block only www.xpto.com .. I can block the website ..
>> The problem is that I don't want to block the whole website 
>only the link
>> like at top.
>> Anyone?
>> Thanks
>> Rui
>>   
>> 
>> 
>
>acl xpto dstdomain http://www.xpto.com
>acl blockID url_regex -i ^http://www.xpto.com/?id=000
>
>http_access deny blockID
>http_access allow xpto
>
>Take a look:
>http://wiki.squid-cache.org/SquidFaq/SquidAcl#head-57610c67cac9
>87182f6055118dd6d29e1ccd4445
>
>
>Emilio C.
>


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

  Powered by Linux