{"id":29955066,"url":"https://github.com/foca/alasocho-geoip","last_synced_at":"2025-08-03T17:09:42.801Z","repository":{"id":1691571,"uuid":"2419698","full_name":"foca/alasocho-geoip","owner":"foca","description":"IP geolocation service for alasocho.com","archived":false,"fork":false,"pushed_at":"2011-09-20T02:30:58.000Z","size":18210,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-10T10:19:47.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://geoip-service.herokuapp.com","language":"Ruby","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/foca.png","metadata":{"files":{"readme":"README.markdown","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":"2011-09-20T01:43:55.000Z","updated_at":"2018-03-07T19:25:15.000Z","dependencies_parsed_at":"2022-09-03T12:13:28.649Z","dependency_job_id":null,"html_url":"https://github.com/foca/alasocho-geoip","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/foca/alasocho-geoip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Falasocho-geoip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Falasocho-geoip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Falasocho-geoip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Falasocho-geoip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foca","download_url":"https://codeload.github.com/foca/alasocho-geoip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Falasocho-geoip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268578914,"owners_count":24273089,"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-08-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2025-08-03T17:09:31.109Z","updated_at":"2025-08-03T17:09:42.794Z","avatar_url":"https://github.com/foca.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoIP Server\n\nThis simple Rack server is useful as a self-hosted service for making lookups to the GeoIP database from MaxMind.com\n\n\n## Instant installation and deploy\n\n* Clone this: `git clone git://github.com/JackDanger/geoip_server.git`\n* Download the free GeoIP data files: `rake geoip:update_city_lite`\n* Commit that data file to your clone: `git add vendor \u0026\u0026 git commit -m \"adding data file\"`\n* Signup for an account at Heroku ([better details here](http://github.com/sinatra/heroku-sinatra-app))\n* Create and name a new app where you want to host this\n* push it to Heroku.com: `git push heroku master`\n\n\n## HowTo\n\nOnce the server is running you can make a GET request to the server and receive lookup results in JSON format.\n\n    ip = request.remote_ip\n    require 'open-uri'\n    data = JSON.decode(open(\"http://my-geoip-service-app.heroku.com/#{ip}\").read)\n    render :text =\u003e \"You're in: #{data[:city]}\"\n\nOr, straight from a terminal:\n\n    curl -X POST http://my-geoip-service-app.heroku.com/207.97.227.239\n\nPatches welcome, forks celebrated.\n\nCopyright (c) 2010 [Jack Danger Canty](http://jåck.com). Released under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoca%2Falasocho-geoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoca%2Falasocho-geoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoca%2Falasocho-geoip/lists"}