Pádraig Brady wrote:
>> ^ anchors the string to the start.
> So in the example below you don't want that.
>That's what I thought. But it does apply to the explicit agents I wish
to block i.e larbin, LibWWW, Jakarta etc. So no problem there.
>> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.50
>>>> You can't really "AND" multiple things in the same RE
> so in .htaccess for example you specify each separately to match
> and the "AND" is implicit (unless you specify [OR]).
>> If it's always in the same order then you could do:
> MSIE 6\.0.*ru.*Opera
>>It's rarely in the same order but I was thinking as much. From what I
have gathered regex on Squid uses the same syntax as egrep. It also
supports PCRE so would that make a difference?
>> Any suggestions would be greatly appreciated.
>>>> www.txt2re.com may be helpful?
> though I haven't used it in earnest.
>>I've been there and tried that. My mathematical ability is completely
shocking to the point of non-existent so I'm sad to say, and I had major
problems trying to comprehend what I was presented with.
Nonetheless, thank for the suggestions. I will try to forge head with
the htaccess solution. Using the forward-for directive in squid
neccissated a custom log format for the backend servers which seems to
interfere with the htaccess directives but I have an understanding of
that so I know where to start
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!