Changeset 3762754
- Timestamp:
- 10/24/2026 05:13:14 AM (10 hours ago)
- Location:
- botbanish-firewall-client/trunk
- Files:
-
- 10 edited
-
BotBanish.php (modified) (2 diffs)
-
bot/Analytics/BotBanishDownload.php (modified) (6 diffs)
-
bot/Include/BotBanish_Install.php (modified) (6 diffs)
-
bot/Subs/BotBanish_FileUpload.php (modified) (2 diffs)
-
bot/Subs/BotBanish_Subs_ClientCountry.php (modified) (2 diffs)
-
bot/Subs/BotBanish_Subs_File.php (modified) (2 diffs)
-
bot/Subs/BotBanish_Subs_Log.php (modified) (2 diffs)
-
bot/Subs/BotBanish_Subs_Maintenance.php (modified) (4 diffs)
-
bot/Subs/BotBanish_Subs_UserSpamDenial.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
botbanish-firewall-client/trunk/BotBanish.php
r3648298 r3762754 4 4 Plugin URI: https://botbanish.com 5 5 description: A firewall to detect and eliminate bots, users and spiders that are attempting to do harm to your system performing brute force attacks, attempt to create accounts or probing for vulerabilities on your site. We Don't Report Abuse - WE STOP IT!!! 6 Version: 9.0.0 56 Version: 9.0.06 7 7 Tested up to: 7.0.4 8 8 Author: Randem Systems … … 354 354 // Check this user after they log on 355 355 356 // $user_info = array('name' => $user_obj->data->name, 357 $user_info = array('name' => $username, 358 'username' => $user_obj->data->user_login, 359 'display_name' => $user_obj->data->display_name, 360 'first' => $user_obj->data->first_name, 361 'last' => $user_obj->data->last_name, 362 'email' => $user_obj->data->user_email, 356 $user_info = array('name' => isset($user_obj->data->name) ? $user_obj->data->name : '', 357 'username' => isset($user_obj->data->user_login) ? $user_obj->data->user_login : '', 358 'display_name' => isset($user_obj->data->display_name) ? $user_obj->data->display_name : '', 359 'first' => isset($user_obj->data->first_name) ? $user_obj->data->first_name : '', 360 'last' => isset($user_obj->data->last_name) ? $user_obj->data->last_name : '', 361 'email' => isset($user_obj->data->user_email) ? $user_obj->data->user_email : '', 363 362 'address' => '', 364 363 'phone' => '', -
botbanish-firewall-client/trunk/bot/Analytics/BotBanishDownload.php
r3588666 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 7.1.063 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish File Download Protection Script 6 // Date: 0 4/12/20266 // Date: 08/29/2026 7 7 // 8 8 // Server Usage: https://botbanish.com/BotBanish/bot_vx.x.xx/Analytics/BotBanishDownload.php?filename=YOURFILENAME&user_id=xxxxx&system=SYSTEM&area=FILEFOLDER … … 24 24 $botbanish_system = BotBanishCheckSystem(); // Will not return if system not found 25 25 26 BotBanishTraceIt('BotBanishDownload - Start', $botbanish_system, true, false, false);26 // BotBanishTraceIt('BotBanishDownload - Start', $botbanish_system, true, false, false); 27 27 28 28 switch ($botbanish_system['system']) { … … 59 59 $area = isset($_GET['area']) ? $_GET['area'] : $BotBanishSettings['BOTBANISH_USER_HOST']; 60 60 61 BotBanishTraceIt('$area - Start', $area , true, false, false);61 // BotBanishTraceIt('$area - Start', $area , true, false, false); 62 62 63 63 $path = '/data/' . $area . '/'; … … 82 82 // Check for the existance of the file asked to download 83 83 84 BotBanishTraceIt('file_exists - Start', $file_location . $file_name, true, false, false);84 // BotBanishTraceIt('file_exists - Start', $file_location . $file_name, true, false, false); 85 85 86 86 if (!file_exists($file_location . $file_name)) … … 126 126 //================================================================== 127 127 128 BotBanishTraceIt('BotBanishCheckForHacker - Start', $file_name, true, false, false);128 // BotBanishTraceIt('BotBanishCheckForHacker - Start', $file_name, true, false, false); 129 129 130 130 $download_types = array( … … 160 160 } 161 161 162 BotBanishTraceIt('BotBanishCheckForHacker - End', $file_name, true, false, false);162 // BotBanishTraceIt('BotBanishCheckForHacker - End', $file_name, true, false, false); 163 163 164 164 if (!$found) -
botbanish-firewall-client/trunk/bot/Include/BotBanish_Install.php
r3588666 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 9.0.0 03 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish Website / WordPress / OpenCart Installation Configuration 6 // Date: 0 6/21/20266 // Date: 08/23/2026 7 7 // Usage: http://userdomain.com/BotBanish/bot_v4.x.xx/Server/Install/install.php 8 8 // Usage: http://userdomain.com/BotBanish/bot/Client/Install/install.php … … 190 190 'BOTBANISH_WEBMASTER_EMAIL' => $webmaster_email, 191 191 'BOTBANISH_TIMEZONE' => $modSettings['default_timezone'], 192 'BOTBANISH_POST_CODE' => 0,193 'BOTBANISH_SEND_EMAIL_ALERTS' => 0,194 'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,195 192 'BOTBANISH_UPDATE_HTML_FOLDER' => $BotBanishSettings['BOTBANISH_ROOT_FOLDER'], 196 'BOTBANISH_UPDATE_HTACCESS' => 1,197 193 ); 198 194 … … 218 214 'BOTBANISH_WEBMASTER_EMAIL' => 'support@' . $_SERVER['SERVER_NAME'], 219 215 'BOTBANISH_TIMEZONE' => isset($_SERVER['TZ']) ? $_SERVER['TZ'] : date_default_timezone_get(), 220 'BOTBANISH_POST_CODE' => 0,221 'BOTBANISH_SEND_EMAIL_ALERTS' => 1,222 'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,223 216 'BOTBANISH_UPDATE_HTML_FOLDER' => $BotBanishSettings['BOTBANISH_ROOT_FOLDER'], 224 'BOTBANISH_UPDATE_HTACCESS' => 1,225 217 ); 226 218 … … 242 234 'BOTBANISH_WEBMASTER_EMAIL' => 'support@' . $_SERVER['SERVER_NAME'], 243 235 'BOTBANISH_TIMEZONE' => isset($_SERVER['TZ']) ? $_SERVER['TZ'] : date_default_timezone_get(), 244 'BOTBANISH_POST_CODE' => 0,245 'BOTBANISH_SEND_EMAIL_ALERTS' => 1,246 'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,247 236 'BOTBANISH_UPDATE_HTML_FOLDER' => $BotBanishSettings['BOTBANISH_ROOT_FOLDER'], 248 'BOTBANISH_UPDATE_HTACCESS' => 1,249 237 ); 250 238 } … … 252 240 } 253 241 254 $screenData['BOTBANISH_DB_PREFIX'] = ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server') ? 'bbs_' : 'bbc_'; 255 242 // $screenData['BOTBANISH_DB_PREFIX'] = ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server') ? 'bbs_' : 'bbc_'; 243 244 $data = array( 245 'BOTBANISH_POST_CODE' => 0, 246 'BOTBANISH_SEND_EMAIL_ALERTS' => 0, 247 'BOTBANISH_UPDATE_HTML_ACTIVE' => 0, 248 'BOTBANISH_UPDATE_HTACCESS' => 1, 249 'BOTBANISH_DB_PREFIX' => ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server') ? 'bbs_' : 'bbc_', 250 ); 251 252 $screenData = array_merge($screenData, $data); 253 256 254 foreach ($screenData as $key => $value) { 257 255 … … 565 563 </tr> 566 564 <tr> 567 <td align="right">' . $BotBanishText['Timezone'] . ': </td><td>' . timezone_select_droplist('BOTBANISH_TIMEZONE', '', $screenData['BOTBANISH_TIMEZONE'], 50) . '</td>565 <td align="right">' . $BotBanishText['Timezone'] . ': </td><td>' . timezone_select_droplist('BOTBANISH_TIMEZONE', '', $screenData['BOTBANISH_TIMEZONE'], 80) . '</td> 568 566 </tr> 569 567 <tr> -
botbanish-firewall-client/trunk/bot/Subs/BotBanish_FileUpload.php
r3620033 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 9.0.0 33 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish Autoload Functions 6 // Date: 0 7/22/20266 // Date: 09/29/2026 7 7 // Usage: Upload a file to the server 8 8 // … … 68 68 69 69 if (file_exists($file)) { 70 71 unlink($file); 70 BotBanishDeleteFile($file); 72 71 $flag = $flag || $x; 73 72 } -
botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_ClientCountry.php
r3620033 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 9.0.0 33 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish Server Country Subroutines 6 // Date: 0 7/22/20266 // Date: 09/09/2026 7 7 // Usage: 8 8 // … … 129 129 } 130 130 } 131 131 132 if (!isset($geoInfo['country_info'])) { 133 134 $country_info = array(); 135 $country_info['country'] = 'Unknown'; 136 $country_info['country_code'] = ''; 137 $geoInfo = array('geo_data' => array(), 'country_info' => $country_info); 138 } 139 132 140 return $geoInfo; 133 141 } -
botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_File.php
r3611311 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 8.0.003 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish Common File Subroutines 6 // Date: 0 6/19/20266 // Date: 09/11/2026 7 7 // Usage: 8 8 // … … 67 67 else 68 68 $bytes = file_put_contents($filename, $str); 69 } 70 71 function BotBanishDeleteFile($filename) { 72 73 BotBanishRestoreErrorHandler(); 74 75 try { 76 77 if (file_exists($filename)) 78 unlink($filename); 79 80 } catch (Exception $e) { 81 82 $x = 1; 83 }; 84 85 BotBanishSetErrorHandler(); 69 86 } 70 87 -
botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_Log.php
r3599912 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 8.0.003 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish Log file Subroutines 6 // Date: 0 5/13/20266 // Date: 08/25/2026 7 7 // Usage: 8 8 // … … 493 493 $row['http_referer'] = BotBanishEliminateData($row['http_referer']); 494 494 495 $BotBanishSession = BotBanishGetSession(); 495 496 $country_info = $BotBanishSession->getSessionKey('countryinfo'); 496 497 $geo_data = $BotBanishSession->getSessionKey('geodata'); -
botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_Maintenance.php
r3588666 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 8.0.003 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish Server Database Maintenance Sub-routines 6 // Date: 0 5/13/20266 // Date: 09/11/2026 7 7 // Usage: BotBanish_Subs_Maintenance.php 8 8 // … … 13 13 14 14 $self = basename($_SERVER['PHP_SELF']); 15 define('BOTBANISH_DIR', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . ' ../'));16 $filename = BOTBANISH_DIR . ' /Include/BotBanish_PreIncludes.php';15 define('BOTBANISH_DIR', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../') . '/'); 16 $filename = BOTBANISH_DIR . 'Include/BotBanish_PreIncludes.php'; 17 17 include $filename; 18 18 … … 42 42 43 43 foreach ($files as $file) 44 unlink($file);44 BotBanishDeleteFile($file); 45 45 } 46 46 … … 227 227 $truncate_days = $date - ($day * $BotBanishSettings['BOTBANISH_RETAIN_DAYS']); // Default 10 days 228 228 229 $BotBanishCache = new BotBanishCache; 229 230 $BotBanishCache->cleanCacheFolder($days); 230 231 } -
botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_UserSpamDenial.php
r3599912 r3762754 1 1 <?php 2 2 /////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // BotBanish 8.0.003 // BotBanish 9.0.06 4 4 // Randem Systems: https://randemsystems.support 5 5 // BotBanish User SPAM Denial 6 // Date: 0 4/30/20266 // Date: 09/06/2026 7 7 // 8 8 // Function: Deny fake users … … 22 22 function BotBanishValidateUser($ip, $args = array()) { 23 23 24 require $BotBanishSettings['BOTBANISH+SUBS_DIR'] . 'BotBanish_Subs_Logs.php'; 24 global $BotBanishSettings; 25 26 require $BotBanishSettings['BOTBANISH_SUBS_DIR'] . 'BotBanish_Subs_Log.php'; 25 27 26 28 $action = array('terminate' => false, 'error' => '', 'args' => $row); -
botbanish-firewall-client/trunk/readme.txt
r3648298 r3762754 4 4 Requires at least: 6.8 5 5 Tested up to: 7.0.4 6 Stable tag: 9.0.0 56 Stable tag: 9.0.06 7 7 Requires PHP: 8.2 8 8 Donate link: https://square.link/u/jy0LWKCQ
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)