The idea here is that uBlock filters the domains that may serve the malware in the first place. It basically works the same as a DNS filter.

Which you can also easily do with uBlock Origin Lite in Chrome/Chromium.