All Projects → getspooky → laravel-mitnick

getspooky / laravel-mitnick

Licence: MIT license
🔐 laravel-security helps you secure your Laravel apps by setting various HTTP headers.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-mitnick

itsgoingto.be
The magic behind itsgoingto.be
Stars: ✭ 13 (-82.89%)
Mutual labels:  composer
jadibot
Telegram Bot for jadi.net
Stars: ✭ 59 (-22.37%)
Mutual labels:  composer
docker-multi-wordpress
Run multiple WordPress Docker containers with NGINX Proxy, LetsEncrypt and PHP Composer
Stars: ✭ 63 (-17.11%)
Mutual labels:  composer
swift-http-structured-headers
A Swift implementation of the HTTP Structured Header Field specification.
Stars: ✭ 126 (+65.79%)
Mutual labels:  headers
drupal8-composer-template
Project template for Drupal 8 projects with composer | Quick installation via "composer create-project woprrr/drupal8-composer-template:8.3.0"
Stars: ✭ 27 (-64.47%)
Mutual labels:  composer
internetarchivebot
iabot.toolforge.org
Stars: ✭ 67 (-11.84%)
Mutual labels:  composer
collage
Generate Image Collage with PHP and Laravel
Stars: ✭ 70 (-7.89%)
Mutual labels:  composer
killposer
List and remove composer-created vendor directories with a cli tool
Stars: ✭ 29 (-61.84%)
Mutual labels:  composer
autoload
Aplus Framework Autoload Library
Stars: ✭ 18 (-76.32%)
Mutual labels:  composer
package-command
Lists, installs, and removes WP-CLI packages.
Stars: ✭ 16 (-78.95%)
Mutual labels:  composer
lean-theme
No description or website provided.
Stars: ✭ 38 (-50%)
Mutual labels:  composer
wp-skeleton
Setup a new WordPress installation via Composer
Stars: ✭ 36 (-52.63%)
Mutual labels:  composer
ACCESS-NYC
Find help in NYC with food, money, housing, work, and more on ACCESS NYC. Maintained by @NYCOpportunity
Stars: ✭ 27 (-64.47%)
Mutual labels:  composer
php8-xdebug
PHP 8.0 for development and production usage. With nginx, brotli, xdebug, JIT and more...
Stars: ✭ 17 (-77.63%)
Mutual labels:  composer
comphar
Pack all composer dependencies into a single phar file.
Stars: ✭ 67 (-11.84%)
Mutual labels:  composer
PackageChangeLog
Show Package Changelog On Composer Install/update
Stars: ✭ 15 (-80.26%)
Mutual labels:  composer
stock-api-libphp
PHP implementation of the Stock APIs
Stars: ✭ 16 (-78.95%)
Mutual labels:  composer
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+7.89%)
Mutual labels:  composer
drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (-71.05%)
Mutual labels:  composer
tdee-calculator
TDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.
Stars: ✭ 16 (-78.95%)
Mutual labels:  composer

🔐 Laravel-Mitnick

Packagist Downloads GitHub repo size GitHub

Laravel-Mitnick helps you secure your Laravel apps by setting various HTTP headers. It's not a silver bullet, but it can help!

Quick start

First, You can install the package via composer:

composer require mitnick/laravel-security 

If you would like to assign middleware to specific routes, you should first assign the middleware a key in your app/Http/Kernel.php file. By default, the $routeMiddleware property of this class contains entries for the middleware included with Laravel

// Within App\Http\Kernel Class...

protected $routeMiddleware = [
    'auth' => \App\Http\Middleware\Authenticate::class,
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
    'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
    'can' => \Illuminate\Auth\Middleware\Authorize::class,
    'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
    'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
    'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
    'no-cache' => \Mitnick\Laravel\Security\cache::class
];

Documentation

For installation instructions, in-depth usage and deployment details, please take a look at the official documentation.

Requirements

Laravel-Mitnick has a few requirements you should be aware of before installing :

  • Composer
  • Laravel Framework 5.4+

Solved : Security vulnerability

Laravel-Mitnick is a collection of 9 smaller middleware functions that set HTTP response headers.

Vulnerability Middleware Class Included
Cache Control Attack Mitnick\Laravel\Security\cache::class
Cross-Origin Resource Sharing (CORS) Mitnick\Laravel\Security\cors::class
X-Permitted-Cross-Domain-Policies Mitnick\Laravel\Security\crossDomain::class
DNS Prefetch Control  Mitnick\Laravel\Security\dns::class
Click Jacking Attack Mitnick\Laravel\Security\frameGuard::class
Strict-Transport-Security  Mitnick\Laravel\Security\hsts::class
Mime Sniffing Attack Mitnick\Laravel\Security\noSniff::class
X-Powered-By Attack Mitnick\Laravel\Security\xPoweredBy::class
 XSS Attack  Mitnick\Laravel\Security\xss::class

Contributing

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Laravel-Mitnick community! 💪💜 See CONTRIBUTING.md for more information on what we're looking for and how to get started.

License

The Laravel-Mitnick package is open-source software licensed under the MIT license.

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].