How do hackers bypass roadblocks to reach the login page?
-
I have this mu-plugin running on my Multisite Network:
<?php // this script is designed to prevent anyone from gaining access to login wp capabilities unless originating from an IP in the authorized IP array() function loginController_func() { $authorizedIPs = array( '123.456.789.012', // my dedicated Home Office Machine '987.654.321.098' // my dedicated Work Office Machine ); if ( !in_array($_SERVER['REMOTE_ADDR'], $authorizedIPs) ) { wp_redirect( 'https://example.com/', 301 ); exit; } } add_action('wp_authenticate', 'loginController_func'); // hook for wp-admin add_action('login_init', 'loginController_func'); // hook for wp-login all actions ?>
Yet, most every morning, I have a stack of email alerts from Wordfence informing me that hackers have been prevented from logging in because they are using invalid usernames.
From: WordPress <[email protected]> Date: Sun, Oct 18, 2015 at 8:55 AM Subject: [Wordfence Alert] example.com User locked out from signing in To: [email protected] This email was sent from your website "My WordPress Base Site" by the Wordfence plugin at Sunday 18th of October 2015 at 08:55:06 AM The Wordfence administrative URL for this site is: https://example.com/wp-admin/admin.php?page=Wordfence A user with IP address 79.176.51.241 has been locked out from the signing in or using the password recovery form for the following reason: Used an invalid username 'test' to try to sign in. User IP: 79.176.51.241 User hostname: bzq-79-176-51-241.red.bezeqint.net User location: Tel Aviv, Israel NOTE: You are using the free version of Wordfence. Upgrading to the paid version of Wordfence gives you two factor authentication (sign-in via cellphone) and country blocking which are both effective methods to block attacks. A Premium Wordfence license also includes remote scanning with each scan of your site which can detect several additional website infections. Premium members can also schedule when website scans occur and can scan more than once per day.
How do I block these attempts from ever reaching the login form?
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘How do hackers bypass roadblocks to reach the login page?’ is closed to new replies.