Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
plugins
/
better-wp-security
/
core
/
modules
/
ban-users
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php function itsec_ban_users_handle_new_blacklisted_ip( $ip ) { $host_list = ITSEC_Modules::get_setting( 'ban-users', 'host_list', array() ); if ( ! is_array( $host_list ) ) { $host_list = array(); } $host_list[] = $ip; ITSEC_Modules::set_setting( 'ban-users', 'host_list', $host_list ); } add_action( 'itsec-new-blacklisted-ip', 'itsec_ban_users_handle_new_blacklisted_ip' );