Extended to support https and ftp

Hi!
Thank you for the filter. I've just made few changes.