• Resolved pswpuser

    (@pswpuser)


    How can I disable (or anonymize) IP logging for “User login” section?
    Acceptable solution would be also to turn of all “User login” functionality.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    How can I disable (or anonymize) IP logging for “User login” section?

    I think your best solution is to enable one of the Brute Force features like Rename Login Page.

    Let me know if the above helps you.

    Thank you

    Thread Starter pswpuser

    (@pswpuser)

    No this don’t solve issue. Whenever admin login in system his IP address is saved in plugin for lifetime. This is not good because:
    1) this is against GDPR
    2) if website is hacked then admin real IP address is visible

    • This reply was modified 4 years, 9 months ago by pswpuser.
    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, please read the following support thread from one of the developers.

    Thank you

    Thread Starter pswpuser

    (@pswpuser)

    In link isn’t solution how to disable IP logging or all “User login” functionality.
    I need know for example wp action what I could insert in separate plugin (or theme functions.php file) and disable this for projects where I don’t want all user login IP to be saved in DB.
    Or feature in plugin (in next releases) where I could turn off IP logging (or at least anonymise them).

    Plugin Contributor wpsolutions

    (@wpsolutions)

    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.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @pswpuser, is your question answered? If it is can you mark this support thread as resolved.

    Thank you

    Thread Starter pswpuser

    (@pswpuser)

    Thank You! This is exactly what I need.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable IP logging’ is closed to new replies.