• Resolved damtroe

    (@damtroe)


    Hello is there any chance of changing the redirect after a user has been lockedout from 127.0.0.1 i have not achieved to manage that with custom code, is there any way of doing that?

    The Reason for it is that the 127.0.01 redirect often results in clients asking what happened or why the landed on 127.0.0.1 so i would like to create a custom page with an better error message and a unlock button. i also activated the “show generic error message” but that results in the same.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @damtroe

    Can you please cross check that user IP which is redirected is not in WP security > Dashboard > Permanent blocklist? If that is the case it will not possible right now to have custom URL. It will redirect user to 127.0.0.1 As an temp solution. you might can change the file classes/wp-security-blocking.php line 119 to use your created page url. I will create internal ticket for this.

    AIOWPSecurity_Utility::redirect_to_url('https://127.0.0.1');

    If it is due to 404 lockout you can specify the url WP security > Firewall > 404 detection.

    Regards

    Thread Starter damtroe

    (@damtroe)

    Wow, thanks for the quick reply! Its due to “to_many_failed_logins”, now after i changed the URL in 404 Detection the redirect works if an user gets IP blocked but im not able to show up the custom set page as getting an “ERR_TOO_MANY_REDIRECTS” error. ??

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @damtroe

    If you have created it as website WordPress page. It will keep in loop as redirect will keep happening as the IP blocked. It should be a static html page. so it is shown direct without running WordPress code.

    Regards

    Thread Starter damtroe

    (@damtroe)

    You are awesome!

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @damtroe

    Please note that it is temp solution if the plugin updated to new version or or reinstalled you have done change will be removed from file classes/wp-security-blocking.php

    Regards

    Thread Starter damtroe

    (@damtroe)

    Yes thats perfectly fine i didnt change any source code of the plugin i created a static html landing page and linked that one in the 404 url source ?? thx for letting me know

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login-Lockout’ is closed to new replies.