{"id":21885944,"url":"https://github.com/garywill/lan-port-scan-forbidder","last_synced_at":"2026-03-05T07:39:11.074Z","repository":{"id":97198219,"uuid":"395483154","full_name":"garywill/LAN-port-scan-forbidder","owner":"garywill","description":"Forbid untrusted webs to access localhost or LAN. An anti-scan protection 🛡️🏡","archived":false,"fork":false,"pushed_at":"2024-03-23T15:17:00.000Z","size":59,"stargazers_count":74,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T08:40:30.101Z","etag":null,"topics":["browser","browser-extension","firefox","firefox-addon","firefox-extension","lan-port-scanner","privacy","security","webextension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garywill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-08-13T01:07:24.000Z","updated_at":"2025-01-20T09:30:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a90bbb4b-636e-4a42-8b0f-698c52d8f389","html_url":"https://github.com/garywill/LAN-port-scan-forbidder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/garywill/LAN-port-scan-forbidder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2FLAN-port-scan-forbidder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2FLAN-port-scan-forbidder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2FLAN-port-scan-forbidder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2FLAN-port-scan-forbidder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garywill","download_url":"https://codeload.github.com/garywill/LAN-port-scan-forbidder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garywill%2FLAN-port-scan-forbidder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30114319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","browser-extension","firefox","firefox-addon","firefox-extension","lan-port-scanner","privacy","security","webextension"],"created_at":"2024-11-28T10:30:39.110Z","updated_at":"2026-03-05T07:39:11.056Z","avatar_url":"https://github.com/garywill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LAN port scan forbidder\n\nForbid untrusted web to scan localhost or LAN. Browser addon.\n\n- [Firefox Addon](https://addons.mozilla.org/firefox/addon/lan-port-scan-forbidder/)\n- [Chrome Addon](https://chrome.google.com/webstore/detail/lapppchpconamefemlnjdebbcpbncafl) (Manifest v2 needed) (recent version of Chrome has already built-in similar feature)\n\n## What\n\nWebs can try to fetch `127.0.0.1:xxxx` or `192.168.Y.Z:xxxx` to scan your open ports in LAN.\n\nAlthough browsers have cross-domain protections, webs can't read response contents, **but** can still see the connection succeeds or fails.\n\nThere're already reports that some websites using that as tracking fingerprint.\n\n\u003e A web for testing: http://samy.pl/webscan/\n\n## So\n\nForbid 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)\n\n\u003e Using JS library [whitequark/ipaddr.js](https://github.com/whitequark/ipaddr.js) (MIT License) v2.0.0 to judge IP range.\n\n### Notification\n\nUser can enable notification. When untrusted web tries to access private network and get blocked, will show up notification. \n\n### Fallback operation\n\nIf user find a web broken, user can temporary set this addon disabled via toolbar button for:\n\n- this one tab\n- this one tab and new tabs opened by this tab\n- this one window (Firefox only)\n- globally\n\n(above can be set as keyboard shortcuts)\n\nthere's showy toolbar button badge indicating disabling status.\n\n## Cases when web LAN scan is properly used\n\nNot all LAN-port-scan are evil.\n\n- Some manufacturers provide web for user's browser to scan LAN for their product that need updating.\n\n- Some softwares use `127.0.0.1` communication to interact between native program and web.\n\n## Disclaimer\n\nThis open souce addon comes with no warranty. Use on you own risk!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarywill%2Flan-port-scan-forbidder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarywill%2Flan-port-scan-forbidder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarywill%2Flan-port-scan-forbidder/lists"}