{"id":37960477,"url":"https://github.com/aarnaud/http-mitigation","last_synced_at":"2026-01-16T18:04:00.938Z","repository":{"id":62866484,"uuid":"133591393","full_name":"aarnaud/http-mitigation","owner":"aarnaud","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-16T01:09:35.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T14:20:17.345Z","etag":null,"topics":["ddos-protection","golang","http","mitigation","ngix"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/aarnaud.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}},"created_at":"2018-05-16T01:08:53.000Z","updated_at":"2024-06-20T14:20:17.345Z","dependencies_parsed_at":"2022-11-08T06:32:07.438Z","dependency_job_id":null,"html_url":"https://github.com/aarnaud/http-mitigation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aarnaud/http-mitigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarnaud%2Fhttp-mitigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarnaud%2Fhttp-mitigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarnaud%2Fhttp-mitigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarnaud%2Fhttp-mitigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aarnaud","download_url":"https://codeload.github.com/aarnaud/http-mitigation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarnaud%2Fhttp-mitigation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["ddos-protection","golang","http","mitigation","ngix"],"created_at":"2026-01-16T18:04:00.868Z","updated_at":"2026-01-16T18:04:00.927Z","avatar_url":"https://github.com/aarnaud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-mitigation\n\n\n````\nUsage:\n   [flags]\n   [command]\n\nAvailable Commands:\n  help        Help about any command\n  version     Print the version.\n\nFlags:\n      --cookie-name string      Cookie Name (default \"__mitigation\")\n  -h, --help                    help for this command\n      --listen-port int         HTTP listen port (default 8000)\n      --redis-addr string       Redis Server Address (default \"127.0.0.1:6379\")\n      --redis-db int            Redis DB\n      --redis-password string   Redis Password\n      --threshold1 int          Threshold per domain per second (mitigation redirect 307) (default 10000)\n      --threshold2 int          Threshold per domain per second (mitigation redirect javascript) (default 50000)\n  -v, --verbose                 Enable verbose\n````\n\n\nNginx Configuration\n\n```\nupstream mitigation_backend {\n    server 127.0.0.1:8000;\n}\n\nserver {\n    listen       80;\n    server_name  localhost;\n\n    ######################## Mitigation #########################\n    auth_request /__protection;\n    auth_request_set $challenge $upstream_http_x_challenge;\n    if ($challenge) {\n        return 307 $challenge;\n    }\n\n    location /__protection {\n        proxy_pass              http://mitigation_backend;\n        proxy_pass_request_body off;\n        proxy_set_header        Content-Length \"\";\n        proxy_set_header        X-Original-URI $request_uri;\n        proxy_set_header        X-Original-Query $query_string;\n        proxy_set_header        X-Original-Host $host;\n    }\n    ############################################################\n\n\n    location / {\n        root   /usr/share/nginx/html;\n        index  index.html index.htm;\n    }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarnaud%2Fhttp-mitigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faarnaud%2Fhttp-mitigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarnaud%2Fhttp-mitigation/lists"}