Lockdown WP Admin - Version 1.6

Version Description

  • Added way to get back into WP-ADMIN if locked out (See the FAQ)
Download this release

Release Info

Developer sean212
Plugin Icon wp plugin Lockdown WP Admin
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

Files changed (2) hide show
  1. lockdown-wp-admin.php +6 -4
  2. readme.txt +9 -2
lockdown-wp-admin.php CHANGED
@@ -3,14 +3,12 @@
3
  Plugin Name: Lockdown WordPress Admin
4
  Plugin URI: http://talkingwithsean.com/2011/01/lockdown-wp-admin/
5
  Description: Securing the WordPress Administration interface.
6
- Version: 1.5
7
  Author: Sean Fisher
8
  Author URI: http://talkingwithsean.com/
9
  License: GPL v3
10
  */
11
 
12
-
13
-
14
  // This file name
15
  define('LD_FILE_NAME', __FILE__ );
16
 
@@ -18,7 +16,7 @@ define('LD_FILE_NAME', __FILE__ );
18
  * This is the plugin that will add security to our site
19
  *
20
  * @author Sean Fisher <sean@talkingwithsean.com>
21
- * @version 1.5
22
  * @license GPL v3
23
  **/
24
  class WP_LockAuth {
@@ -223,6 +221,10 @@ class WP_LockAuth {
223
  **/
224
  private function inauth_headers()
225
  {
 
 
 
 
226
  header('WWW-Authenticate: Basic realm="'.$this->relm.'"');
227
  header('HTTP/1.0 401 Unauthorized');
228
  echo '<h1>Authorization Required.</h1>';
3
  Plugin Name: Lockdown WordPress Admin
4
  Plugin URI: http://talkingwithsean.com/2011/01/lockdown-wp-admin/
5
  Description: Securing the WordPress Administration interface.
6
+ Version: 1.6
7
  Author: Sean Fisher
8
  Author URI: http://talkingwithsean.com/
9
  License: GPL v3
10
  */
11
 
 
 
12
  // This file name
13
  define('LD_FILE_NAME', __FILE__ );
14
 
16
  * This is the plugin that will add security to our site
17
  *
18
  * @author Sean Fisher <sean@talkingwithsean.com>
19
+ * @version 1.6
20
  * @license GPL v3
21
  **/
22
  class WP_LockAuth {
221
  **/
222
  private function inauth_headers()
223
  {
224
+ // Disable if there is a text file there.
225
+ if ( file_exists(dirname(__FILE__).DIRECTORY_SEPARATOR.'disable_auth.txt'))
226
+ return;
227
+
228
  header('WWW-Authenticate: Basic realm="'.$this->relm.'"');
229
  header('HTTP/1.0 401 Unauthorized');
230
  echo '<h1>Authorization Required.</h1>';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Link: http://talkingwithsean.com/2011/01/lockdown-wp-admin/
5
  Tags: security, wp-admin, login, hide login, rename login, http auth, 404, lockdown, talkingwithsean, secure
6
  Requires at least: 3.0
7
  Tested up to: 3.2
8
- Stable tag: 1.5
9
 
10
  This plugin will lockdown WP Admin. It can hide wp-admin and wp-login as well as add HTTP auth to the login system. It can change the login URL.
11
 
@@ -40,6 +40,10 @@ You can add a file using the 'no_check_files' filter. Use this:
40
 
41
  Simple.
42
 
 
 
 
 
43
  == Changelog ==
44
  = 1.0 =
45
  * Initial release
@@ -65,4 +69,7 @@ Simple.
65
 
66
  = 1.4.2 =
67
  * Bug fixes
68
- * Added `admin-ajax.php` to the files that we permit to be access in wp-admin.
 
 
 
5
  Tags: security, wp-admin, login, hide login, rename login, http auth, 404, lockdown, talkingwithsean, secure
6
  Requires at least: 3.0
7
  Tested up to: 3.2
8
+ Stable tag: 1.6
9
 
10
  This plugin will lockdown WP Admin. It can hide wp-admin and wp-login as well as add HTTP auth to the login system. It can change the login URL.
11
 
40
 
41
  Simple.
42
 
43
+ How can I get back in if the plugin locked me out?
44
+
45
+ You can create a .txt file named 'disable_auth.txt' in your wp-content/plugins/lockdown-wp-admin/ folder (The file location would be /wp-content/plugins/lockdown-wp-admin/disable_auth.txt). We don't care about the content but that will disable the HTTP Auth and whatever was locking you out of your site.
46
+
47
  == Changelog ==
48
  = 1.0 =
49
  * Initial release
69
 
70
  = 1.4.2 =
71
  * Bug fixes
72
+ * Added `admin-ajax.php` to the files that we permit to be access in wp-admin.
73
+
74
+ = 1.6 =
75
+ * Added way to get back into WP-ADMIN if locked out (See the FAQ)