{"id":14980338,"url":"https://github.com/simeononsecurity/system-wide-windows-ad-blocker","last_synced_at":"2025-10-28T23:31:31.073Z","repository":{"id":110919325,"uuid":"353931956","full_name":"simeononsecurity/System-Wide-Windows-Ad-Blocker","owner":"simeononsecurity","description":"Block Ads, Tracking, and Telemetry System Wide","archived":false,"fork":false,"pushed_at":"2024-07-26T22:55:34.000Z","size":2161,"stargazers_count":39,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-01T19:43:46.293Z","etag":null,"topics":["adblock","adblocker","powershell-script","windows","windows-firewall"],"latest_commit_sha":null,"homepage":"https://simeononsecurity.com/github/System-Wide-Windows-Ad-Blocker","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simeononsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"publiccode":null,"codemeta":null},"funding":{"github":["simeononsecurity"],"custom":["https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"]}},"created_at":"2021-04-02T06:46:31.000Z","updated_at":"2025-01-16T17:17:53.000Z","dependencies_parsed_at":"2023-12-04T09:23:39.288Z","dependency_job_id":"d29c980e-bb9a-4ab7-a72a-96e3242dc6eb","html_url":"https://github.com/simeononsecurity/System-Wide-Windows-Ad-Blocker","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"740822cefce40a92a5461affe8239a218ee63863"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FSystem-Wide-Windows-Ad-Blocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FSystem-Wide-Windows-Ad-Blocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FSystem-Wide-Windows-Ad-Blocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FSystem-Wide-Windows-Ad-Blocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simeononsecurity","download_url":"https://codeload.github.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238738055,"owners_count":19522301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["adblock","adblocker","powershell-script","windows","windows-firewall"],"created_at":"2024-09-24T14:01:37.783Z","updated_at":"2025-10-28T23:31:30.514Z","avatar_url":"https://github.com/simeononsecurity.png","language":"PowerShell","funding_links":["https://github.com/sponsors/simeononsecurity","https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"],"categories":[],"sub_categories":[],"readme":"# System-Wide-Windows-Ad-Blocker\n\n[![Sponsor](https://img.shields.io/badge/Sponsor-Click%20Here-ff69b4)](https://github.com/sponsors/simeononsecurity) [![VirusTotal Scan](https://github.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/actions/workflows/virustotal.yml/badge.svg)](https://github.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/actions/workflows/virustotal.yml)\n\nThis script is a Windows PowerShell script that downloads and applies the \"StevenBlack/hosts\" file to the system's \"hosts\" file, which can be used to block certain domains/websites by mapping them to an IP address of your choice (usually the IP address of the local machine). The script checks the internet connection and proxy settings, and tries downloading the latest version of the \"hosts\" file from two different sources: \"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts\" and \"http://sbc.io/hosts/hosts\". If the download fails, the script continues with a local copy of the \"hosts\" file. The script requires elevated privileges to run and modifies the \".NETFramework\" registry key to use only the latest version of the .NET framework.\n\n*We are seeking all comments and concerns for this repo. Please submit an [issue](https://github.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/issues) with any information you might have.*\n\n## Known Issues\nWe've so far been unable to replicate the issue, but on some systems a issue occurs from the hosts file being too large. This causes windows to be unable to resolve any domain at all.\nWe suspect this is caused by low spec system performance. If this is you, please revert the changes with the guide below and submit an issue.\n\n### Lists Used:\n- [StevenBlack/hosts - adware + malware](https://github.com/StevenBlack/hosts)\n\n### Example:\n#### Manual install:\n**The script may be launched from the extracted GitHub download like this:**\n```powershell\n.\\sos-system-wide-windows-ad-block.ps1\n```\n#### Automated install:\nRun the latest version of the script automatically:\n```powershell\niwr -useb 'https://simeononsecurity.ch/scripts/soswindowsadblocker.ps1' | iex\n```\n#### Removal\nhttps://github.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/issues/1\n\n## Learn more about [Blocking Windows Ads and Trackers](https://simeononsecurity.ch/github/System-Wide-Windows-Ad-Blocker)\n\u003ca href=\"https://simeononsecurity.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003ch2\u003eExplore the World of Cybersecurity\u003c/h2\u003e\n\u003c/a\u003e\n\u003ca href=\"https://simeononsecurity.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg src=\"https://simeononsecurity.com/img/banner.png\" alt=\"SimeonOnSecurity Logo\" width=\"300\" height=\"300\"\u003e\n\u003c/a\u003e\n\n### Links:\n- #### [github.com/simeononsecurity](https://github.com/simeononsecurity)\n- #### [simeononsecurity.com](https://simeononsecurity.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2Fsystem-wide-windows-ad-blocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimeononsecurity%2Fsystem-wide-windows-ad-blocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2Fsystem-wide-windows-ad-blocker/lists"}