My websites are getting a serious downtime, and my users are complaining a lot.
I keep getting the following error from the hosted server in log.
[Tue Jun 11 00:53:31.161600 2019] [:error] [pid 110055:tid 140662619748096] [client IP] ModSecurity: Warning. Pattern match "^POST$" at REQUEST_METHOD. [file "/opt/mod_security/hg_rules.conf"] [line "1421"] [id "9009999"] [msg "8 char spam"] [hostname "hostname"] [uri "url"] [unique_id "unique id"], referer: url
I could not find any solution over google, so I'm here. PLEASE HELP ME!
JS
var xhr = new XMLHttpRequest();
xhr.open("POST", "filename.php", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(data);
PHP
if(isset($_POST['requested_data'])){
//queries and echo
}