• Resolved joel3

    (@joel3)


    If you are in your WordPress admin and ban your own IP address by mistake you will be locked out of ADMIN and can’t correct the problem.

    Here is a solution:

    1. Download the file ip-ban.php to your local computer from the server
    2. Find code that looks like this in file ip-ban.php on your local computer
    header(“HTTP/1.0 404 Not Found”);
    die();
    3. Change to this on you local computer
    /**header(“HTTP/1.0 404 Not Found”);
    die(); */
    4. Upload ip-ban.php from your local computer to the server
    5. Open comments in WordPress admin site. It should allow access.
    6. Find a comment made by you and Allow your IP
    7. Open file ip-ban.php on local computer again
    8. Change code in ip-ban.php back to
    header(“HTTP/1.0 404 Not Found”);
    die();
    9. Upload local file ip-ban.php to server one more time

    You should now have access to all pages again.

    https://www.ads-software.com/plugins/simple-ip-ban/

Viewing 1 replies (of 1 total)
  • Plugin Author Sandor Kovacs

    (@almos20)

    Hi,

    If you have mysql access, you can search in the WordPress options table ( mostly: wp_options ) and remove your ip from the s_ip_list option value. So, search “s_ip_list” in your WP option table and edit the record. Or you can do by modifying the files like in previous comment.

    BTW, If you are logged in as admin and you added your ip to the blacklist, the script would not ban you just in case that you log out.

    Best Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘I banned myself’ is closed to new replies.