uBlock / uMatrix does this by default, I believe. I often see sites like Paypal trying to probe 127.0.0.1. For my "security", I'm sure...
[0] Filter Lists -> Privacy -> Block Outsider Intrusion into Lan
[1] https://github.com/uBlockOrigin/uAssets/blob/master/filters/...>