[ 
https://issues.apache.org/jira/browse/NUTCH-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273281#comment-16273281
 ] 

Michael Coffey commented on NUTCH-2468:
---------------------------------------

I believe there are at least 2 ways to address this issue.

The simple way is to add urlfilter-validator to the plugin.includes property in 
nutch-default.xml. That would apply to all users who don't override 
plugin.includes and would not affect those that do.

Another way would be to add an exclusion pattern to the default 
regex-urlfilter,txt. That would apply to all users who don't use a custom 
regex-urlfilter,txt and would not affect those that do.

RFC 3986 (the URI spec) defines a regex for URIs at 
tools.ietf.org/html/rfc3986#appendix-B


> should filter out invalid URLs by default
> -----------------------------------------
>
>                 Key: NUTCH-2468
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2468
>             Project: Nutch
>          Issue Type: Bug
>          Components: bin
>    Affects Versions: 1.12
>            Reporter: Michael Coffey
>
> Some Nutch components, by default, should reject invalid URLs. This was 
> recently discussed in the users mailing list and has affected my work for a 
> while. Although there may be some special-purpose needs to collect invalid 
> URLs, they are not generally useful for crawling.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to