wms7-attack-analyzer.php

Description: Analyzes attacks targeting a website.

PHP version 8.0.1

Functions

wms7_block_visitor()

wms7_block_visitor(string  $ban_notes, boolean  $ban_user_agent) : array

Creates an array of visitor blocking data for subsequent transfer to the DB.

Parameters

string $ban_notes

Ban notes.

boolean $ban_user_agent

Ban user agent.

Returns

array —

In format json.

wms7_attack_analyzer()

wms7_attack_analyzer(string  $_log, string  $page_visit, string  $_http_user_agent, string  $user_ip) 

Analyzes the nature of the visit to the site in order to detect an attack.

Parameters

string $_log

Login of visitor.

string $page_visit

Visitor visit page.

string $_http_user_agent

User agent of visitor.

string $user_ip

User IP of visitor.