{"id":21945903,"url":"https://github.com/ip2location/codeigniter-ip2proxy","last_synced_at":"2025-04-22T21:26:27.024Z","repository":{"id":56993042,"uuid":"295326018","full_name":"ip2location/codeigniter-ip2proxy","owner":"ip2location","description":"IP2Proxy library for CodeIgniter. It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and TOR exits nodes, search engine robots, data center ranges and residential proxies.","archived":false,"fork":false,"pushed_at":"2024-05-01T14:19:31.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T21:16:47.840Z","etag":null,"topics":["codeigniter-ip2proxy","ip-lookup","ip2proxy-bin-database","proxy-information","proxy-lookup","web-service"],"latest_commit_sha":null,"homepage":"https://www.ip2location.com","language":"PHP","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}},"created_at":"2020-09-14T06:36:44.000Z","updated_at":"2024-02-19T05:04:27.000Z","dependencies_parsed_at":"2022-08-21T10:10:45.193Z","dependency_job_id":null,"html_url":"https://github.com/ip2location/codeigniter-ip2proxy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fcodeigniter-ip2proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fcodeigniter-ip2proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fcodeigniter-ip2proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fcodeigniter-ip2proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/codeigniter-ip2proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250326844,"owners_count":21412327,"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":["codeigniter-ip2proxy","ip-lookup","ip2proxy-bin-database","proxy-information","proxy-lookup","web-service"],"created_at":"2024-11-29T04:20:08.426Z","updated_at":"2025-04-22T21:26:27.005Z","avatar_url":"https://github.com/ip2location.png","language":"PHP","readme":"CodeIgniter IP2Proxy Library\r\n===============================\r\nThis module 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. 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.\r\n\r\n## Installation\r\nUpload `controllers` and `libraries` to CodeIgniter `application` folder.\r\n\r\n## Usage\r\nThis module is able to query the IP address information from either BIN database or web service. This section will explain how to use this extension to query from BIN database and web service.\r\n\r\nSample codes are given in this project, under **controllers** folder. You may run the sample code by using \u003cyour_domain\u003e/index.php/ip2proxy_test.\r\n\r\n### BIN Database\r\nUse following codes in your application for get geolocation information.\r\n\r\n    // (optional) Define IP2Proxy database path.\r\n    define('IP2PROXY_DATABASE', '/path/to/ip2proxy/database');\r\n\r\n    $ipx = new IP2Proxy_lib();\r\n    $countryCode = $ipx-\u003egetCountryShort('1.0.241.135');\r\n\r\nBelow are the methods supported for BIN data file lookup.\r\n\r\n    $countryShort = $ipx-\u003egetCountryShort($ip);\r\n    $countryLong = $ipx-\u003egetCountryLong($ip);\r\n    $region = $ipx-\u003egetRegion($ip);\r\n    $city = $ipx-\u003egetCity($ip);\r\n    $isp = $ipx-\u003egetISP($ip);\r\n    $doamin = $ipx-\u003egetDomain($ip);\r\n    $usageType = $ipx-\u003egetUsageType($ip);\r\n    $proxyType = $ipx-\u003egetProxyType($ip);\r\n    $asn = $ipx-\u003egetASN($ip);\r\n    $as = $ipx-\u003egetAS($ip);\r\n    $lastSeen = $ipx-\u003egetLastSeen($ip);\r\n    $threat = $ipx-\u003egetThreat($ip);\r\n    $provider = $ipx-\u003egetProvider($ip);\r\n    $isProxy = $ipx-\u003eisProxy($ip);\r\n\r\n### Web Service\r\nUse following codes in your application for get geolocation information.\r\n\r\n    // (required) Define IP2Proxy API key.\r\n    define('IP2PROXY_API_KEY', 'your_api_key');\r\n\r\n    // (required) Define IP2Proxy Web service package of different granularity of return information.\r\n    define('IP2PROXY_PACKAGE', 'PX1');\r\n\r\n    // (optional) Define to use https or http.\r\n    define('IP2PROXY_USESSL', false);\r\n\r\n    $ipx = new IP2Proxy_lib();\r\n    print_r ($ipx-\u003egetWebService('1.0.241.135'));\r\n\r\n## Dependencies\r\nThis module requires IP2Proxy BIN data file or IP2Proxy API key to function. You may download the BIN data file at\r\n\r\n* IP2Proxy LITE BIN Data (Free): https://lite.ip2location.com\r\n* IP2Proxy Commercial BIN Data (Comprehensive): https://www.ip2location.com/proxy-database\r\n\r\nYou can also sign up for [IP2Proxy Web Service](https://www.ip2location.com/web-service/ip2proxy) to get one free API key.\r\n\r\n## IPv4 BIN vs IPv6 BIN\r\n* Use the IPv4 BIN file if you just need to query IPv4 addresses.\r\n* Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.\r\n\r\n## SUPPORT\r\nEmail: support@ip2location.com\r\n\r\nWebsite: https://www.ip2location.com\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fcodeigniter-ip2proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fcodeigniter-ip2proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fcodeigniter-ip2proxy/lists"}