Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megaads-vn/prevent-ip
Prevent Ip
https://github.com/megaads-vn/prevent-ip
Last synced: 10 days ago
JSON representation
Prevent Ip
- Host: GitHub
- URL: https://github.com/megaads-vn/prevent-ip
- Owner: megaads-vn
- Created: 2022-04-15T02:15:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T08:31:21.000Z (over 2 years ago)
- Last Synced: 2024-11-29T10:17:57.785Z (about 1 month ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prevent-ip
Prevent Ip in Laravel 4## Installation
1. Require the composer package
`composer require megaads/prevent-ip`
2. Register the provider:
`Megaads\PreventIp\PreventIpServiceProvider`
3. Add file prevent-ip.php in config:
```
return [
'enable' => true,
'prevent_paths' => [
'system/home'
],
'allow_ips' => [
'127.0.0.1'
],
'email_receive_request' => '[email protected]',
'email_service_user' => '[email protected]',
'email_service_password' => 'xxx',
'email_service_url' => 'http://example.com/',
];```