Protect Your Admin - Version 3.3

Version Description

  • Tested with new wordpress version 5.4.2
  • Fixed new admin url page not found issue when you setup wordpress in subdirectory.
  • Optimized code
  • Released add-on new version 2.0
Download this release

Release Info

Developer india-web-developer
Plugin Icon 128x128 Protect Your Admin
Version 3.3
Comparing to
See all releases

Code changes from version 3.2 to 3.3

Files changed (3) hide show
  1. protect-wp-admin.php +15 -8
  2. pwa-class.php +20 -20
  3. readme.txt +197 -190
protect-wp-admin.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.wp-experts.in/
5
  Description: Give extra protection to your site admin and make secure your website against hackers!!
6
  Author: WP Experts Team
7
  Author URI: https://www.wp-experts.in/
8
- Version: 3.2
9
  */
10
 
11
  /*** WP Experts Team Copyright 2017-2020 (email : raghunath.0087@gmail.com)
@@ -67,7 +67,7 @@ add_action('admin_init','init_pwa_options_fields');
67
  if(!function_exists('init_pwa_options_fields')):
68
  function init_pwa_options_fields(){
69
  register_setting('pwa_setting_options','pwa_active');
70
- register_setting('pwa_setting_options','pwa_rewrite_text');
71
  register_setting('pwa_setting_options','pwa_restrict');
72
  register_setting('pwa_setting_options','pwa_logout');
73
  register_setting('pwa_setting_options','pwa_allow_custom_users');
@@ -76,7 +76,14 @@ function init_pwa_options_fields(){
76
  register_setting('pwa_setting_options','pwa_login_page_color');
77
  }
78
  endif;
79
-
 
 
 
 
 
 
 
80
  if(!function_exists('add_pwa_admin_style_script')):
81
  function add_pwa_admin_style_script()
82
  {
@@ -119,11 +126,11 @@ function init_pwa_admin_option_page(){
119
  <td valign="top" width="50%">
120
 
121
  <p><input type="checkbox" id="pwa_active" name="pwa_active" value='1' <?php if(get_option('pwa_active')!=''){ echo ' checked="checked"'; }?>/> <label><strong>Enable</strong></label></p>
122
- <p id="adminurl"><label><strong>New Admin Slug:</strong></label><br><input type="text" id="pwa_rewrite_text" size="20" name="pwa_rewrite_text" value="<?php echo esc_attr(get_option('pwa_rewrite_text')); ?>" placeholder="myadmin" size="30"><br><i>Don't use any special character.</i></p>
123
  <?php
124
  $getPwaOptions=get_pwa_setting_options();
125
  if((isset($getPwaOptions['pwa_active']) && '1'==$getPwaOptions['pwa_active']) && (isset($getPwaOptions['pwa_rewrite_text']) && $getPwaOptions['pwa_rewrite_text']!='')){
126
- echo '<p><strong>Note:</strong>Please check new admin url before logout.<br><strong><blink><br><a href="'.home_url($getPwaOptions['pwa_rewrite_text'].'?preview=1').'" target="_blank" style="border: 1px solid #ff0000;text-decoration: none;color: #ff0000;font-size: 18px;vertical-align: middle;padding: 10px 20px;" target="_blank">Preview New Admin URL</a></blink></strong></p>';
127
 
128
  }
129
  ?>
@@ -136,7 +143,7 @@ function init_pwa_admin_option_page(){
136
 
137
  </td>
138
  <td valign="top" style="border-left:2px solid #ccc; padding-left:10px;">
139
- <div class="offer-announcement"><h2><i class="wpexperts dashicons-before dashicons-megaphone"></i><a href="https://www.wp-experts.in/products/protect-wp-admin-pro">FLAT 20% DISCOUNT ON PLUGIN ADD-ON</a></h2><em class="tagline">No Coupon Code Required. Hurry! Limited Time Offer!</em></div>
140
  <h3>Pro Addon Features:</h3>
141
  <ol class="hand right-click twocolumn">
142
  <li>Rename wordpress wp-admin URL</li>
@@ -149,8 +156,8 @@ function init_pwa_admin_option_page(){
149
  <li>Change wordpress admin URL</li>
150
  <li>Track user login history.</li>
151
  <li>Faster support</li>
152
- </ol>
153
- <h2><a href="https://www.wp-experts.in/products/protect-wp-admin-pro" target="_blank" style=" background: #0472aa; padding: 10px 20px; margin: 10px 0px; text-decoration: none; color: #fff; font-size: 24px; "><strong>Click here to Buy Addon</strong></a></h2>
154
  </td>
155
  </tr>
156
  </table>
5
  Description: Give extra protection to your site admin and make secure your website against hackers!!
6
  Author: WP Experts Team
7
  Author URI: https://www.wp-experts.in/
8
+ Version: 3.3
9
  */
10
 
11
  /*** WP Experts Team Copyright 2017-2020 (email : raghunath.0087@gmail.com)
67
  if(!function_exists('init_pwa_options_fields')):
68
  function init_pwa_options_fields(){
69
  register_setting('pwa_setting_options','pwa_active');
70
+ register_setting('pwa_setting_options','pwa_rewrite_text','pwa_sanitization_newslug_escaping_text');
71
  register_setting('pwa_setting_options','pwa_restrict');
72
  register_setting('pwa_setting_options','pwa_logout');
73
  register_setting('pwa_setting_options','pwa_allow_custom_users');
76
  register_setting('pwa_setting_options','pwa_login_page_color');
77
  }
78
  endif;
79
+ if(!function_exists('pwa_sanitization_newslug_escaping_text')):
80
+ function pwa_sanitization_newslug_escaping_text($val)
81
+ {
82
+ //sanitize
83
+ $val = sanitize_text_field($val);
84
+ return $val;
85
+ }
86
+ endif;
87
  if(!function_exists('add_pwa_admin_style_script')):
88
  function add_pwa_admin_style_script()
89
  {
126
  <td valign="top" width="50%">
127
 
128
  <p><input type="checkbox" id="pwa_active" name="pwa_active" value='1' <?php if(get_option('pwa_active')!=''){ echo ' checked="checked"'; }?>/> <label><strong>Enable</strong></label></p>
129
+ <p id="adminurl"><label><strong>New Admin Slug:</strong></label><br><input onkeyup="this.value=this.value.replace(/[^a-z]/g,'');" type="text" id="pwa_rewrite_text" size="20" name="pwa_rewrite_text" value="<?php echo esc_attr(get_option('pwa_rewrite_text')); ?>" placeholder="myadmin" size="30"><br><i>Don't use any special character.</i></p>
130
  <?php
131
  $getPwaOptions=get_pwa_setting_options();
132
  if((isset($getPwaOptions['pwa_active']) && '1'==$getPwaOptions['pwa_active']) && (isset($getPwaOptions['pwa_rewrite_text']) && $getPwaOptions['pwa_rewrite_text']!='')){
133
+ echo '<p><a href="'.site_url($getPwaOptions['pwa_rewrite_text'].'?preview=1').'" target="_blank" style="border: 1px solid #ff0000;text-decoration: none;color: #ff0000;font-size: 18px;vertical-align: middle;padding: 10px 20px;" target="_blank">Preview Of New Admin URL</a></blink></strong></p><em><strong>Note:</strong>Please check new admin url before logout.</em><br>';
134
 
135
  }
136
  ?>
143
 
144
  </td>
145
  <td valign="top" style="border-left:2px solid #ccc; padding-left:10px;">
146
+ <div class="offer-announcement" style="display:none;"><h2><i class="wpexperts dashicons-before dashicons-megaphone"></i><a href="https://www.wp-experts.in/products/protect-wp-admin-pro">FLAT 20% DISCOUNT ON PLUGIN ADD-ON</a></h2><em class="tagline">No Coupon Code Required. Hurry! Limited Time Offer!</em></div>
147
  <h3>Pro Addon Features:</h3>
148
  <ol class="hand right-click twocolumn">
149
  <li>Rename wordpress wp-admin URL</li>
156
  <li>Change wordpress admin URL</li>
157
  <li>Track user login history.</li>
158
  <li>Faster support</li>
159
+ </ol><br>
160
+ <h2><a href="https://www.wp-experts.in/products/protect-wp-admin-pro" target="_blank" style="background: #0472aa; padding: 10px 20px; margin: 10px 0px; text-decoration: none; color: #fff; font-size: 24px; "><strong>Click here to download add-on</strong></a></h2>
161
  </td>
162
  </tr>
163
  </table>
pwa-class.php CHANGED
@@ -43,7 +43,7 @@ if(!function_exists('check_login_status')):
43
  {
44
  $getPwaOptions = get_pwa_setting_options();
45
  $current_uri = pwa_get_current_page_url($_SERVER);
46
- $newadminurl = home_url($getPwaOptions['pwa_rewrite_text']);
47
  if ( is_user_logged_in() && $current_uri==$newadminurl)
48
  {
49
  wp_redirect(admin_url()); die();
@@ -68,7 +68,7 @@ function pwa_logout_user_after_settings_save()
68
  {
69
  $URL=str_replace('&amp;','&',wp_logout_url());
70
  if(isset($getPwaOptions['pwa_rewrite_text']) && isset($getPwaOptions['pwa_logout']) && $getPwaOptions['pwa_logout']==1 && $getPwaOptions['pwa_rewrite_text']!=''){
71
- wp_redirect(home_url('/'.$getPwaOptions['pwa_rewrite_text']));
72
  }else
73
  {
74
  //silent
@@ -107,16 +107,16 @@ $getPwaOptions=get_pwa_setting_options();
107
  if(isset($getPwaOptions['pwa_active']) && ''!=$getPwaOptions['pwa_rewrite_text']){
108
 
109
  echo '<script>jQuery(document).ready(function(){
110
- jQuery("#login #login_error a").attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");
111
- jQuery("body.login-action-resetpass p.reset-pass a").attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"].'/').'");
112
  var formId= jQuery("#login form").attr("id");
113
  if(formId=="loginform"){
114
- jQuery("#"+formId).attr("action","'.home_url($getPwaOptions["pwa_rewrite_text"]).'");
115
  }else if("lostpasswordform"==formId){
116
- jQuery("#"+formId).attr("action","'.home_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");
117
- jQuery("#"+formId+" input:hidden[name=redirect_to]").val("'.home_url($getPwaOptions["pwa_rewrite_text"].'/?checkemail=confirm').'");
118
  }else if("registerform"==formId){
119
- jQuery("#"+formId).attr("action","'.home_url($getPwaOptions["pwa_rewrite_text"].'/register').'");
120
  }
121
  else
122
  {
@@ -130,17 +130,17 @@ if(formId=="loginform"){
130
 
131
  if(linkText.indexOf("?action=register") >= 0)
132
  {
133
- //jQuery(this).attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"].'/register').'");
134
  }
135
 
136
  if(linkText.indexOf("?action=lostpassword") >= 0)
137
  {
138
- // jQuery(this).attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");
139
  }
140
  */
141
  var linkText = jQuery(this).attr("href").match(/[^/]*(?=(\/)?$)/)[0];
142
- if(linkText=="wp-login.php"){jQuery(this).attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"]).'");}
143
- else if(linkText=="wp-login.php?action=register"){jQuery(this).attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"].'/register').'");}else if(linkText=="wp-login.php?action=lostpassword"){jQuery(this).attr("href","'.home_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");}else {
144
  //silent
145
  }
146
  });});</script>';
@@ -155,19 +155,19 @@ function pwa_admin_url_redirect_conditions()
155
  $getPwaOptions=get_pwa_setting_options();
156
  $pwaActualURLAry =array
157
  (
158
- home_url('/wp-login.php'),
159
- home_url('/wp-login.php/'),
160
- home_url('/wp-login'),
161
- home_url('/wp-login/'),
162
- home_url('/wp-admin'),
163
- home_url('/wp-admin/'),
164
  );
165
  $request_url = pwa_get_current_page_url($_SERVER);
166
  $newUrl = explode('?',$request_url);
167
  //print_r($pwaActualURLAry); echo $newUrl[0];exit;
168
  if(! is_user_logged_in() && in_array($newUrl[0],$pwaActualURLAry) )
169
  {
170
- if(wp_doing_ajax() && $newUrl[0]==home_url('/wp-admin/admin-ajax.php'))
171
  return true;
172
  /** is forgot password link */
173
  if( isset($_GET['login']) && isset($_GET['action']) && $_GET['action']=='rp' && $_GET['login']!='')
@@ -184,7 +184,7 @@ if(username_exists($username))
184
  }
185
  elseif(isset($_GET['action']) && isset($_GET['error']) && $_GET['action']=='lostpassword' && $_GET['error']=='invalidkey')
186
  {
187
- $redirectUrl=home_url($getPwaOptions["pwa_rewrite_text"].'/?action=lostpassword&error=invalidkey');
188
  wp_redirect($redirectUrl,301);//exit;
189
  }
190
  elseif(isset($_GET['action']) && $_GET['action']=='resetpass')
43
  {
44
  $getPwaOptions = get_pwa_setting_options();
45
  $current_uri = pwa_get_current_page_url($_SERVER);
46
+ $newadminurl = site_url($getPwaOptions['pwa_rewrite_text']);
47
  if ( is_user_logged_in() && $current_uri==$newadminurl)
48
  {
49
  wp_redirect(admin_url()); die();
68
  {
69
  $URL=str_replace('&amp;','&',wp_logout_url());
70
  if(isset($getPwaOptions['pwa_rewrite_text']) && isset($getPwaOptions['pwa_logout']) && $getPwaOptions['pwa_logout']==1 && $getPwaOptions['pwa_rewrite_text']!=''){
71
+ wp_redirect(site_url('/'.$getPwaOptions['pwa_rewrite_text']));
72
  }else
73
  {
74
  //silent
107
  if(isset($getPwaOptions['pwa_active']) && ''!=$getPwaOptions['pwa_rewrite_text']){
108
 
109
  echo '<script>jQuery(document).ready(function(){
110
+ jQuery("#login #login_error a").attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");
111
+ jQuery("body.login-action-resetpass p.reset-pass a").attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"].'/').'");
112
  var formId= jQuery("#login form").attr("id");
113
  if(formId=="loginform"){
114
+ jQuery("#"+formId).attr("action","'.site_url($getPwaOptions["pwa_rewrite_text"]).'");
115
  }else if("lostpasswordform"==formId){
116
+ jQuery("#"+formId).attr("action","'.site_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");
117
+ jQuery("#"+formId+" input:hidden[name=redirect_to]").val("'.site_url($getPwaOptions["pwa_rewrite_text"].'/?checkemail=confirm').'");
118
  }else if("registerform"==formId){
119
+ jQuery("#"+formId).attr("action","'.site_url($getPwaOptions["pwa_rewrite_text"].'/register').'");
120
  }
121
  else
122
  {
130
 
131
  if(linkText.indexOf("?action=register") >= 0)
132
  {
133
+ //jQuery(this).attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"].'/register').'");
134
  }
135
 
136
  if(linkText.indexOf("?action=lostpassword") >= 0)
137
  {
138
+ // jQuery(this).attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");
139
  }
140
  */
141
  var linkText = jQuery(this).attr("href").match(/[^/]*(?=(\/)?$)/)[0];
142
+ if(linkText=="wp-login.php"){jQuery(this).attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"]).'");}
143
+ else if(linkText=="wp-login.php?action=register"){jQuery(this).attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"].'/register').'");}else if(linkText=="wp-login.php?action=lostpassword"){jQuery(this).attr("href","'.site_url($getPwaOptions["pwa_rewrite_text"].'/lostpassword').'");}else {
144
  //silent
145
  }
146
  });});</script>';
155
  $getPwaOptions=get_pwa_setting_options();
156
  $pwaActualURLAry =array
157
  (
158
+ site_url('/wp-login.php'),
159
+ site_url('/wp-login.php/'),
160
+ site_url('/wp-login'),
161
+ site_url('/wp-login/'),
162
+ site_url('/wp-admin'),
163
+ site_url('/wp-admin/'),
164
  );
165
  $request_url = pwa_get_current_page_url($_SERVER);
166
  $newUrl = explode('?',$request_url);
167
  //print_r($pwaActualURLAry); echo $newUrl[0];exit;
168
  if(! is_user_logged_in() && in_array($newUrl[0],$pwaActualURLAry) )
169
  {
170
+ if(wp_doing_ajax() && $newUrl[0]==site_url('/wp-admin/admin-ajax.php'))
171
  return true;
172
  /** is forgot password link */
173
  if( isset($_GET['login']) && isset($_GET['action']) && $_GET['action']=='rp' && $_GET['login']!='')
184
  }
185
  elseif(isset($_GET['action']) && isset($_GET['error']) && $_GET['action']=='lostpassword' && $_GET['error']=='invalidkey')
186
  {
187
+ $redirectUrl=site_url($getPwaOptions["pwa_rewrite_text"].'/?action=lostpassword&error=invalidkey');
188
  wp_redirect($redirectUrl,301);//exit;
189
  }
190
  elseif(isset($_GET['action']) && $_GET['action']=='resetpass')
readme.txt CHANGED
@@ -1,27 +1,25 @@
1
- === Protect Your Admin ===
2
- Contributors: wpexpertsin, india-web-developer
3
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
- Tags: secure website, secure wordpress, protect wp admin, protection,security, wordpress protection, wordpress security, prevent hacking, hack, secure login, website security, change username, rename username, admin url, secure admin, username, protect admin, login, secure wordpress admin, admin login, admin, rename admin url
5
- Requires at least: 5.0
6
- Tested up to: 5.4.1
7
- Stable tag: 3.2
8
-
9
- Hide your WP Admin URL using a secret term and secure your website against hackers!!
10
-
11
- == Description ==
12
-
13
- Hide your WP Admin URL by rename deafult wordpress admin URL (i.e /wp-admin or /wp-login.php)
14
-
15
  If you run a WordPress website, you should absolutely use "protect-wp-admin" to secure it against hackers.
16
 
17
  Protect WP-Admin fixes a glaring security hole in the WordPress community: the well-known problem of the admin panel URL.
18
  Everyone knows where the admin panel, and this includes hackers as well.
19
 
20
- ### FLAT 20% DISCOUNT ON [ADD-ON](https://www.wp-experts.in/products/protect-wp-admin-pro). No Coupon Code Required. Hurry! Limited Time Offer!
21
-
22
- Protect WP-Admin solve this problem by allowing administrator to customize their admin panel URL and blocking the default links.
23
 
24
- Administrator will be able to change default login page url "sitename.com/wp-admin" to something like "sitename.com/custom-string", so after that guest user will be redirect to the homepage.
25
 
26
  The plugin also comes with some access filters, allowing Administrator to restrict guest and registered users access to wp-admin, just in case you want some of your editors to log in the classic way.
27
 
@@ -30,207 +28,216 @@ It is extremely important to back up your database before beginning the activate
30
 
31
  https://youtu.be/Mxr2MLDNACE
32
 
33
- **[ Click here to download Add-on ](https://www.wp-experts.in/products/protect-wp-admin-pro)**
34
 
35
 
36
  = Features =
37
 
38
- * Define custom wp-admin url(i.e http://yourdomain.com/myadmin)
39
- * Define custom Logo OR change default logo on login page
40
- * Define Login page background color
41
- * Define Login page text color
42
- * SEO friendly URL for "Register" page (i.e http://yourdomain.com/myadmin/register)
43
- * SEO friendly URL for "Lost Password" page (i.e http://yourdomain.com/myadmin/lostpassword)
44
- * Restrict guest users for access to wp-admin
45
- * Restrict registered non-admin users from wp-admin
46
- * Allow admin access to non-admin users by define comma seprate multiple ids
47
 
48
  = Add-on Features =
49
 
50
  We have also released an add-on for Protect-WP-Admin which not only demonstrates the flexibility of Protect-WP-Admin, but also adds some important features
51
 
52
- * Login Attempt Counter
53
- * An option to define login page logo URL
54
- * An option to manage login page CSS from admin
55
- * An option to change username of any user from admin
56
- * An option to define custom redirect url for defalut wp-admin url
57
- * Faster support
 
 
 
58
 
59
- ### FLAT 20% DISCOUNT ON [ADD-ON](https://www.wp-experts.in/products/protect-wp-admin-pro). No Coupon Code Required. Hurry! Limited Time Offer!
 
 
 
 
60
 
61
 
62
- **[ Click here to download Add-on](https://www.wp-experts.in/products/protect-wp-admin-pro)**
63
-
64
- Add-on Features
65
-
66
- https://youtu.be/sXywBe0XWy0
67
 
68
-
69
- == Installation ==
70
- In most cases you can install automatically from WordPress.
71
-
72
  However, if you install this manually, follow these steps:
73
-
74
- * Step 1. Upload "protect-wp-admin-pro" folder to the `/wp-content/plugins/` directory
75
- * Step 2. Activate the plugin through the Plugins menu in WordPress
76
- * Step 3. Go to Settings "Protect WP-Admin Pro" and configure the plugin settings.
77
-
78
- == Frequently Asked Questions ==
79
 
80
- #1.) Nothing happen after enable and add the new wordpress admin url?
81
-
82
- Don't worry, Just update the site permalink ("Settings" >> "Permalinks") and re-check,Now this time it will be work fine
 
 
83
 
84
- #2.) Not able to login into admin after enable plugin?
85
-
86
- May be issue can come when you not give proper writable permission on htaccess file OR you have not update permalink settings to SEO friendly url from admin. You can access login page url with default wp-admin slug after disable my plugin, you can disable plugin through FTP by rename protect-wp-admin folder to any other one.
 
 
 
 
87
 
88
  #3.) I am not able to login after installation
89
 
90
- Basicaly issues can come only in case when you will use default permalink settings.
91
- If your permalink will be update to any other option except default (Plain) then it will be work fine. Feel free to contact us over email raghunath.0087@gmail.com for any query
92
-
93
- # Can I change username of existing users ?
94
- Yes, You can change username of your existing users from admin, This featue is available in our addon.
95
-
96
- # Can I set login attempt count for unsucessfull attemp?
97
- Yes, You can set the number of unsuccessfull attempt, This featue is available in our addon.
98
-
99
- # Can I acess login hostory of users from admin using this plugin?
100
- Yes, You can see the login history from plugin settings page. This featue is available in our addon.
101
-
102
- <code>
103
- <IfModule mod_rewrite.c>
104
- RewriteEngine On
105
- RewriteBase /
106
- RewriteRule ^index\.php$ - [L]
107
- RewriteRule ^newadmin/?$ /wp-login.php [QSA,L]
108
- RewriteRule ^newadmin/register/?$ /wp-login.php?action=register [QSA,L]
109
- RewriteRule ^newadmin/lostpassword/?$ /wp-login.php?action=lostpassword [QSA,L]
110
- RewriteCond %{REQUEST_FILENAME} !-f
111
- RewriteCond %{REQUEST_FILENAME} !-d
112
- RewriteRule . /index.php [L]
 
 
 
 
 
113
  </IfModule>
114
- </code>
115
-
116
- Don not forgot to update the "newadmin" slug with your new admin slug (that you were added during update the plugin settings) :-)
117
-
118
- 4.) Is there any option for set number of login attempt?
119
- * Yes, this option is available in pro addon not in free version. please browse http://www.wp-experts.in/products/protect-wp-admin-pro this url for purchase to pro addon.
120
-
121
- == Screenshots ==
122
-
123
- 1. screenshot-1.png
124
-
125
  2. screenshot-2.png
126
 
127
- 3. screenshot-3.png
128
-
129
- 4. screenshot-4.png
 
 
 
 
130
 
131
- 5. screenshot-5.png
132
-
133
-
134
-
135
  == Changelog ==
136
 
137
- = 3.1 =
138
- * Tested with new wordpress version 5.4
139
- * Added text color option
140
- * Fixed DOING_AJAX notice error
141
- * Released addon new version 1.9
142
-
143
- = 3.0.3 =
144
- * Tested with new wordpress version 5.0.2
145
- * Fixed some minor issues
146
-
147
- = 3.0.2 =
148
- * Tested with new wordpress version 4.9.8
149
- * Fixed some minor issues
150
-
151
- = 3.0.1 =
152
- * Fixed admin access issues
 
 
 
 
 
 
 
 
 
 
153
 
154
  = 3.0 =
155
- * Tested with new wordpress version 4.9.7
156
- * Optimized code of the plugin
157
-
158
- = 2.9 =
159
- * Tested with new wordpress version 4.9.4
160
- * Fixed getimagesize() function issue for HTTPS urls
161
-
162
  = 2.8 =
163
- * Tested with new wordpress version 4.8.1
164
- * Added upload image lighbox and color picker
165
-
166
  = 2.7 =
167
- * Tested with new wordpress version 4.8.1
168
- * Added upload image lighbox and color picker
169
-
170
  = 2.6 =
171
- * Tested with new wordpress version 4.8
172
-
173
  = 2.5 =
174
- * Fixed links issues on login, forget and register page for all language
175
- * Fixed access the wp login page using new admin slug even admin is already logged in
176
-
177
- = 2.4 =
178
- * Tested with new wordpress version 4.7
179
- * Fixed images logo image notice error issue.
180
-
181
  = 2.3 =
182
- * Tested with new wordpress version 4.6.1
183
- * Fixed images size logo issue
184
- * Modify code for redirect user to new admin url
185
- = 2.2 =
186
- * Tested with new wordpress version 4.5.3
187
- * Optmized plugin code
188
- = 2.1 =
189
- * Tested with new wordpress version 4.5.2
190
-
191
- = 2.0 =
192
- * Tested with new wordpress version 4.5
193
- * Removed localhost permission related conditions.
194
-
195
- = 1.9 =
196
- * Fixed htaccess writable notice popup related issues on localhost
197
- * Add an new confirmation alert before enable plugin
198
-
199
- = 1.8 =
200
- * Fixed Login Failure issue
201
- * Released Pro Addon
202
-
203
- = 1.7 =
204
- * Fixed forget password email issue
205
- * Fixed forgot password link issue on login error page
206
-
207
- = 1.6 =
208
- * Fixed wp-login.php issue for www url
209
-
210
- = 1.5 =
211
- * Fixed wp-login url issue
212
- * Fixed wp-admin url issue
213
-
214
- = 1.4 =
215
- * Fixed links issue on "Register", "Login" & "Lost Password" As Per New Admin Url
216
- * Fixed the "Register", "Login" & "Lost Password" Form Action URL As Per New Admin Url
217
- * Add validation to check SEO firendly url enable or not.
218
- * Add validation to check .htaccess file is writable or not.
219
-
220
- = 1.3 =
221
- * Added an option for define to admin login page logo
222
- * Added an option for define to wp-login page background-color
223
- * Fixed some minor css issues
224
-
225
- = 1.2 =
226
- * Added new option for allow admin access to non-admin users
227
- * Added condition for check permalink is updated or not
228
- * Fixed a minor issues (logout issues after add/update admin new url)
229
-
230
- = 1.1 =
231
- * Add new option for restrict registered users from wp-admin
232
- * Fixed permalink update issue after add/update admin new url. Now no need to update your permalink
233
- * Add option for redirect user to new admin url after update the new admin url
234
-
235
- = 1.0 =
236
- * First stable release
1
+ === Protect Your Admin ===
2
+ Contributors: wpexpertsin, india-web-developer
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
+ Tags: secure website, secure wordpress, protect wp admin, protection,security, wordpress protection, wordpress security, prevent hacking, hack, secure login, website security, change username, rename username, admin url, secure admin, username, protect admin, login, secure wordpress admin, admin login, admin, rename admin url
5
+ Requires at least: 5.0
6
+ Tested up to: 5.5.1
7
+ Stable tag: 3.3
8
+
9
+ Give extra protection to your wordpress admin by rename default wordpress admin url i.e /wp-admin and set numbers of unsuccessful attempts. WP Protect Admin wordpress plugin will safe your site from hackers and give you extra features like (change existing user name and track user login history log) to make secure your website.
10
+
11
+ == Description ==
12
+
13
+ Give extra protection to your wordpress admin by rename default wordpress admin url i.e /wp-admin and set numbers of unsuccessful attempts. WP Protect Admin wordpress plugin will safe your site from hackers and give you extra features like (change existing user name and track user login history log) to make secure your website.
14
+
15
  If you run a WordPress website, you should absolutely use "protect-wp-admin" to secure it against hackers.
16
 
17
  Protect WP-Admin fixes a glaring security hole in the WordPress community: the well-known problem of the admin panel URL.
18
  Everyone knows where the admin panel, and this includes hackers as well.
19
 
20
+ Protect WP-Admin solves this problem by allowing administrators to customize their admin panel URL and blocking the default links.
 
 
21
 
22
+ Administrators will be able to change default login page url "sitename.com/wp-admin" to something like "sitename.com/custom-string", so after that guest user will be redirected to the homepage.
23
 
24
  The plugin also comes with some access filters, allowing Administrator to restrict guest and registered users access to wp-admin, just in case you want some of your editors to log in the classic way.
25
 
28
 
29
  https://youtu.be/Mxr2MLDNACE
30
 
31
+  **[ Click here to download add-on ](https://www.wp-experts.in/products/protect-wp-admin-pro)**
32
 
33
 
34
  = Features =
35
 
36
+  * Define custom wp-admin url(i.e http://yourdomain.com/myadmin)
37
+  * Define custom Logo OR change default logo on login page
38
+  * Define Login page background color
39
+  * Define Login page text color
40
+  * Restrict guest users for access to wp-admin
41
+  * Restrict registered non-admin users from wp-admin
42
+  * Allow admin access to non-admin users by define comma separate multiple ids
 
 
43
 
44
  = Add-on Features =
45
 
46
  We have also released an add-on for Protect-WP-Admin which not only demonstrates the flexibility of Protect-WP-Admin, but also adds some important features
47
 
48
+  * Rename wordpress wp-admin URL
49
+  * Enable Login Tracker
50
+  * Set Number of Login Attempt
51
+  * Change username of any existing user
52
+  * Define login page logo URL
53
+  * Manage login page style from admin
54
+  * Define custom redirect url for default wp-admin url
55
+  * Track user login history.
56
+  * Faster support
57
 
58
+  **[ Click here to download add-on](https://www.wp-experts.in/products/protect-wp-admin-pro)**
59
+  
60
+  Add-on Features
61
+  
62
+ https://youtu.be/sXywBe0XWy0
63
 
64
 
65
+ == Installation ==
66
+ In most cases you can install automatically from WordPress.
 
 
 
67
 
 
 
 
 
68
  However, if you install this manually, follow these steps:
 
 
 
 
 
 
69
 
70
+  * Step 1. Upload "protect-wp-admin-pro" folder to the `/wp-content/plugins/` directory
71
+  * Step 2. Activate the plugin through the Plugins menu in WordPress
72
+  * Step 3. Go to Settings "Protect WP-Admin Pro" and configure the plugin settings.
73
+
74
+ == Frequently Asked Questions ==
75
 
76
+ #1.) Nothing happens after enabling and adding the new wordpress admin url?
77
+
78
+ Don't worry, Just update the site permalink ("Settings" >> "Permalinks") and re-check,Now this time it will be work fine
79
+
80
+ #2.) Not able to login into admin after enabling the plugin?
81
+
82
+ The issue can come when you do not give proper writable permission on htaccess file OR you have not update permalink settings to SEO friendly url from admin. You can access the login page url with default wp-admin slug after disable my plugin, you can disable plugin through FTP by rename protect-wp-admin folder to any other one.
83
 
84
  #3.) I am not able to login after installation
85
 
86
+ Basically issues can come only in case when you will use default permalink settings.
87
+ If your permalink will be updated to any other option except default (Plain) then it will work fine. Feel free to contact us over email raghunath.0087@gmail.com for any query
88
+
89
+ #4 Can I change the username of existing users ?
90
+ Yes, You can change the username of your existing users from admin, This feature is available in our addon.
91
+
92
+ #5 Can I set a login attempt count for unsuccessful attempts?
93
+ Yes, You can set the number of unsuccessful attempts, This feature is available in our addon.
94
+
95
+ #6 Can I access the login history of users from admin using this plugin?
96
+ Yes, You can see the login history from the plugin settings page. This feature is available in our addon.
97
+
98
+ #7 Is there any option to set the number of login attempts?
99
+ * Yes, there is an option in pro addon not in free version. please browse https://www.wp-experts.in/products/protect-wp-admin-pro this url for purchase to pro addon.
100
+
101
+ #8 Getting 404 page with a new admin url, How I can fix it?
102
+ 404 issue can come due to htaccess permission issue, You can use below sample code to add it manually in site root htaccess file
103
+
104
+ <IfModule mod_rewrite.c>
105
+ RewriteEngine On
106
+ RewriteBase /
107
+ RewriteRule ^index\.php$ - [L]
108
+ RewriteRule ^myadmin/?$ /wp-login.php [QSA,L]
109
+ RewriteRule ^myadmin/register/?$ /wp-login.php?action=register [QSA,L]
110
+ RewriteRule ^myadmin/lostpassword/?$ /wp-login.php?action=lostpassword [QSA,L]
111
+ RewriteCond %{REQUEST_FILENAME} !-f
112
+ RewriteCond %{REQUEST_FILENAME} !-d
113
+ RewriteRule . /index.php [L]
114
  </IfModule>
115
+  
116
+ Here we are using new admin slug as "myadmin" so as per your new admin slug you will require update this value
117
+
118
+ == Screenshots ==
119
+
120
+ 1. screenshot-1.png
121
+
 
 
 
 
122
  2. screenshot-2.png
123
 
124
+ 3. screenshot-3.png
125
+
126
+ 4. screenshot-4.png
127
+
128
+ 5. screenshot-5.png
129
+
130
+
131
 
 
 
 
 
132
  == Changelog ==
133
 
134
+ = 3.3 =
135
+  * Tested with new wordpress version 5.4.2
136
+  * Fixed new admin url page not found issue when you setup wordpress in subdirectory.
137
+  * Optimized code
138
+  * Released add-on new version 2.0
139
+
140
+ = 3.2 =
141
+  * Tested with new wordpress version 5.4.1
142
+  * Fixed notice error
143
+
144
+ = 3.1 =
145
+  * Tested with new wordpress version 5.4
146
+  * Added text color option
147
+  * Fixed DOING_AJAX notice error
148
+  * Released addon new version 1.9
149
+  
150
+ = 3.0.3 =
151
+  * Tested with new wordpress version 5.0.2
152
+  * Fixed some minor issues
153
+  
154
+ = 3.0.2 =
155
+  * Tested with new wordpress version 4.9.8
156
+  * Fixed some minor issues
157
+  
158
+ = 3.0.1 =
159
+  * Fixed admin access issues
160
 
161
  = 3.0 =
162
+  * Tested with new wordpress version 4.9.7
163
+  * Optimized code of the plugin
164
+  
165
+ = 2.9 =
166
+  * Tested with new wordpress version 4.9.4
167
+  * Fixed getimagesize() function issue for HTTPS urls
168
+  
169
  = 2.8 =
170
+  * Tested with new wordpress version 4.8.1
171
+  * Added upload image lightbox and color picker
172
+  
173
  = 2.7 =
174
+  * Tested with new wordpress version 4.8.1
175
+  * Added upload image lightbox and color picker
176
+  
177
  = 2.6 =
178
+  * Tested with new wordpress version 4.8
179
+  
180
  = 2.5 =
181
+  * Fixed links issues on login, forget and register page for all language
182
+  * Fixed access the wp login page using new admin slug even admin is already logged in
183
+
184
+ = 2.4 =
185
+  * Tested with new wordpress version 4.7
186
+  * Fixed images logo image notice error issue.
187
+  
188
  = 2.3 =
189
+  * Tested with new wordpress version 4.6.1
190
+  * Fixed images size logo issue
191
+  * Modify code for redirect user to new admin url
192
+ = 2.2 =
193
+  * Tested with new wordpress version 4.5.3
194
+  * Optimized plugin code
195
+ = 2.1 =
196
+  * Tested with new wordpress version 4.5.2
197
+  
198
+ = 2.0 =
199
+  * Tested with new wordpress version 4.5
200
+  * Removed localhost permission related conditions.
201
+
202
+ = 1.9 =
203
+  * Fixed htaccess writable notice popup related issues on localhost
204
+  * Add an new confirmation alert before enable plugin
205
+
206
+ = 1.8 =
207
+  * Fixed Login Failure issue
208
+  * Released Pro Addon
209
+
210
+ = 1.7 =
211
+  * Fixed forget password email issue
212
+  * Fixed forgot password link issue on login error page
213
+
214
+ = 1.6 =
215
+  *  Fixed wp-login.php issue for www url
216
+  
217
+ = 1.5 =
218
+  * Fixed wp-login url issue
219
+  * Fixed wp-admin url issue
220
+
221
+ = 1.4 =
222
+  * Fixed links issue on "Register", "Login" & "Lost Password" As Per New Admin Url
223
+  * Fixed the "Register", "Login" & "Lost Password" Form Action URL As Per New Admin Url
224
+  * Add validation to check SEO friendly url enable or not.
225
+  * Add validation to check whether the .htaccess file is writable or not.
226
+
227
+ = 1.3 =
228
+  * Added an option for define to admin login page logo
229
+  * Added an option for define to wp-login page background-color
230
+  * Fixed some minor css issues
231
+
232
+ = 1.2 =
233
+  * Added new option for allow admin access to non-admin users
234
+  * Added condition for check permalink is updated or not
235
+  * Fixed a minor issues (logout issues after add/update admin new url)
236
+  
237
+ = 1.1 =
238
+  * Add new option for restrict registered users from wp-admin
239
+  * Fixed permalink update issue after add/update admin new url. Now no need to update your permalink
240
+  * Add option for redirect user to new admin url after update the new admin url
241
+
242
+ = 1.0 =
243
+  * First stable release