WordPress.org

بلوچی

  • Themes
  • Plugins
  • News
  • Support
  • About
  • Contact
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Block wp-login

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Block wp-login

By Oliver Campion
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Block Access to wp-login.php

This plugin does the following:

  • Locates wp-login.php in your WordPress installation and duplicates it
  • Locates .htaccess and inserts lines to block the default wp-login.php and creates a new secret address to use for legitimate login
  • Will email the site admin if an administrator signs in with an un-recognised IP address

When installed your server will return “403 Forbidden“ when attempts are made to access the default wp-login.php file. This has two benefits; it prevents hackers from using brute force methods to hack your website and it reduces the load on the server when such brute force attacks are launched on your site as WordPress isn’t run at all.

Please note, this plugin uses .htaccess so is only compatible with Apache web servers, it is not compatible with Nginx web servers.

Installation

Easily prevent access to the default wp-login.php file:

1) Install Block wp-login automatically or by uploading the ZIP file.
2) Activate the plugin through the ‘Plugins’ menu in WordPress.
3) Once activated, visit “Settings – Permalinks” in the admin menu.
4) At the bottom of the page enter a new login address next to “Block wp-login” or click to create a random address.
5) Make sure you make a note of the new address you will need to use to sign in.
6) Save the settings.

Although this plugin now detects when WordPress has been upgraded and re-installs itself, when upgrading WordPress core, you should still make sure you deactivate this plugin first just in case there is an issue.

FAQ

  • What is /wp-login.php ?
    This is the login page for WordPress; hundreds or thousands of hits to this page is not normal and is almost certainly a brute force attempt to hack the admin password.

Reviews

Best of Breed

STIJL جُلائی 8, 2023 1 reply
After using other “hide login” alternatives with varied crappy results, webd’s Block wp-login actually works well and does what it needs to do without challenging the admin. If you want to hide your login – this is it.

Turned against me after 2 months

ktk77 ستمبر 6, 2022 3 replies
The customized login URL stopped working, leading to a “403 Forbidden” page and locking me out of my site. I had to resolve the situation through my host, after which I got back into my dashboard and deactivated this plugin (which, as of this writing, hasn’t even been updated in 4 months). A highly inconvenient experience following several weeks of relatively smooth performance. User beware.

Found It!

shirtguy72 اپریل 27, 2022 1 reply
After being abandoned and not updated in 5 years, SF Move Login plugin finally started throwing me errors, started a quest to find another login security plugin written as smart or smarter than that little gem … FOUND IT! Really love your approach here, Scientifically Whitty! 5-Stars ALL DAY LONG! Thank you and Best Wishes!

Lightweight and superb

TrishaM جنوری 12, 2021 2 replies
This plugin does exactly what I need it to do, it hides my login page, and doesn’t carry extra weight or complexity. I added this after I discovered a ton of (unsuccessful) attempts to hack into my site through the login process (in addition to requiring all my users to update their passwords to something much stronger). I realize where there is a will there is a way and I’ll still be at risk if one or more of my *users* gets hacked and their saved login link and credentials get stolen, but I sure sleep better at night now knowing that my site is just a bit safer.

Great protection against hackers

andybull جنوری 8, 2018
Adds a reassuring additional level of security against hackers

A valuable tool

f5nn9s3f8 اپریل 21, 2017
A valuable tool to combat security issues facing WordPress users.
Read all 9 reviews

Contributors & Developers

“Block wp-login” is open source software. The following people have contributed to this plugin.

Contributors
  • Oliver Campion

“Block wp-login” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Block wp-login” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.5.4

  • Updated race condition prevention when WordPress core version changes

1.5.3

  • I18N issues resolved thanks to Alex Lion @alexclassroom and added a transient check to prevent a race condition when WordPress core is updated

1.5.2

  • General housekeeping

1.5.1

  • Added an option to email the site admin if an administrator signs in with an un-recognised IP address
  • Added translation strings

1.5

  • General housekeeping

1.4.9

  • Fixed bug that causes an error if the login_url hook is fired early

1.4.8

  • Preparing for WordPress v6.0

1.4.7

  • Fixed a cookie related bug with Google Chrome preventing login

1.4.6

  • Fixed bugs when .htaccess cannot be opened
  • Removed all PHP short tags

1.4.5

  • Preparing for WordPress v5.8

1.4.4

  • General housekeeping

1.4.3

  • General housekeeping

1.4.2

  • Added an option to send login URL reminders when saving Permalink settings

1.4.1

  • Added random login generator.

1.4.0

  • Premium functionality is now free!

1.3.9

  • Bug fix

1.3.8

  • Removed functionality now dealt with by Deny All Firewall

1.3.7

  • Yet more fixes for compatibility with WordPress 5.3

1.3.6

  • Further fixes for compatibility with WordPress 5.3

1.3.5

  • Fixed a bug that blocked Admin Email Verification in WordPress 5.3

1.3.4

  • Integrated plugin with new Deny All Firewall plugin

1.3.3

  • Plugin now allows password protected posts and pages to work

1.3.2

  • Important security update

1.3.1

  • Important security update

1.3.0

  • Automated upgrade activation facility
  • Bug fixes

1.2.4

  • Bug fix

1.2.3

  • Updating new developer / activation domain
  • Updating tested version

1.2.2

  • Bug fixes.

1.2.1

  • WordPress upgrade email re-worded

1.2.0

  • Plugin now automatically detects when WordPress has been upgraded and re-installs itself.
  • Bug fixed for when wp_mail() isn’t working

1.1.7

  • Bug fixes.

1.1.6

  • Plugin now upgrades automatically when activated if licensed.

1.1.5

  • Plugin is now internationalised ready for translation.
  • Help banner admin notice now appears until plugin has been configured.
  • Added help links on the settings page and added this information to the FAQ.
  • Minor bug fixes.

1.1.4

  • Blocking admin-ajax.php now allows commands when inniated from /wp-admin/.
  • Blank user or site owner emails won’t break saving settings.
  • Duplicate emails are not sent now when site owner and user email addresses are the same.
  • Options to block admin-ajax.php, wp-cron.php, xmlrpc.php and robots.txt are disabled until wp-login.php block is activated.

1.1.3

  • Plugin now emails all Administrators and the email set in General Settings with the new login URL.

1.1.2

  • Added option to block admin-ajax.php, wp-cron.php, xmlrpc.php and robots.txt for the free plugin.

1.1.1

  • Bug fixes.
  • Option to block wp-cron.php, admin-ajax.php and robots.txt for upgraded plugin.

1.1.0

  • Plugin re-written to make use of “Settings – Permalinks” so upgraded plugin can choose custom login slug.
  • Plugin now reverses changes when deactivated.
  • Plugin creates random login slug.

1.0.0

  • First, beta version of the plugin.

Meta

  • Version 1.5.4
  • Last updated 2 weeks ago
  • Active installations 600+
  • WordPress version 3.5.0 or higher
  • Tested up to 6.8.1
  • PHP version 5.6 or higher
  • Languages

    English (UK) and English (US).

    Translate into your language

  • Tags
    block hackerslogin securitysecuresecuritysecurity plugin
  • Advanced View

Ratings

4.7 out of 5 stars.
  • 8 5-star reviews 5 stars 8
  • 0 4-star reviews 4 stars 0
  • 0 3-star reviews 3 stars 0
  • 1 2-star review 2 stars 1
  • 0 1-star reviews 1 star 0

Add my review

See all reviews

Contributors

  • Oliver Campion

Support

Got something to say? Need help?

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

بلوچی

  • Visit our Facebook page
  • Visit our X (formerly Twitter) account
  • Visit our Mastodon account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry.