PHPackages                             upthemedia/xss-protection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. upthemedia/xss-protection

ActiveLibrary[Security](/categories/security)

upthemedia/xss-protection
=========================

filter xss in inputs

0.0.8(5y ago)11.3k↓93.3%MITPHPPHP &gt;=5.3.0

Since Mar 9Pushed 5y ago2 watchersCompare

[ Source](https://github.com/upthemedia/xssprotection)[ Packagist](https://packagist.org/packages/upthemedia/xss-protection)[ RSS](/packages/upthemedia-xss-protection/feed)WikiDiscussions master Synced today

READMEChangelog (8)DependenciesVersions (9)Used By (0)

xssprotection
=============

[](#xssprotection)

Block the XSS entry globally in your Laravel projects. It can be used in two different ways. Or through a middleware that affects all the requests, or through the FormRequest

Install
=======

[](#install)

composer
--------

[](#composer)

```
composer require upthemedia/xss-protection

```

Configuration
-------------

[](#configuration)

**Use Middleware**To use globally throughout the project it is necessary to create a middeware and add it to Kernel.php in protected $middleware

```
