iThemes Security (formerly Better WP Security)
How can I change the error page? (4 posts)

  1. danielx147
    Posted 2 years ago #

    When someone tries to connect several times getting a white page and it says error.
    How can I change / edit the page?


  2. danielx147
    Posted 2 years ago #


  3. supawiz6991
    Posted 2 years ago #

    mmm I found a way to do this... Let me see if I can find my notes on it...

  4. supawiz6991
    Posted 2 years ago #

    First I would like to note that the developer does not recommend changing it.

    That being said... I have found a way to change it.

    As always backing up is recommended before changing files.

    In /wp-content/plugins/better-wp-security/inc edit the file called secure.php.

    if your using notepad++ or another text editor that has numbered lines then look for line # 930

    Alternatively look for this line:

    die( __( 'error', $this->hook ) );1

    change 'error' to your custom message. Here is an example

    die( __( '
    <b>Error: You Have Been Locked Out Due To Too Many Bad Login Attempts.</b><br>
    Please wait 15 minutes before attempting to login again. If you forgot your password use the <i><b>Password reset Link</b></i> on the login page <b>AFTER</b> your lockout has expired.<br>
    If you continue to receive this message, please contact your web administrator
    ', $this->hook ) );

    You can use basic html formatting in your message. Make sure that your entire message is surounded by ' just like the orignal message ('error') was.

    Note: you will need to check this file any time bws is updated as it could be overwritten.

    Also as doing this is not supported or recommended by the developer it carries no warranty of any kind nor will he support it.

    To the developer: I know you don't recommend doing this and are against it and I understand why but for some of us we just have to have a message there other than "error".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.