(Not sure about the Component I selected... of course feel free to change...)

How can I exclude/something like that "ftp://" protocol links? My broken links report is getting clogged with entries like--

  • ftp://ftp.mysite.org/some-files/blah-blah-blah.pdf

           -1003       invalid schema ftp       [edit link settings etc.]

Thank you!

Comments

hass’s picture

Title: FTP links » FTP link checking
Component: User interface » Code
Category: support » feature

Currently not, sorry. You can only disable the the link check to get rid of the log entries... hopefully the module is able to verify ftp links in future, too. This is not a duplicate of #380052: Add support with non-blocking parallel link checking, but these case will also implement this as we move over to curl as curl is able to check much more link protocols than http and https what is a limitation of drupal_http_request(). For now it may be a good idea not to search for ftp links in content. I will try to fix this soon.

alison’s picture

Great, thank you! Please let me know if there's anything I can do to help.

hass’s picture

Patch is welcome.

hass’s picture

Version: 6.x-2.3 » 7.x-1.x-dev
Status: Active » Postponed

Disabled all non-http(s) links for link checking until we have curl implemented. URLs with protocols like ftp:/feed:/telnet:/other will be extracted, but automatically disabled for link check.

D6: http://drupalcode.org/project/linkchecker.git/commit/24cd5df
D7: http://drupalcode.org/project/linkchecker.git/commit/a29d457

May be misleading regarding the case topic, but FTP is on the to do list for future...

  • hass committed a29d457 on 8.x-1.x
    #860700: Disable all non-http(s) links for link checking until we have...
hass’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Issue summary: View changes

Maybe Guzzle simply works?