Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/',
];```