Version Description
- Tested with new wordpress version 5.0.2
- Fixed some minor issues
Download this release
Release Info
Developer | india-web-developer |
Plugin | Protect Your Admin |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- protect-wp-admin.php +6 -6
- readme.txt +16 -10
protect-wp-admin.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/**
|
3 |
Plugin Name: Protect WP-Admin
|
4 |
Plugin URI: http://www.mrwebsolution.in/
|
5 |
-
Description:
|
6 |
Author: MR Web Solution
|
7 |
Author URI: http://www.mrwebsolution.in/
|
8 |
-
Version: 3.0.
|
9 |
*/
|
10 |
|
11 |
/*** Protect WP-Admin Copyright 2017 (email : raghunath.0087@gmail.com)
|
@@ -122,7 +122,7 @@ function init_pwa_admin_option_page(){
|
|
122 |
<?php
|
123 |
$getPwaOptions=get_pwa_setting_options();
|
124 |
if((isset($getPwaOptions['pwa_active']) && '1'==$getPwaOptions['pwa_active']) && (isset($getPwaOptions['pwa_rewrite_text']) && $getPwaOptions['pwa_rewrite_text']!='')){
|
125 |
-
echo "<
|
126 |
|
127 |
}
|
128 |
?>
|
@@ -147,7 +147,7 @@ function init_pwa_admin_option_page(){
|
|
147 |
<!-- Admin Style -->
|
148 |
<div class="last author pwa-tab" id="div-pwa-admin-style">
|
149 |
<h2>Admin Login Page Style Settings</h2>
|
150 |
-
<p id="adminurl"><label>Login Page Logo
|
151 |
<p id="adminurl"><label>Body Background Color: </label><input type="text" id="pwa_login_page_bg_color" name="pwa_login_page_bg_color" value="<?php echo esc_attr(get_option('pwa_login_page_bg_color')); ?>" size="30" class="color-field"></p>
|
152 |
</div>
|
153 |
<!-- Advance Setting -->
|
@@ -155,8 +155,8 @@ function init_pwa_admin_option_page(){
|
|
155 |
<h2>Advance Settings</h2>
|
156 |
|
157 |
<p><input type="checkbox" id="pwa_restrict" name="pwa_restrict" value='1' <?php if(get_option('pwa_restrict')!=''){ echo ' checked="checked"'; }?>/> <label>Restrict registered non-admin users from wp-admin :</label></p>
|
158 |
-
<p><input type="checkbox" id="pwa_logout" name="pwa_logout" value='1' <?php if(get_option('pwa_logout')==''){ echo ''; }else{echo 'checked="checked"';}?>/> <label>Logout Admin After Add/Update New Admin URL(Optional) :</label> (This is only for security purpose)</p>
|
159 |
-
<p><label>Allow access to non-admin users
|
160 |
</div>
|
161 |
<!-- go pro -->
|
162 |
<div class="last author pwa-tab" id="div-pwa-gopro">
|
2 |
/**
|
3 |
Plugin Name: Protect WP-Admin
|
4 |
Plugin URI: http://www.mrwebsolution.in/
|
5 |
+
Description: Hide your WP Admin URL using a secret term and secure your website against hackers!!
|
6 |
Author: MR Web Solution
|
7 |
Author URI: http://www.mrwebsolution.in/
|
8 |
+
Version: 3.0.3
|
9 |
*/
|
10 |
|
11 |
/*** Protect WP-Admin Copyright 2017 (email : raghunath.0087@gmail.com)
|
122 |
<?php
|
123 |
$getPwaOptions=get_pwa_setting_options();
|
124 |
if((isset($getPwaOptions['pwa_active']) && '1'==$getPwaOptions['pwa_active']) && (isset($getPwaOptions['pwa_rewrite_text']) && $getPwaOptions['pwa_rewrite_text']!='')){
|
125 |
+
echo "<p><strong>Note:</strong>Please check new admin url before logout.<br><strong><blink><a href='".home_url($getPwaOptions['pwa_rewrite_text'].'?preview=1')."' target='_blank'>CLICK HERE</a></blink></strong> to preview new admin URL.</p>";
|
126 |
|
127 |
}
|
128 |
?>
|
147 |
<!-- Admin Style -->
|
148 |
<div class="last author pwa-tab" id="div-pwa-admin-style">
|
149 |
<h2>Admin Login Page Style Settings</h2>
|
150 |
+
<p id="adminurl"><label>Login Page Logo:</label><br><input type="text" id="pwa_logo_path" name="pwa_logo_path" value="<?php echo esc_attr(get_option('pwa_logo_path')); ?>" placeholder="Add Custom Logo Image Path" size="30"> <input data-id="pwa_logo_path" type="button" value="Upload Image" class="upload_image"/>(<i>Change WordPress Default Login Logo </i>)</p>
|
151 |
<p id="adminurl"><label>Body Background Color: </label><input type="text" id="pwa_login_page_bg_color" name="pwa_login_page_bg_color" value="<?php echo esc_attr(get_option('pwa_login_page_bg_color')); ?>" size="30" class="color-field"></p>
|
152 |
</div>
|
153 |
<!-- Advance Setting -->
|
155 |
<h2>Advance Settings</h2>
|
156 |
|
157 |
<p><input type="checkbox" id="pwa_restrict" name="pwa_restrict" value='1' <?php if(get_option('pwa_restrict')!=''){ echo ' checked="checked"'; }?>/> <label>Restrict registered non-admin users from wp-admin :</label></p>
|
158 |
+
<!-- <p><input type="checkbox" id="pwa_logout" name="pwa_logout" value='1' <?php if(get_option('pwa_logout')==''){ echo ''; }else{echo 'checked="checked"';}?>/> <label>Logout Admin After Add/Update New Admin URL(Optional) :</label> (This is only for security purpose)</p> -->
|
159 |
+
<p><label>Allow access to non-admin users:<br></label><input type="text" id="pwa_allow_custom_users" name="pwa_allow_custom_users" value="<?php echo esc_attr(get_option('pwa_allow_custom_users')); ?>" placeholder="1,2,3"> <br>(<i>Add comma seprated ids</i>)</p>
|
160 |
</div>
|
161 |
<!-- go pro -->
|
162 |
<div class="last author pwa-tab" id="div-pwa-gopro">
|
readme.txt
CHANGED
@@ -1,29 +1,31 @@
|
|
1 |
=== Protect Your Admin ===
|
2 |
Contributors:india-web-developer
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
|
4 |
-
Tags:
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 3.0.
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
|
|
|
|
12 |
|
13 |
If you run a WordPress website, you should absolutely use "protect-wp-admin" to secure it against hackers.
|
14 |
|
15 |
Protect WP-Admin fixes a glaring security hole in the WordPress community: the well-known problem of the admin panel URL.
|
16 |
Everyone knows where the admin panel, and this includes hackers as well.
|
17 |
|
18 |
-
Protect WP-Admin
|
|
|
|
|
19 |
|
20 |
-
|
21 |
-
All queries for the classic "/wp-admin/" and "wp-login.php" files will be redirected to the homepage, while access to the WP backend will be allowed only for the custom URL.
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
26 |
-
It is extremely important to back up your database before beginning the activate plugin. If, for some reason, you find it necessary to restore your database from these backups. Plugin will not work for IIS.
|
27 |
|
28 |
|
29 |
https://www.youtube.com/watch?v=D4j6LS0uKuY
|
@@ -122,6 +124,10 @@ Don not forgot to update the "newadmin" slug with your new admin slug (that you
|
|
122 |
|
123 |
|
124 |
== Changelog ==
|
|
|
|
|
|
|
|
|
125 |
= 3.0.2 =
|
126 |
* Tested with new wordpress version 4.9.8
|
127 |
* Fixed some minor issues
|
1 |
=== Protect Your Admin ===
|
2 |
Contributors:india-web-developer
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
|
4 |
+
Tags: rename default admin url, rename admin url, secure admin, change username, protect admin, change login page logo
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.0.2
|
7 |
+
Stable tag: 3.0.3
|
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 |
+
Protect WP-Admin solve this problem by allowing administrator to customize their admin panel URL and blocking the default links.
|
21 |
+
|
22 |
+
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.
|
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 |
|
26 |
+
= NOTE :Back up your database before beginning the activate plugin. =
|
27 |
|
28 |
+
It is extremely important to back up your database before beginning the activate plugin. If, for some reason, you find it necessary to restore your database from these backups. Plugin will not work for IIS SERVER.
|
|
|
29 |
|
30 |
|
31 |
https://www.youtube.com/watch?v=D4j6LS0uKuY
|
124 |
|
125 |
|
126 |
== Changelog ==
|
127 |
+
= 3.0.3 =
|
128 |
+
* Tested with new wordpress version 5.0.2
|
129 |
+
* Fixed some minor issues
|
130 |
+
|
131 |
= 3.0.2 =
|
132 |
* Tested with new wordpress version 4.9.8
|
133 |
* Fixed some minor issues
|