Plugin Directory

Changeset 3373294


Ignore:
Timestamp:
10/05/2025 11:34:28 PM (6 months ago)
Author:
iridiumintel
Message:

Update trunk for version 2.0.6

Location:
bad-ip-wp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bad-ip-wp/trunk/README.txt

    r3359487 r3373294  
    44Requires at least: 3.0.1
    55Tested up to: 6.8.2
    6 Stable tag: 2.0.6
     6Stable tag: 2.0.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6363
    6464== Changelog ==
     65
     66= 2.0.7 =
     67* Minor updates
    6568
    6669= 2.0.6 =
  • bad-ip-wp/trunk/assets/js/bad-ip-admin.js

    r3353501 r3373294  
    1717
    1818function ipCheck(bad_ip) {
    19     window.open('https://bad-ip.iridiumintel.com/?ip=' + bad_ip, '_blank');
     19    window.open('https://bad-ip.iridiumintel.com/ip/' + bad_ip, '_blank');
    2020}
    2121
  • bad-ip-wp/trunk/bad-ip-wp.php

    r3359487 r3373294  
    55 * Description:       Bad IP WP is a lightweight, high-performance WordPress firewall plugin designed to block malicious actors in real time. Includes central server sync, TOR exit node filtering, brute-force protection, and live dashboard control. Built for agencies, sysadmins, and paranoid devs.
    66 *                    Centralized logging and real-time firewall control with dashboard integration.
    7  * Version:           2.0.6
     7 * Version:           2.0.7
    88 * Author:            Iridium Intelligence
    99 * Author URI:        https://iridiumintel.com
     
    2020}
    2121
    22 define('BAD_IP_VERSION', '2.0.6');
     22define('BAD_IP_VERSION', '2.0.7');
    2323define('BAD_IP_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2424define('BAD_IP_PLUGIN_URL', plugin_dir_url(__FILE__));
  • bad-ip-wp/trunk/includes/BadIPAdmin.php

    r3359487 r3373294  
    413413    {
    414414        // Optional: log successful login
    415         $this->report_incident('login_success', $user_login);
     415        // clear local enforcements if any
    416416    }
    417417
     
    450450                return; // whitelisted query, skip
    451451            }
    452 
    453             /*
    454             $payload = [
    455                 'uid'      => $settings->token,
    456                 'ip'       => $user_ip,
    457                 'origin'   => $origin,
    458                 'reporter' => $reporter,
    459                 'action'   => $action,
    460             ];
    461             $cache_key = 'bad_ip_check_' . md5($user_ip);
    462             $cached_rsp = get_transient($cache_key);
    463             if (!$cached_rsp) {
    464                 $response = wp_remote_post(BAD_IP_API_URL . 'bad_ip/check/?uid=' . $settings->token, [
    465                     'headers' => ['Content-Type' => 'application/json'],
    466                     'body'    => wp_json_encode($payload),
    467                     'timeout' => 5
    468                 ]);
    469                 $rsp = json_decode(wp_remote_retrieve_body($response));
    470                 if (!is_object($rsp)) {
    471                     return;
    472                 }
    473                 // Cache for 10 minutes (customize as needed)
    474                 set_transient($cache_key, $rsp, 10 * MINUTE_IN_SECONDS);
    475             } else {
    476                 $rsp = $cached_rsp;
    477             }
    478             */
    479452
    480453            // Log to local DB
Note: See TracChangeset for help on using the changeset viewer.