{"id":16934366,"url":"https://github.com/codeskyblue/realip","last_synced_at":"2025-04-13T12:21:59.565Z","repository":{"id":57482022,"uuid":"132692751","full_name":"codeskyblue/realip","owner":"codeskyblue","description":"Get real IP behide nginx (Do not ignore private address)","archived":false,"fork":false,"pushed_at":"2018-12-17T03:24:49.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T03:22:36.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/codeskyblue.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}},"created_at":"2018-05-09T02:48:29.000Z","updated_at":"2019-12-24T07:05:58.000Z","dependencies_parsed_at":"2022-09-02T06:10:32.940Z","dependency_job_id":null,"html_url":"https://github.com/codeskyblue/realip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Frealip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Frealip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Frealip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Frealip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/realip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248711178,"owners_count":21149308,"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":[],"created_at":"2024-10-13T20:51:55.318Z","updated_at":"2025-04-13T12:21:59.534Z","avatar_url":"https://github.com/codeskyblue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RealIP\nGet real IP behide nginx (Do not ignore private address)\n\nFollows the rule of `X-Forwardd-For` and `X-Real-IP`\n\nRefs: \u003chttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For\u003e\n\n## Install\n```\ngo get -v github.com/codeskyblue/realip\n```\n\n## Usage\n```go\npackage main\n\nimport \"github.com/codeskyblue/realip\"\n\nfunc (h *Handler) ServeIndexPage(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {\n\tclientIP := realip.FromRequest(r)\n\tlog.Println(\"GET / from\", clientIP)\n}\n``` \n\n## Thanks to\n- \u003chttps://github.com/tomasen/realip\u003e\n\n# LICENSE\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Frealip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Frealip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Frealip/lists"}