function path2ban_update_7201 in path2ban 7.2
Implements hook_update_N().
Added some suggestions from toriah at https://www.drupal.org/project/path2ban/issues/2456909. Review before use at the path2ban config page.
File
- ./
path2ban.install, line 83 - Install, update, and uninstall functions for the path2ban module.
Code
function path2ban_update_7201() {
$entries_to_add = array(
'wp/wp-*',
'wordpress/wp-*',
'*.asp',
'*.cgi',
'*.jsp',
'*.inc.php',
'*.php.html',
'*.phps',
'*UNION ALL SELECT*',
'*SELECT DBMS_PIPE.RECEIVE_MESSAGE*',
'*SELECT SLEEP(*',
'*SELECT PG_SLEEP(*',
'*(SELECT (*',
'*SELECT COUNT(*',
);
Path2ban::addNewEntries($entries_to_add);
}