acolyte/laravel-security 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

acolyte/laravel-security

最新稳定版本:1.0.0

Composer 安装命令:

composer require acolyte/laravel-security

包简介

laravel-security helps you secure your Laravel apps by setting various HTTP headers. it can help!

README 文档

README

Packagist Downloads GitHub repo size GitHub

Laravel-Security 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 acolyte/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' => \Acolyte\LaravelSecurity\Middleware\CacheMiddleware::class
];

Documentation

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

Requirements

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

  • Composer
  • Laravel Framework 5.4+

Solved : Security vulnerability

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

Vulnerability Middleware Class Included
Cache Control Attack Acolyte\LaravelSecurity\Middleware\CacheMiddleware::class
Cross-Origin Resource Sharing (CORS) Acolyte\LaravelSecurity\Middleware\CorsMiddleware::class
X-Permitted-Cross-Domain-Policies Acolyte\LaravelSecurity\Middleware\CrossDomainMiddleware::class
DNS Prefetch Control  Acolyte\LaravelSecurity\Middleware\DnsMiddleware::class
Click Jacking Attack Acolyte\LaravelSecurity\Middleware\FrameGuardMiddleware::class
Strict-Transport-Security  Acolyte\LaravelSecurity\Middleware\HstsMiddleware::class
Mime Sniffing Attack Acolyte\LaravelSecurity\Middleware\NoSniffMiddleware::class
X-Powered-By Attack Acolyte\LaravelSecurity\Middleware\XPoweredByMiddleware::class
 XSS Attack  Acolyte\LaravelSecurity\Middleware\XssMiddleware::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-Security community! 💪💜 See CONTRIBUTING.md for more information on what we're looking for and how to get started.

License

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

统计信息

  • 总下载量: 79
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固