Using Wordfence as a login hacker honey trap
-
I’ve been having fun with the power of Wordfence. Today, it occurred to me I might be able to honey trap all those hackers who are constantly trying to hit my /wp-login.php file.
Caution, don’t mess around with this unless you’re familiar with FTP access to your site root, as well as being able to access your WordPress SQL database with rights to delete database tables.
Step one: I’ve been using the WordPress Plugin “WPS Hide Login” for quite some time, to change wp-login.php to something secret and obscure. I’ve been very happy with this, but my understanding is this only gives the hackers a 404 error, it doesn’t blacklist them. I want them to get BLOCKED ASAP. I don’t want them using server resources doing password attempts, etc.
(Security “experts” don’t like security through obscurity. I’m not an expert, so I get to use what works.)
Enter, Wordfence.
Step two: After making sure I backed up my Wordfence settings (bottom of Options page) and had the insurance of whitelisting my own IP number (middle of Options page), I added /wp-login.php to the “Immediately block IP’s that access these URLs:” section on the Options page.
Instant honey trap.
I tested this every which way but Sunday and it worked without locking me out. Nonetheless, be sure to back up your Wordfence settings in case you have to go in to your WordPress install with FTP and delete your plugin files, as well as accessing your SQL database and deleting the Wordfence tables for a fresh start.
Yeah, not for the faint of heart, but until WordPress actually adds a section called “Security” to their admin menus (I’m not sure they even know how to spell “security”), we’re left to our own devices with the help of plugins such as Wordfence and WPS Hide Login.
If this sounds whacked out or someone has a better way, I’m all ears.
What’ll be cool is if Wordfence themselves adds a feature to obscure the standard WordPress /wp-login.php file, and a simple checkbox to block any IP that tries to access it. That’s a feature request, I guess.
My question re this support forum: Would it use even less server resources to simply block /wp-login.php in my .htaccess file? Or is it better to do it with PHP using Wordfence? Also, by doing it with Wordfence, do the resulting blocked IP numbers get fed to the global Wordfence security network?
MTN
- The topic ‘Using Wordfence as a login hacker honey trap’ is closed to new replies.