Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-06-21 (3 months ago) | | Not enough user ratings | | Total: 8 This week: 1 | | All time: 11,435 This week: 34 |
|
Description | | Author |
This package can improve the security of HTTP request responses.
It provides a middleware class for Laravel applications to add security features by improving the HTTP response headers to requests that Laravel applications receive.
Currently, it can:
- Automatically redirect all HTTP requests to HTTPS to ensure secure communication.
- Add the X-Content-Type-Options: header to prevent MIME-sniffing attacks by enforcing the declared content type.
- Add the X-Frame-Options: header to protect against clickjacking by disallowing showing your website pages in frames.
- Add the X-XSS-Protection: header to activate the browser's built-in XSS protection.
-Add Strict-Transport-Security: header to force all future requests to be made over HTTPS.
- Add the Content-Security-Policy: header to restrict the sources of content access to prevent XSS, clickjacking, and other code injection attacks. Innovation Award
June 2024
Winner |
Laravel is a popular PHP framework that many PHP developers use to implement PHP applications.
Laravel supports the concept of middleware classes that can alter the responses to HTTP requests generated by Laravel application components.
This package provides a middleware class that can automatically improve the security protection of Laravel PHP applications against many types of modern security attacks.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 5x
Winner: 2x |
|
Instructions
First, ensure you have a Laravel project set up. If not, you can create one using Composer:
composer create-project --prefer-dist laravel/laravel your-project-name
Next, create the middleman class by running the following Artisan command:
php artisan make:middleware Middleman
This command will generate a new middleware class located at:
Now replace the Middleman.php file in the ```app/Http/Middleware/Middleman.php``` directory with the downloaded Middleman.php class file.
Alternatively,
Copy and paste all contents in downloaded Middleman.php to the ```app/Http/Middleware/Middleman.php``` file
To register this middleware, open app/Http/Kernel.php and add the Middleman class to the $middleware array:
protected $middleware = [
// Other middleware
\App\Http\Middleware\Middleman::class,
];
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.