admin管理员组文章数量:1418669
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( '' ); // 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 array, where it uses -
"administrator" , "wpadmin" , "admin" , "wpadministrator" , "etc" , "etc"
Get the idea? and pushes the array items into
if ( 'array-here' != $login ) {
return false;
So in effect, if different terms are used, it sends them elsewhere - except if the correct login/pwd combinations is used.
OR... possiblty even better it uses an external text file with each name on a new line - and do a call to it some thing like adding a var
$curr_admins = "". file_get_contents( '.txt' ) ."";
What do you think?
It would read the contents of the text file, regard it as an array and if it finds a match - BOOM - off goes the perpetrator ( I don't think bots can handle a return redirect, to try it again ). So presumably the login pattern should go down somewhat...
本文标签: WP login admin name incorrect send to another page or site
版权声明:本文标题:WP login admin name incorrect send to another page or site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745294254a2651980.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论