All Projects → akaunting → Laravel Firewall

akaunting / Laravel Firewall

Licence: mit
Web Application Firewall (WAF) package for Laravel

Projects that are alternatives of or similar to Laravel Firewall

Cidram
CIDRAM: Classless Inter-Domain Routing Access Manager.
Stars: ✭ 86 (-84.19%)
Mutual labels:  firewall, waf, blacklist
CyberSecurity-Box
Firewall-System based on OpenWRT or Pi-Hole with UnBound, TOR, optional Privoxy, opt. ntopng and opt. Configuration of the AVM FRITZ!Box with Presets for Security and Port-List. Please visit:
Stars: ✭ 20 (-96.32%)
Mutual labels:  whitelist, blacklist, firewall
nftables-example
A playground ruleset to get to know nftables syntax
Stars: ✭ 19 (-96.51%)
Mutual labels:  blacklist, firewall
waf4wordpress
WAF for WordPress 🔥 with 60+ security checks and weekly updates
Stars: ✭ 102 (-81.25%)
Mutual labels:  firewall, waf
unbound-dns-firewall
DNS-Firewall Python script for UNBOUND
Stars: ✭ 23 (-95.77%)
Mutual labels:  whitelist, blacklist
jsCast
📻 An Audio Streaming Application written in JavaScript
Stars: ✭ 23 (-95.77%)
Mutual labels:  whitelist, blacklist
AntiBot
Lightweight BungeeCord plugin that aims to stop attacks on your server quickly and efficiently.
Stars: ✭ 42 (-92.28%)
Mutual labels:  whitelist, blacklist
magento-2-security
Magento 2 Security extension FREE. Security extension gives store owners the ability to detect the IP addresses that are intentionally attacking their store at any given time. Therefore, they have timely measures to prevent this issue such as blocking those IP addresses or sending warning emails to store owners.
Stars: ✭ 40 (-92.65%)
Mutual labels:  whitelist, blacklist
domainos
A laravel package for blacklisting or whitelisting specific email providers or domains
Stars: ✭ 22 (-95.96%)
Mutual labels:  whitelist, blacklist
DNS-Sinkhole-Lists-A2
A DNS Sinkhole List for testing purposes. (not for use in production systems) - UUID: 0f90ca2c-4b0a-4fbe-b659-449ab30c4284
Stars: ✭ 19 (-96.51%)
Mutual labels:  whitelist, blacklist
black-mirror
Automatically maintained malicious host blacklists and false-positive whitelists.
Stars: ✭ 41 (-92.46%)
Mutual labels:  whitelist, blacklist
laravel-leaderboard
No description or website provided.
Stars: ✭ 39 (-92.83%)
Mutual labels:  whitelist, blacklist
accomplist
ACCOMPLIST - List Compiler
Stars: ✭ 51 (-90.62%)
Mutual labels:  whitelist, blacklist
shieldfy-php-client
The official PHP SDK for Shieldfy
Stars: ✭ 15 (-97.24%)
Mutual labels:  firewall, waf
aws-firewall-factory
Deploy, update, and stage your WAFs while managing them centrally via FMS.
Stars: ✭ 72 (-86.76%)
Mutual labels:  firewall, waf
UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (-88.42%)
Mutual labels:  whitelist, firewall
Awesome Waf
🔥 Everything about web-application firewalls (WAF).
Stars: ✭ 4,047 (+643.93%)
Mutual labels:  firewall, waf
Firewall
Firewall package for Laravel applications
Stars: ✭ 1,214 (+123.16%)
Mutual labels:  laravel, firewall
WaGis-Mass-IP-Blacklister-Windows
This Tool blocks a Mass of IP Adresses via the Windows Firewall. You can run in Automatic-Mode using a Abusive IP List like blocklist.de
Stars: ✭ 34 (-93.75%)
Mutual labels:  blacklist, firewall
retrie
Efficient Trie-based regex unions for blacklist/whitelist filtering and one-pass mapping-based string replacing
Stars: ✭ 35 (-93.57%)
Mutual labels:  whitelist, blacklist

Web Application Firewall (WAF) package for Laravel

Downloads Tests StyleCI Quality License

This package intends to protect your Laravel app from different type of attacks such as XSS, SQLi, RFI, LFI, User Agent, and a lot more. It will also block repeated attacks and send notification via email and/or slack when attack is detected. Furthermore, it will log failed logins and block the IP after a number of attempts.

Note: Some middleware classes (i.e. Xss) are empty as the Middleware abstract class that they extend does all of the job, dynamically. In short, they all works ;)

Getting Started

1. Install

Run the following command:

composer require akaunting/laravel-firewall

2. Register (for Laravel < 5.5)

Register the service provider in config/app.php

Akaunting\Firewall\Provider::class,

3. Publish

Publish configuration, language, and migrations

php artisan vendor:publish --tag=firewall

4. Database

Create db tables

php artisan migrate

5. Configure

You can change the firewall settings of your app from config/firewall.php file

Usage

Middlewares are already defined so should just add them to routes. The firewall.all middleware applies all the middlewares available in the all_middleware array of config file.

Route::group(['middleware' => 'firewall.all'], function () {
    Route::get('/', '[email protected]');
});

You can apply each middleware per route. For example, you can allow only whitelisted IPs to access admin:

Route::group(['middleware' => 'firewall.whitelist'], function () {
    Route::get('/admin', '[email protected]');
});

Or you can get notified when anyone NOT in whitelist access admin, by adding it to the inspections config:

Route::group(['middleware' => 'firewall.url'], function () {
    Route::get('/admin', '[email protected]');
});

Available middlewares applicable to routes:

firewall.all

firewall.agent
firewall.bot
firewall.geo
firewall.ip
firewall.lfi
firewall.php
firewall.referrer
firewall.rfi
firewall.session
firewall.sqli
firewall.swear
firewall.url
firewall.whitelist
firewall.xss

You may also define routes for each middleware in config/firewall.php and apply that middleware or firewall.all at the top of all routes.

Notifications

Firewall will send a notification as soon as an attack has been detected. Emails entered in notifications.email.to config must be valid Laravel users in order to send notifications. Check out the Notifications documentation of Laravel for further information.

Changelog

Please see Releases for more information what has changed recently.

Contributing

Pull requests are more than welcome. You must follow the PSR coding standards.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].