Version Description
- New functionality, block wp-json for everyone or non-logged-in users.
- Fix Emulate CMS documentation url.
- Removed Twitter share.
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.1 to 1.7.3
- include/functions.class.php +1 -23
- modules/components/general-emulate.php +1 -1
- modules/components/rewrite-json-rest.php +17 -5
- readme.txt +6 -1
- wp-hide.php +1 -1
include/functions.class.php
CHANGED
@@ -2793,34 +2793,12 @@
|
|
2793 |
</div>
|
2794 |
|
2795 |
<div class="text">
|
|
|
2796 |
<p><?php _e('Help us to maintain this plugin by sending improvements, suggestions and reporting any issues at ', 'wp-hide-security-enhancer') ?><a target="_blank" href="https://wp-hide.com/">wp-hide.com</a></p>
|
2797 |
<span class="split"> </span>
|
2798 |
<h4><?php _e('Did you know there is a', 'wp-hide-security-enhancer') ?> <span class="wph-pro">PRO</span> <?php _e('version of this plug-in?', 'wp-hide-security-enhancer') ?> <a target="_blank" href="https://wp-hide.com/wp-hide-pro-now-available/">Read more</a></h4>
|
2799 |
<span class="split"> </span>
|
2800 |
<p><?php _e('Did you find this plugin useful? Please support our work by submitting a review, spread the word about the code, or write an article about the plugin in your blog with a link to development site', 'wp-hide-security-enhancer') ?> <a href="https://wp-hide.com/" target="_blank"><strong>https://wp-hide.com/</strong></a></p>
|
2801 |
-
|
2802 |
-
<div id="social">
|
2803 |
-
|
2804 |
-
<div class="social-item social-item-fb">
|
2805 |
-
<div id="fb-root"></div>
|
2806 |
-
<script>(function(d, s, id) {
|
2807 |
-
var js, fjs = d.getElementsByTagName(s)[0];
|
2808 |
-
if (d.getElementById(id)) return;
|
2809 |
-
js = d.createElement(s); js.id = id;
|
2810 |
-
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
|
2811 |
-
fjs.parentNode.insertBefore(js, fjs);
|
2812 |
-
}(document, 'script', 'facebook-jssdk'));</script>
|
2813 |
-
|
2814 |
-
<div class="fb-like" data-href="https://www.facebook.com/nspcode/" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div>
|
2815 |
-
|
2816 |
-
</div>
|
2817 |
-
|
2818 |
-
<div class="social-item social-item-twitter">
|
2819 |
-
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://wp-hide.com" data-text="Hide and increase Security for your WordPress website instance using smart techniques. No files are being changed." data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
2820 |
-
</div>
|
2821 |
-
|
2822 |
-
<div class="clear"></div>
|
2823 |
-
</div>
|
2824 |
</div>
|
2825 |
|
2826 |
|
2793 |
</div>
|
2794 |
|
2795 |
<div class="text">
|
2796 |
+
<p> </p>
|
2797 |
<p><?php _e('Help us to maintain this plugin by sending improvements, suggestions and reporting any issues at ', 'wp-hide-security-enhancer') ?><a target="_blank" href="https://wp-hide.com/">wp-hide.com</a></p>
|
2798 |
<span class="split"> </span>
|
2799 |
<h4><?php _e('Did you know there is a', 'wp-hide-security-enhancer') ?> <span class="wph-pro">PRO</span> <?php _e('version of this plug-in?', 'wp-hide-security-enhancer') ?> <a target="_blank" href="https://wp-hide.com/wp-hide-pro-now-available/">Read more</a></h4>
|
2800 |
<span class="split"> </span>
|
2801 |
<p><?php _e('Did you find this plugin useful? Please support our work by submitting a review, spread the word about the code, or write an article about the plugin in your blog with a link to development site', 'wp-hide-security-enhancer') ?> <a href="https://wp-hide.com/" target="_blank"><strong>https://wp-hide.com/</strong></a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2802 |
</div>
|
2803 |
|
2804 |
|
modules/components/general-emulate.php
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
__("- Joomla", 'wp-hide-security-enhancer') . "<br />" .
|
28 |
__("- TYPO3", 'wp-hide-security-enhancer') . "<br />" .
|
29 |
__("- Wix", 'wp-hide-security-enhancer') . "<br />" ,
|
30 |
-
'option_documentation_url' => 'https://wp-hide.com/documentation/general-
|
31 |
),
|
32 |
|
33 |
'input_type' => 'radio',
|
27 |
__("- Joomla", 'wp-hide-security-enhancer') . "<br />" .
|
28 |
__("- TYPO3", 'wp-hide-security-enhancer') . "<br />" .
|
29 |
__("- Wix", 'wp-hide-security-enhancer') . "<br />" ,
|
30 |
+
'option_documentation_url' => 'https://wp-hide.com/documentation/general-emulate-cms/'
|
31 |
),
|
32 |
|
33 |
'input_type' => 'radio',
|
modules/components/rewrite-json-rest.php
CHANGED
@@ -112,8 +112,10 @@
|
|
112 |
|
113 |
'help' => array(
|
114 |
'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('Block any JSON REST calls', 'wp-hide-security-enhancer'),
|
115 |
-
'description' => __("This blocks the JSON REST API service.", 'wp-hide-security-enhancer') .
|
116 |
-
|
|
|
|
|
117 |
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-json-rest/'
|
118 |
),
|
119 |
|
@@ -125,8 +127,9 @@
|
|
125 |
|
126 |
'input_type' => 'radio',
|
127 |
'options' => array(
|
128 |
-
'no'
|
129 |
-
'
|
|
|
130 |
),
|
131 |
'default_value' => 'no',
|
132 |
|
@@ -281,7 +284,16 @@
|
|
281 |
|
282 |
if($this->wph->server_htaccess_config === TRUE)
|
283 |
{
|
284 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
}
|
286 |
|
287 |
if($this->wph->server_web_config === TRUE)
|
112 |
|
113 |
'help' => array(
|
114 |
'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('Block any JSON REST calls', 'wp-hide-security-enhancer'),
|
115 |
+
'description' => __("This blocks the JSON REST API service.", 'wp-hide-security-enhancer') . "<br />".
|
116 |
+
__("When selecting the <b>Non logged-in</b> the service is blocked for all non-authenticated users.", 'wp-hide-security-enhancer') . "<br />" .
|
117 |
+
__("When selecting the <b>All</b> the service is blocked for everyone.", 'wp-hide-security-enhancer') .
|
118 |
+
"<br ><span class='important'>" . __("This might be required by specific plugins, including new WordPress editor Gutenberg. So if required to block the API, the <b>Non logged-in</b> is the appropriate option to use.", 'wp-hide-security-enhancer') . "</span>",
|
119 |
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-json-rest/'
|
120 |
),
|
121 |
|
127 |
|
128 |
'input_type' => 'radio',
|
129 |
'options' => array(
|
130 |
+
'no' => __('No', 'wp-hide-security-enhancer'),
|
131 |
+
'non-logged-in' => __('Non logged-in', 'wp-hide-security-enhancer'),
|
132 |
+
'yes' => __('All', 'wp-hide-security-enhancer'),
|
133 |
),
|
134 |
'default_value' => 'no',
|
135 |
|
284 |
|
285 |
if($this->wph->server_htaccess_config === TRUE)
|
286 |
{
|
287 |
+
if ( $saved_field_data == 'yes' )
|
288 |
+
{
|
289 |
+
$text = "\nRewriteRule ^wp-json(.+) ". $rewrite_to ."?wph-throw-404 [L]";
|
290 |
+
}
|
291 |
+
else if ( $saved_field_data == 'non-logged-in' )
|
292 |
+
{
|
293 |
+
$text = "\nRewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]".
|
294 |
+
"\nRewriteRule ^wp-json(.+) ". $rewrite_to ."?wph-throw-404 [L]";
|
295 |
+
}
|
296 |
+
|
297 |
}
|
298 |
|
299 |
if($this->wph->server_web_config === TRUE)
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.nsp-code.com/
|
|
4 |
Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.8.2
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide WordPress, wp-content, wp-includes, wp-admin, login URL, plugins, themes etc. Block the defaults for being still accessible. No files and data are changed on your server.
|
@@ -360,6 +360,11 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
360 |
|
361 |
== Changelog ==
|
362 |
|
|
|
|
|
|
|
|
|
|
|
363 |
= 1.7.1 =
|
364 |
* New plugin feature: Emulate CMS
|
365 |
* Update PO language file
|
4 |
Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.8.2
|
7 |
+
Stable tag: 1.7.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide WordPress, wp-content, wp-includes, wp-admin, login URL, plugins, themes etc. Block the defaults for being still accessible. No files and data are changed on your server.
|
360 |
|
361 |
== Changelog ==
|
362 |
|
363 |
+
= 1.7.3 =
|
364 |
+
* New functionality, block wp-json for everyone or non-logged-in users.
|
365 |
+
* Fix Emulate CMS documentation url.
|
366 |
+
* Removed Twitter share.
|
367 |
+
|
368 |
= 1.7.1 =
|
369 |
* New plugin feature: Emulate CMS
|
370 |
* Update PO language file
|
wp-hide.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wp-hide.com/
|
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
-
Version: 1.7.
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
+
Version: 1.7.3
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|