{"id":20982854,"url":"https://github.com/emnsen/basic-nginx-fw","last_synced_at":"2026-04-24T12:05:25.867Z","repository":{"id":82188532,"uuid":"163968094","full_name":"emnsen/basic-nginx-fw","owner":"emnsen","description":"Block crawl(bad bot) bot requests","archived":false,"fork":false,"pushed_at":"2019-01-03T12:13:33.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T06:47:19.298Z","etag":null,"topics":["basic-nginx-fw","crawl-block","firewall","ipblock","nginx","nginx-firewall","nginx-ip-filter","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emnsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-01-03T12:06:22.000Z","updated_at":"2023-05-12T16:53:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c77c4dd-65bd-4d0b-abd0-cf5e32b4cd4f","html_url":"https://github.com/emnsen/basic-nginx-fw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emnsen%2Fbasic-nginx-fw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emnsen%2Fbasic-nginx-fw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emnsen%2Fbasic-nginx-fw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emnsen%2Fbasic-nginx-fw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emnsen","download_url":"https://codeload.github.com/emnsen/basic-nginx-fw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243385205,"owners_count":20282518,"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":["basic-nginx-fw","crawl-block","firewall","ipblock","nginx","nginx-firewall","nginx-ip-filter","ubuntu"],"created_at":"2024-11-19T05:46:59.002Z","updated_at":"2026-04-24T12:05:25.805Z","avatar_url":"https://github.com/emnsen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Usage\n```bash\nsudo apt install ipset iptables\nipset create blacklist hash:ip\niptables -A FORWARD -m set --match-set blacklist src -j DROP\nchmod +x parser.py logfilter.sh run.sh\nchmod -R 777 ips/ logs/ results/\n./parser.py\n```\n\n#### Cron\n```bash\n*/5 * * * * /usr/bin/python3.5 /PATH/parser.py \u003e\u003e /PATH/cron.log 2\u003e\u00261\n```\n\n**Notes:**\n1. If you are going to use the root user crontab IN, do not forget to manually assign the **BASE_PATH** variable.\n2. Nginx log path variable: **ACCESS_LOG_FILE** in parser.py\n3. The last 5 minutes are scanned. Check out the logfilter.sh file if you want to change it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femnsen%2Fbasic-nginx-fw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femnsen%2Fbasic-nginx-fw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femnsen%2Fbasic-nginx-fw/lists"}