<的browserCaps>和NULL UserAgent [英] <browserCaps> and NULL UserAgent

查看:82
本文介绍了<的browserCaps>和NULL UserAgent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



发生了一些具有NULL UserAgent的请求。其中一些

是合法的抓取工具(例如,Overture的抓取工具),我正在尝试

调整我的< browserCaps>正确分类抓取工具。


为了尝试使用(UserAgent == null)捕获浏览器,我添加了一个这样的

案例:


< filter>

< case match =" ^ $">

crawler = true
< / case>

< / filter>


但这似乎只捕获空字符串(正如预期的那样) 。


有没有人知道匹配空字符串的方法?


谢谢,

j


There are some Requests that occur that have a NULL UserAgent. Some of these
are legitimate crawlers (e.g., Overture''s crawler), and I''m attempting to
adjust my <browserCaps> to correctly classify crawlers.

In an attempt to capture browsers with (UserAgent == null), I''ve added a
case like this:

<filter>
<case match="^$">
crawler=true
</case>
</filter>

But that only seems to trap the empty string (as expected, really).

Does anyone know a way to match the null string?

Thanks,
j

推荐答案

">

crawler = true

< / case>

< / filter>


但这似乎只是捕获空字符串(正如预期的那样)。


有没有人知道一种匹配空字符串的方法吗?


谢谢,

j
">
crawler=true
</case>
</filter>

But that only seems to trap the empty string (as expected, really).

Does anyone know a way to match the null string?

Thanks,
j


你好Jason,


感谢您在社区发帖。

从你的描述中,你想知道如何去做和browserCap''过滤器

以便捕获那些useragent为null的客户,是吗?

关于这个问题,我是

找到合适的资源来帮助你,我们会尽快更新。


问候,


Steven Cheng

Microsoft在线支持


安全! www.microsoft.com/security(This )发布按原样提供;,

没有保修,也没有授予任何权利。)

Hi Jason,

Thank you for posting in community.
From your description, you''re wondering how to set the browserCap'' filter
so as to capture those clients whose useragent is null, yes?
Regarding on the issue, I am
finding proper resource to assist you and we will update as soon as posible.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security(This posting is provided "AS IS",
with no warranties, and confers no rights.)


是的,这就是我想要做的事情(即,匹配客户与UserAgent == null)

j


Steven Cheng [MSFT]"< v - ****** @ online .microsoft.com>在消息中写道

news:zz ************** @ cpmsftngxa07.phx.gbl ...
Yes, this is what I want to do (i.e., match clients with UserAgent==null)
j

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:zz**************@cpmsftngxa07.phx.gbl...
嗨Jason,

感谢您在社区发帖。
从您的描述中,您想知道如何设置browserCap''过滤器
以便捕获那些useragent是null,是吗?
关于这个问题,我正在寻找合适的资源来帮助你,我们会尽快更新
posible。
问候,

Steven Cheng
微软在线支持

获得安全! www.microsoft.com/security(此帖子按原样提供,
不作任何保证,并且不授予任何权利。)
Hi Jason,

Thank you for posting in community.
From your description, you''re wondering how to set the browserCap'' filter
so as to capture those clients whose useragent is null, yes?
Regarding on the issue, I am
finding proper resource to assist you and we will update as soon as posible.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security(This posting is provided "AS IS",
with no warranties, and confers no rights.)



这篇关于&LT;的browserCaps&GT;和NULL UserAgent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆