PHP code example of hypothermic / phpxssblock
1. Go to this page and download the library: Download hypothermic/phpxssblock 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/ */
hypothermic / phpxssblock example snippets
use HypothermicIT\XSSBlock\XBlock;
if (XBlock::isBlocked($_SERVER['REMOTE_ADDR'])) {
$username = XBlock::Sanitize($_GET["username"], $_SERVER['REMOTE_ADDR']);
// For example, show it as a HTML paragraph.
echo("<p>Hello " . $username . "</p>");