{"id":17369622,"url":"https://github.com/jblond/ban_em_all","last_synced_at":"2026-04-13T21:01:09.811Z","repository":{"id":44443447,"uuid":"91702271","full_name":"JBlond/ban_em_all","owner":"JBlond","description":"collection of bash scripts to fill iptables with ip adresses","archived":false,"fork":false,"pushed_at":"2025-09-10T09:54:49.000Z","size":451,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-10T13:19:17.386Z","etag":null,"topics":["bash-script","blocking-bots","fail2ban","iptables"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/JBlond.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-05-18T14:20:33.000Z","updated_at":"2025-09-10T09:54:34.000Z","dependencies_parsed_at":"2024-02-24T22:29:26.307Z","dependency_job_id":"32093eff-5eb6-4f22-abf2-470ceb789387","html_url":"https://github.com/JBlond/ban_em_all","commit_stats":{"total_commits":396,"total_committers":3,"mean_commits":132.0,"dds":0.3964646464646465,"last_synced_commit":"ae468281ab49717c40ed661659bf87d93b083ef0"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/JBlond/ban_em_all","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fban_em_all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fban_em_all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fban_em_all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fban_em_all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBlond","download_url":"https://codeload.github.com/JBlond/ban_em_all/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fban_em_all/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278551509,"owners_count":26005389,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash-script","blocking-bots","fail2ban","iptables"],"created_at":"2024-10-16T00:05:55.487Z","updated_at":"2025-10-06T02:59:25.676Z","avatar_url":"https://github.com/JBlond.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ban 'em all!\n\nBan / Block IPs via Iptables from your system.\nThe current list contains IP and or IP ranges that tried to break in servers, did massive scans, DDOS'ed the webserver, downloaded a single file from the webserver a gazillion times, brute force attacks on sshd, etc.\n\nWhere is the attacking IP localed? Try www.utrace.de or utrace.me/whois/\n\n## install\n\n```bash\nsudo apt-get install git fail2ban make\ngit clone https://github.com/JBlond/ban_em_all.git ban\ncd ban\nmake\n```\n\n## update\n\n```bash\nmake\n```\n\n## ban some IP (range) on the spot\n\n```bash\n./now.sh 5.9.23.231\n./now.sh 1.81.0.0/16\n./now6.sh 2406:9DC0:6669::/48\n```\n\n## usage\n\nThis simple script shows which rules have been used. So maybe over time you can optimize / shorten the list of blocked IPs for your system.\n\n```bash\nmake usage\n```\n\n### China blocking\n\n```bash\nmake china\nmake chinav6\n```\n\nThis will run the block list defined in china.sh. Do this only if you know what you are doing.\n\n### immuni web scanning\n\n```bash\nmake immuniweb\n```\n\n## Blocking all\n\n```bash\nmake all\n```\n\n## Create your list\n\nAfter using one or the other list of this repository and adding IPs with now and now6, you may want to export that exact list\n\n```bash\nmake list\n\n# or\n\nmake list \u003e mylist.txt \n```\n\n### Still need more?\n\nAlso a good place to look for certain IPs is \u003chttps://www.ip2location.com/free/visitor-blocker\u003e\n\n## Legacy warnings\n\n```bash\nsudo apt install nftables\nsudo systemctl enable nftables.service\n```\n\n## Let's encrypt issues\n\nSometimes the Let's encrypt IP range is in this. They change their range quiet often. In trouble\n\nrun \n\n```bash\nsudo iptables -F INPUT\nsudo iptables --flush bannedDownloader\nsudo iptables -X bannedDownloader\n```\n\nUpdate your certs\n\nrun \n```bash\nmake\n```\n\n## Contribute\n\nContributers are welcome. Open Pull request or file an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjblond%2Fban_em_all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjblond%2Fban_em_all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjblond%2Fban_em_all/lists"}