{"id":37194106,"url":"https://github.com/codeexpress/cfip","last_synced_at":"2026-01-14T22:33:12.995Z","repository":{"id":40340634,"uuid":"192053234","full_name":"codeexpress/cfip","owner":"codeexpress","description":"Given an IP address, tells if this is a Cloudflare IP. Eg: https://api.code.express/cfip/104.31.122.34","archived":false,"fork":false,"pushed_at":"2022-05-13T22:45:28.000Z","size":21,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-06-19T19:40:05.173Z","etag":null,"topics":["cloudflare","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeexpress.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":"2019-06-15T08:05:27.000Z","updated_at":"2022-05-13T21:23:25.000Z","dependencies_parsed_at":"2022-08-09T17:41:01.457Z","dependency_job_id":null,"html_url":"https://github.com/codeexpress/cfip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/codeexpress/cfip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeexpress%2Fcfip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeexpress%2Fcfip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeexpress%2Fcfip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeexpress%2Fcfip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeexpress","download_url":"https://codeload.github.com/codeexpress/cfip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeexpress%2Fcfip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cloudflare","go","golang"],"created_at":"2026-01-14T22:33:12.242Z","updated_at":"2026-01-14T22:33:12.982Z","avatar_url":"https://github.com/codeexpress.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is a given IP a Cloudflare IP address?\n`cfip` is a script that checks if a given IP address is a Cloudflare IP address. It can be run as:\n- a standlone tool\n- a HTTP API\n\n## Cloud\n`cfip` runs as a API endpoint on api.code.express. To check IPv4 and IPv6 addresses respectively. Invoke it as follows following:\n\nhttps://api.code.express/cfip/104.31.122.34\n\nhttps://api.code.express/cfip/2606:4700:30::681b:804b\n\nPlease do not use this for production use cases or cause undue load on the server. If you need a more stable api, download and run a local copy by following the instructions below.\n\n## Download\n\n### Latest Releases\n`cfip` is available for 32/64 bit linux, OS X and Windows systems.\nLatest versions can be downloaded from the\n[Release](https://github.com/codeexpress/cfip/releases) tab above.\n\n### Build from source\nThis is a golang project with no dependencies. Assuming you have golang compiler installed,\nthe following will build the binary from scratch\n```\n$ git clone https://github.com/codeexpress/cfip\n$ cd cfif\n$ go build \n```\n\n## Usage\n\n### As a HTTP API\n`cfip` is best used as a HTTP api listening on localhost. One downloaded, run this to start the server:\n```\n$ ./cfip -s 8080\n```\n\nThen, to check an IP address, use curl or browser to open a URL eg. `curl http://localhost:8080/cfip/\u003cip_address\u003e`\nEg.\n```sh\n$ curl http://localhost:8080/cfip/104.31.122.34\n{\"ip\": \"104.31.122.34\", \"cloudflare_ip\": \"true\"}\n```\n\nAlso works for IPv6, eg.\n\n![cfip server on localhost checking IPv6 address](https://user-images.githubusercontent.com/14211134/59569036-c5a4f000-9038-11e9-9cd0-03a053398cc7.png)\n\n### As a standalone binary\n`cfip` can be used as a standalone binary as well. Simply invoke as follows:\n```sh\n$ ./cfip 104.31.122.34\n{\"ip\": \"104.31.122.34\", \"cloudflare_ip\": \"true\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeexpress%2Fcfip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeexpress%2Fcfip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeexpress%2Fcfip/lists"}