Hi @pswpuser,
IP addresses or other info stored on your system by this plugin is done purely for the security of your site.
Without such information, a large number of the features in this plugin would not work properly.
A lot of the info which is saved in the specific tables of this plugin is regularly deleted automatically using wpcron tasks. Basically only the newest 5000 rows are kept and the rest is deleted by default. The following tables are the ones I am referring to:
aiowps_events
aiowps_failed_loginsaiowps_login_activityaiowps_global_meta
You can use the following filters to override the number of rows kept from 5000 to something else:
$max_rows_event_table = apply_filters( ‘aiowps_max_rows_event_table’, $max_rows_event_table );
$max_rows_failed_logins_table = apply_filters( ‘aiowps_max_rows_failed_logins_table’, $max_rows_failed_logins_table );
$max_rows_login_activity_table = apply_filters( ‘aiowps_max_rows_login_attempts_table’, $max_rows_login_activity_table );
$max_rows_global_meta_table = apply_filters( ‘aiowps_max_rows_global_meta_table’, $max_rows_global_meta_table );
An example of code for using one of the filters above is:?add_filter('aiowps_max_rows_failed_logins_table', 'modify_max_rows_failed_logins', 10, 1);function modify_max_rows_failed_logins($max_rows) { return 5;?}
The above example will delete all the rows in the “aiowps_failed_logins” table except the newest 5. So if you wanted to delete all rows in that table you can replace 5 with 0.You can also follow the same logic for the other filters/tables – simply change the “aiowps_max_rows_failed_logins_table” to the filter name you want to use.
There are also 2 other tables which are not automatically pruned. These are:
aiowps_login_lockdown
aiowps_permanent_block
These tables are used to ensure that certain malicious IP address are blocked from the site. If you wish to delete the information in these tables you can do so either via the admin page or using PHPMyAdmin but as mentioned previously, your site will not be able to block those IP addresses if they are deleted.