Changeset 2301255
- Timestamp:
- 05/08/2020 08:40:15 PM (6 years ago)
- Location:
- bad-ip-wp
- Files:
-
- 1 deleted
- 4 edited
- 13 copied
-
tags/1.0.11 (copied) (copied from bad-ip-wp/trunk)
-
tags/1.0.11/README.txt (copied) (copied from bad-ip-wp/trunk/README.txt) (2 diffs)
-
tags/1.0.11/admin/class-bad_ip_wp-admin.php (copied) (copied from bad-ip-wp/trunk/admin/class-bad_ip_wp-admin.php) (1 diff)
-
tags/1.0.11/admin/js/bad_ip_wp-admin.js (copied) (copied from bad-ip-wp/trunk/admin/js/bad_ip_wp-admin.js)
-
tags/1.0.11/admin/partials/bad_ip_404_hook.php (copied) (copied from bad-ip-wp/trunk/admin/partials/bad_ip_404_hook.php)
-
tags/1.0.11/admin/partials/bad_ip_admin_dashboard_page.php (copied) (copied from bad-ip-wp/trunk/admin/partials/bad_ip_admin_dashboard_page.php)
-
tags/1.0.11/admin/partials/bad_ip_admin_menu_actions.php (copied) (copied from bad-ip-wp/trunk/admin/partials/bad_ip_admin_menu_actions.php)
-
tags/1.0.11/admin/partials/bad_ip_admin_settings_page.php (copied) (copied from bad-ip-wp/trunk/admin/partials/bad_ip_admin_settings_page.php)
-
tags/1.0.11/admin/partials/bad_ip_head_hook.php (copied) (copied from bad-ip-wp/trunk/admin/partials/bad_ip_head_hook.php) (3 diffs)
-
tags/1.0.11/admin/partials/bad_ip_login_hook.php (copied) (copied from bad-ip-wp/trunk/admin/partials/bad_ip_login_hook.php)
-
tags/1.0.11/admin/partials/class-bad_ip_actions.php (copied) (copied from bad-ip-wp/trunk/admin/partials/class-bad_ip_actions.php)
-
tags/1.0.11/admin/partials/views (copied) (copied from bad-ip-wp/trunk/admin/partials/views)
-
tags/1.0.11/admin/views (deleted)
-
tags/1.0.11/bad_ip_wp.php (copied) (copied from bad-ip-wp/trunk/bad_ip_wp.php) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-bad_ip_wp-admin.php (modified) (1 diff)
-
trunk/admin/partials/bad_ip_head_hook.php (modified) (3 diffs)
-
trunk/bad_ip_wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bad-ip-wp/tags/1.0.11/README.txt
r2298653 r2301255 4 4 Requires at least: 3.0.1 5 5 Tested up to: 5.4.1 6 Stable tag: 1.0.1 06 Stable tag: 1.0.11 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 54 54 == Changelog == 55 55 56 = 1.0.11 = 57 * Regular refactoring and optimisation 58 56 59 = 1.0.10 = 57 60 * Server migration -
bad-ip-wp/tags/1.0.11/admin/class-bad_ip_wp-admin.php
r2247105 r2301255 115 115 public function hook_bad_ip_head() { 116 116 117 function Redirect($url , $permanent = false)117 function Redirect($url = BAD_IP_WP_JAIL_URL, $permanent = false) 118 118 { 119 header('Location: ' . $url, true, $permanent ? 301 : 302); 120 exit(); 119 if(headers_sent()) 120 { 121 echo "<script>window.open('".$url."','_self');</script>"; 122 } 123 else{ 124 exit( wp_redirect($url)); 125 } 121 126 } 122 127 -
bad-ip-wp/tags/1.0.11/admin/partials/bad_ip_head_hook.php
r2247105 r2301255 19 19 if (self::checkIPInBlacklist($user_ip) && !self::checkIPInWhiteList($user_ip)) { 20 20 $url = BAD_IP_WP_JAIL_URL; 21 echo "<script>window.open('".$url."','_self');</script>"; 22 // Redirect($url); // todo buffer output first 21 // echo "<script>window.open('".$url."','_self');</script>"; 22 Redirect($url); // todo buffer output first 23 // exit( wp_redirect($url)); 23 24 } 24 25 // } … … 63 64 64 65 $url = BAD_IP_WP_JAIL_URL; 65 //Redirect($url); // todo buffer output first66 echo "<script>window.open('".$url."','_self');</script>";66 Redirect($url); // todo buffer output first 67 // echo "<script>window.open('".$url."','_self');</script>"; 67 68 68 69 … … 88 89 89 90 $url = BAD_IP_WP_JAIL_URL; 90 //Redirect($url); // todo buffer output first91 echo "<script>window.open('".$url."','_self');</script>";91 Redirect($url); // todo buffer output first 92 // echo "<script>window.open('".$url."','_self');</script>"; 92 93 93 94 } -
bad-ip-wp/tags/1.0.11/bad_ip_wp.php
r2298653 r2301255 11 11 * Plugin URI: https://bad-ip.iridiumintel.com 12 12 * Description: Protecting from malicious IP addresses visiting and trying to exploit your website with addition to block Tor endpoints 13 * Version: 1.0.1 013 * Version: 1.0.11 14 14 * Author: Iridium Intelligence 15 15 * Author URI: https://iridiumintel.com … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'BAD_IP_WP_VERSION', '1.0.1 0' );37 define( 'BAD_IP_WP_VERSION', '1.0.11' ); 38 38 define( 'BAD_IP_WP_NAME', trim(dirname(plugin_basename(__FILE__)), '/')); 39 39 define( 'BAD_IP_WP_URL', plugins_url( basename( plugin_dir_path(__FILE__) ), basename( __FILE__ ) )); -
bad-ip-wp/trunk/README.txt
r2298653 r2301255 4 4 Requires at least: 3.0.1 5 5 Tested up to: 5.4.1 6 Stable tag: 1.0.1 06 Stable tag: 1.0.11 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 54 54 == Changelog == 55 55 56 = 1.0.11 = 57 * Regular refactoring and optimisation 58 56 59 = 1.0.10 = 57 60 * Server migration -
bad-ip-wp/trunk/admin/class-bad_ip_wp-admin.php
r2247105 r2301255 115 115 public function hook_bad_ip_head() { 116 116 117 function Redirect($url , $permanent = false)117 function Redirect($url = BAD_IP_WP_JAIL_URL, $permanent = false) 118 118 { 119 header('Location: ' . $url, true, $permanent ? 301 : 302); 120 exit(); 119 if(headers_sent()) 120 { 121 echo "<script>window.open('".$url."','_self');</script>"; 122 } 123 else{ 124 exit( wp_redirect($url)); 125 } 121 126 } 122 127 -
bad-ip-wp/trunk/admin/partials/bad_ip_head_hook.php
r2247105 r2301255 19 19 if (self::checkIPInBlacklist($user_ip) && !self::checkIPInWhiteList($user_ip)) { 20 20 $url = BAD_IP_WP_JAIL_URL; 21 echo "<script>window.open('".$url."','_self');</script>"; 22 // Redirect($url); // todo buffer output first 21 // echo "<script>window.open('".$url."','_self');</script>"; 22 Redirect($url); // todo buffer output first 23 // exit( wp_redirect($url)); 23 24 } 24 25 // } … … 63 64 64 65 $url = BAD_IP_WP_JAIL_URL; 65 //Redirect($url); // todo buffer output first66 echo "<script>window.open('".$url."','_self');</script>";66 Redirect($url); // todo buffer output first 67 // echo "<script>window.open('".$url."','_self');</script>"; 67 68 68 69 … … 88 89 89 90 $url = BAD_IP_WP_JAIL_URL; 90 //Redirect($url); // todo buffer output first91 echo "<script>window.open('".$url."','_self');</script>";91 Redirect($url); // todo buffer output first 92 // echo "<script>window.open('".$url."','_self');</script>"; 92 93 93 94 } -
bad-ip-wp/trunk/bad_ip_wp.php
r2298653 r2301255 11 11 * Plugin URI: https://bad-ip.iridiumintel.com 12 12 * Description: Protecting from malicious IP addresses visiting and trying to exploit your website with addition to block Tor endpoints 13 * Version: 1.0.1 013 * Version: 1.0.11 14 14 * Author: Iridium Intelligence 15 15 * Author URI: https://iridiumintel.com … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'BAD_IP_WP_VERSION', '1.0.1 0' );37 define( 'BAD_IP_WP_VERSION', '1.0.11' ); 38 38 define( 'BAD_IP_WP_NAME', trim(dirname(plugin_basename(__FILE__)), '/')); 39 39 define( 'BAD_IP_WP_URL', plugins_url( basename( plugin_dir_path(__FILE__) ), basename( __FILE__ ) ));
Note: See TracChangeset
for help on using the changeset viewer.