{"id":22306551,"url":"https://github.com/ip2location/ip2proxy-rails","last_synced_at":"2026-02-12T22:32:00.346Z","repository":{"id":265709314,"uuid":"892358973","full_name":"ip2location/ip2proxy-rails","owner":"ip2location","description":"IP2Proxy Ruby on Rails library allows user to reverse search of IP address to detect VPN servers, open proxies, web proxies, Tor exit nodes, search engine robots, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks using IP2Proxy BIN database.","archived":false,"fork":false,"pushed_at":"2025-12-31T01:49:13.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-01T13:47:21.762Z","etag":null,"topics":["ip2proxy","ip2proxy-database","proxy","ruby-gem","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://www.ip2location.com","language":"Ruby","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/ip2location.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2024-11-22T00:52:54.000Z","updated_at":"2025-12-31T01:49:16.000Z","dependencies_parsed_at":"2025-04-12T14:13:20.498Z","dependency_job_id":"70b1ec48-ca94-4e4e-b752-b99a5442f87a","html_url":"https://github.com/ip2location/ip2proxy-rails","commit_stats":null,"previous_names":["ip2location/ip2proxy-rails"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ip2location/ip2proxy-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/ip2proxy-rails/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29383909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"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":["ip2proxy","ip2proxy-database","proxy","ruby-gem","ruby-on-rails"],"created_at":"2024-12-03T19:27:53.880Z","updated_at":"2026-02-12T22:32:00.331Z","avatar_url":"https://github.com/ip2location.png","language":"Ruby","readme":"[![Latest Stable Version](https://img.shields.io/gem/v/ip2proxy_rails.svg)](https://rubygems.org/gems/ip2proxy_rails)\n[![Total Downloads](https://img.shields.io/gem/dt/ip2proxy_rails.svg)](https://rubygems.org/gems/ip2proxy_rails)\n\n# IP2Proxy Ruby on Rails Library\nThis IP2Proxy Ruby on Rails library allows user to reverse search of IP address to detect VPN servers, open proxies, web proxies, Tor exit nodes, search engine robots, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks using IP2Proxy BIN database. Other information available includes proxy type, country, state, city, ISP, domain name, usage type, AS number, AS name, threats, last seen date and provider names. It lookup the proxy IP address from **IP2Proxy BIN Data** file.\n\n## INSTALLATION\n1. Add this lines to your application's Gemfile:\n```ruby\ngem 'ip2proxy_ruby'\ngem 'ip2proxy_rails'\n```\n2. Then execute it\n```bash\n$ bundle install\n```\n3. Open the preferred file in the `config/environments` directory. Add the following code to the chosen configuration file after the `Rails.application.configure do` line.\n```ruby\nconfig.ip2proxy_db_path = Rails.root.join('lib', 'assets', 'ip2proxy_rails', 'IP2PROXY.BIN').to_s\n```\n\n## USAGE\n1. Download IP2Proxy BIN database\n    - IP2Proxy LITE database at https://lite.ip2location.com\n    - IP2Proxy Commercial database at https://www.ip2location.com/proxy-database\n2. Create a folder named as `ip2proxy_rails` in the `lib/assets` directory.\n3. Unzip and copy the BIN file into `lib/assets/ip2proxy_rails` folder.\n4. Rename the BIN file to **IP2PROXY.BIN**.\n5. Create a **TestController** using the below command line\n```bash\nbin/rails generate controller Test index --skip-routes\n```\n6. Open the *app/controllers/test_controller.rb* in any text editor.\n7. Add the below lines into the controller file.\n```ruby\nrequire 'ip2proxy_rails'\n\nclass TestController \u003c ApplicationController\n  def index\n    proxy_service = Ip2proxyRails.new('1.2.3.4')\n    @is_proxy = proxy_service.is_proxy\n    @proxy_type = proxy_service.proxy_type\n    @country_code = proxy_service.country_code\n    @country_name = proxy_service.country_name\n    @region = proxy_service.region\n    @city = proxy_service.city\n    @isp = proxy_service.isp\n    @domain = proxy_service.domain\n    @usage_type = proxy_service.usagetype\n    @asn = proxy_service.asn\n    @as = proxy_service.as\n    @last_seen = proxy_service.last_seen\n    @threat = proxy_service.threat\n    @provider = proxy_service.provider\n    @fraud_score = proxy_service.fraud_score\n  end\nend\n```\n8. Open the *app/views/test/index.html.erb* in any text editor and add the below lines into it.\n```\n\u003cp\u003eis Proxy: \u003c%= @is_proxy %\u003e\u003c/p\u003e\n\u003cp\u003eProxy Type: \u003c%= @proxy_type %\u003e\u003c/p\u003e\n\u003cp\u003eCountry Code: \u003c%= @country_code %\u003e\u003c/p\u003e\n\u003cp\u003eCountry Name: \u003c%= @country_name %\u003e\u003c/p\u003e\n\u003cp\u003eRegion Name: \u003c%= @region %\u003e\u003c/p\u003e\n\u003cp\u003eCity Name: \u003c%= @city %\u003e\u003c/p\u003e\n\u003cp\u003eISP Name: \u003c%= @isp %\u003e\u003c/p\u003e\n\u003cp\u003eDomain Name: \u003c%= @domain %\u003e\u003c/p\u003e\n\u003cp\u003eUsage Type: \u003c%= @usage_type %\u003e\u003c/p\u003e\n\u003cp\u003eASN: \u003c%= @asn %\u003e\u003c/p\u003e\n\u003cp\u003eAS: \u003c%= @as %\u003e\u003c/p\u003e\n\u003cp\u003eLast Seen: \u003c%= @last_seen %\u003e\u003c/p\u003e\n\u003cp\u003eThreat: \u003c%= @threat %\u003e\u003c/p\u003e\n\u003cp\u003eProvider: \u003c%= @provider %\u003e\u003c/p\u003e\n\u003cp\u003eFraud Score: \u003c%= @fraud_score %\u003e\u003c/p\u003e\n```\n9. Add the following line into the *config/routes.rb* file after the `Rails.application.routes.draw do` line.\n```ruby\nget \"/test\", to: \"test#index\"\n```\n10. Restart your development server.\n```bash\n$ bin/rails server\n```\n11. Enter the URL \u003cyour domain\u003e/test and run. You should see the proxy information of **1.2.3.4** IP address.\n\n## Dependencies\nThis library requires IP2Proxy BIN data file to function. You may download the BIN data file at\n* IP2Proxy LITE BIN Data (Free): https://lite.ip2location.com\n* IP2Proxy Commercial BIN Data (Comprehensive): https://www.ip2location.com/proxy-database\n\n## Support\nEmail: support@ip2location.com\nURL: [https://www.ip2location.com](https://www.ip2location.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2proxy-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fip2proxy-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2proxy-rails/lists"}