{"id":15293883,"url":"https://github.com/vcian/laravel-ip-gateway","last_synced_at":"2025-04-12T17:52:29.395Z","repository":{"id":62543851,"uuid":"165058185","full_name":"vcian/laravel-ip-gateway","owner":"vcian","description":"Laravel IP Gateway","archived":false,"fork":false,"pushed_at":"2024-08-23T07:32:17.000Z","size":27,"stargazers_count":42,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T04:59:52.164Z","etag":null,"topics":["ip","ipaddress","ipblock","ipblocklist","ipwhitelist","laravel","laravel-framework","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/vcian/laravel-ip-gateway","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/vcian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2019-01-10T12:42:15.000Z","updated_at":"2024-11-19T03:15:00.000Z","dependencies_parsed_at":"2024-08-23T08:51:05.398Z","dependency_job_id":null,"html_url":"https://github.com/vcian/laravel-ip-gateway","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-ip-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-ip-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-ip-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Flaravel-ip-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vcian","download_url":"https://codeload.github.com/vcian/laravel-ip-gateway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610407,"owners_count":21132920,"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":["ip","ipaddress","ipblock","ipblocklist","ipwhitelist","laravel","laravel-framework","php"],"created_at":"2024-09-30T16:53:34.511Z","updated_at":"2025-04-12T17:52:29.374Z","avatar_url":"https://github.com/vcian.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP gateway for laravel\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/vcian/laravel-ip-gateway?style=for-the-badge)](https://packagist.org/packages/vcian/laravel-ip-gateway)\n\n## Features\n\n*  The Laravel Ip gateway package helps you to blacklist or whitelist IP to prevent unauthorized access to your application.\n\n*  Since blacklists deny access to specific entities, they are best used when a limited number of items need to be denied access.\nWhen most entities need to be denied access, a whitelist approach is more efficient.\n\n## Requirements\n\nPHP ^8.0\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require vcian/laravel-ip-gateway\n```\n\nAfter installation, You need to publish the config file for this package. This will add the file `config/ip-gateway.php`, where you can configure this package.\n\n```bash\nphp artisan vendor:publish\n```\n\n### Config Usage (`ip-gateway.php`)\n\n* `enable_package` is used for enable/disable access protection.\n\n* `enable_blacklist` when its true that means, It will denied access for registered ips in `ip-list`, false means, It will allow accessing for registered ips in `ip-list`.\n\n*  You can authenticated IPs through register route groups in `middleware`.  \n\n* `redirect_route_to` will access URL, To redirect if denied.\n\n*  You can define all your whitelist or blacklist IP addresses inside `ip-list`.\n\n*  If you want to add IP gateway middleware in you custom middleware group then just define your custom middleware group inside `middleware`\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Notes\n\n**You can create as many whitelists or blacklist groups as you wish to protect access**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcian%2Flaravel-ip-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvcian%2Flaravel-ip-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcian%2Flaravel-ip-gateway/lists"}