Hello,
There a lot of request from bots against the internal phorum search, with attempts of sql inject, loading the server.
I would like to protect the search against bots with a simple rule, having the search working only if somebody is logged in.
the working code is :
Language: PHP
if(!$PHORUM["DATA"]["LOGGEDIN"]) {
$search_request_data="";
}
if i add this in the search.php file, it is working fine except that it throws a lot of backend errors like Illegal string offset 'urlargs' or Invalid argument supplied for foreach().
I guess It's not at the right line.
Any idea ?
Thanks