I banned myself
-
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 timeYou should now have access to all pages again.
- The topic ‘I banned myself’ is closed to new replies.