PHP code example of shieldon / web-security
1. Go to this page and download the library: Download shieldon/web-security library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shieldon / web-security example snippets
composer
$xss = new \Shieldon\Security\Xss();
$_POST['username'] = 'javascript:/*--></title></style></textarea></script></xmp><svg/onload=\'+/"/+/onmouseover=1/+/[*/[]/+alert(1)//\'>';
$username = $xss->clean($_POST['username']);
echo $username;
$xss = new \Shieldon\Security\Xss();
$_GET = $xss->clean($_GET);