How can I block specific hacker probing activities in zencart?

0
Some common attempts to probe your site for old vulnerabilities, or vulnerabilities from other systems, can be blocked by adding the following code to your site:

1. Copy and paste the following code into a new text file in your favorite text-only editor.
2. Save the file as "block_probing.php", and upload it to your store into the following folders:
  a) /your_renamed_admin/includes/extra_configures/
  b) /includes/extra_configures/



$val) {
if (substr_count($lcrequesturi, $val) || substr_count($query, $val) || substr($query, -1) == '?') {
$contaminated = TRUE;
}
}
unset($paramsToCheck, $paramsToAvoid, $key, $val);
if ($contaminated)
{
header('HTTP/1.1 406 Not Acceptable');
exit(0);
}
unset($contaminated);
unset($query2, $query, $querydec2, $querydec, $querydecsws, $useragent, $lcuseragent, $lcuseragentsws, $requesturi, $lcrequesturi, $lcrequesturisws, $lcpost, $lcpostsws);
/* *** END OF INNOCULATION *** */