【发布时间】:2017-09-24 23:01:39
【问题描述】:
我正在使用Sphider。
我想允许 Spider 离开我的域 http://www.example.com,但只抓取/访问包含 example 的 url。意味着只有像 http://www.example.com 或 http://www.my-example.com 或 http://www.test.example.com 这样的 URL 应该被访问/索引,而不是 http://www.exa-mple.com。
阅读manual后,我尝试了以下操作:Screenshot of what I tried.
但我在尝试索引时收到此消息:Image: What I'm getting when trying to index.
谁能帮帮我。我究竟做错了什么?我也已经尝试过*example*,但这也没有用。
【问题讨论】:
-
您只需要
*/example/,但如果您对检查上下文不感兴趣,为什么不在必须包含列表中使用简单的词example? -
@WiktorStribiżew 感谢您的评论。我会试试的。
标签: php regex search search-engine sphider