Mozzarella

Home

LAN port scan forbidder

Forbid untrusted web to scan localhost or LAN. Browser addon.


What

Webs can try to fetch 127.0.0.1:xxxx or 192.168.Y.Z:xxxx to scan your open ports in LAN.

Although browsers have cross-domain protections, webs can't read response contents, but can still see the connection succeeds or fails.

There're already reports that some websites using that as tracking fingerprint.

A web for testing: http://samy.pl/webscan/

So

Forbid any website behaviors trying to connect to your LAN or localhost, if user is visiting the website via their domains or public IP addresses. (Read the source code background.js to see the logic)

Using JS library whitequark/ipaddr.js (MIT License) v2.0.0 to judge IP range.

Fallback operation

If user find a web broken, user can temporary set this addon disabled via toolbar button for:


(above can be set as keyboard shortcuts)

there's showy toolbar button badge indicating disabling status.

Cases when web LAN scan is properly used

Not all LAN-port-scan are evil.

Install