function path2ban_update_7101 in path2ban 7.2
Same name and namespace in other branches
- 7 path2ban.install \path2ban_update_7101()
Implements hook_update_N().
Add paths to prevent attacks encountered during Drupalgeddon 2. Review before use at the path2ban config page.
File
- ./
path2ban.install, line 50 - Install, update, and uninstall functions for the path2ban module.
Code
function path2ban_update_7101() {
$entries_to_add = array(
'payload.php',
'so.php',
'formas.php',
'aul.php',
'rxr.php',
'wp-caches.php',
'sec.php',
'alpha.php',
'u.php',
'searchreplacedb2.php',
'd7.php',
'_.php',
'pplugins.php',
'*.sql',
'*.swf',
'*config.php',
'*.wsf',
'*.ssh',
);
Path2ban::addNewEntries($entries_to_add);
}