erickutcher / httpdownloader

HTTP(S) download manager that uses input/output completion ports (IOCP).
https://erickutcher.github.io/#HTTP_Downloader
549 stars 62 forks source link

Add extension blacklist for capturing downloads #244

Open davey-tan opened 9 months ago

davey-tan commented 9 months ago

Hi, may I suggest adding a way to blacklist certain extensions from being captured by the downloader's extension? I'm looking to disable all image formats from being captured.

erickutcher commented 9 months ago

You can filter URLs in the Add URL(s) window. Set the RegEx filter to Custom and use one of the following:

For the program: (?i)^((?!\.(jpg|jpeg|gif|png|webp|bmp|tiff?|dib|ico)).)*$ For the browser extensions: ^((?!\.(jpg|jpeg|gif|png|webp|bmp|tiff?|dib|ico)).)*$

You'd have to manually enter the filter every time, but it gives you the option to add file extensions.