Firstly a little overview - my site uses Wordfence (this is not the issue - just the reason for this to begin with)
-- Even if Wordfence is disabled this should still work. its just what brought this to light.
And... I have been getting numerous login attempts from different places and IP's using the hidden password recovery, or simply force loading names into the admin page.
I have seen a pattern emerging, whereas the popular name tries are: administrator, wpadmin, admin, wpadministrator, and a few others. Sometimes in the range of 150+ an hour, quite amazing, and annoying at the same time.
Wordfence does an abmirable job of blocking the attempts, however, I've noticed the same naming structure is applied repeatedly. And...Wordfence does its job, blocks the attempt, and themn proceeds to notify me about it - this has led to an inordinate amount of the exact same mail with the exact same login pattern.
Whew....!
So I figured I would add some kind of filtering to the login page by adding this ( part of the larger project - but its where it hanging up ) Not hanging up really, just only recognizes ONE name structure.....
public static function gtfo_admin_login( $login = '' ) {
if ( 'administrator' != $login ) {
return false;
}
wp_redirect( 'http://www.french-bukkake.com' ); // This is an example.
exit;
}
So if some uses the name administrator, it forwards them to the (sorry-france) xxxx.page
I would like this to use some kind of …