Home Plugins block wp login
Block wp-login logo

Block wp-login

by Oliver Campion on WordPress.org

This plugin completely blocks access to wp-login.php and creates a new secret login URL

(9)

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.

Active installations600+
Weekly downloads
49-44.94%
Version1.5.5
Last updated12/4/2025
WordPress version3.5.0
Tested up to6.9
PHP version5.6
Tags
block hackerslogin securitysecuresecuritysecurity plugin