xakki / phpwall
Protect web
0.1.4
2021-04-17 21:33 UTC
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- ext-memcached: *
- ext-pdo: *
- psr/log: ^1.0
This package is auto-updated.
Last update: 2024-10-15 18:07:36 UTC
README
Protect site from scanners on PHP Get googleCaptha keys from https://www.google.com/recaptcha/admin/ PhpWall- scan protect
- Create table (dont foget change pass
CHANGE_ME
)CREATE DATABASE `phpwall` CHARACTER SET 'utf8'; CREATE USER 'phpwall'@'%' IDENTIFIED BY 'CHANGE_ME'; GRANT ALL PRIVILEGES ON phpwall.* TO 'phpwall'@'%'; FLUSH PRIVILEGES;
If encoded password
set password for 'phpwall' = PASSWORD('*****');
- Add code to index.php
$phpWallConf = [ 'secretRequest' => 'CHANGE_ME', 'secretRequestRemove' => 'CHANGE_ME', 'bunTimeout' => 86400, 'check_post' => false, 'check_ua' => false, 'check_url_keyword_exclude' => ['/admin/index.php', '/user/admin'], 'dbPdo' => [ 'password' => 'passwor to databse' ], // get key on https://www.google.com/recaptcha/admin/ 'googleCaptchaSiteKey' => 'CHANGE_ME', 'googleCaptchaSecretKey' => 'CHANGE_ME', ]; new \Xakki\PhpWall\PhpWall($phpWallConf);