Changeset 3337978
- Timestamp:
- 08/01/2025 06:39:27 PM (8 months ago)
- Location:
- honeypot-toolkit
- Files:
-
- 24 added
- 4 edited
-
tags/5.0.3 (added)
-
tags/5.0.3/css (added)
-
tags/5.0.3/css/admin.css (added)
-
tags/5.0.3/honeypot-toolkit.php (added)
-
tags/5.0.3/img (added)
-
tags/5.0.3/img/honeypot-icon.png (added)
-
tags/5.0.3/lib (added)
-
tags/5.0.3/lib/HT_Ajax.class.php (added)
-
tags/5.0.3/lib/HT_Template.class.php (added)
-
tags/5.0.3/lib/HoneypotToolkit.class.php (added)
-
tags/5.0.3/readme.txt (added)
-
tags/5.0.3/tpl (added)
-
tags/5.0.3/tpl/activityList.php (added)
-
tags/5.0.3/tpl/activity_list_page_js.php (added)
-
tags/5.0.3/tpl/allowlist.php (added)
-
tags/5.0.3/tpl/allowlist_page_js.php (added)
-
tags/5.0.3/tpl/blocklist.php (added)
-
tags/5.0.3/tpl/blocklist_page_js.php (added)
-
tags/5.0.3/tpl/common_js.php (added)
-
tags/5.0.3/tpl/settings.php (added)
-
tags/5.0.3/tpl/settings_page_js.php (added)
-
tags/5.0.3/tpl/single_settings.php (added)
-
tags/5.0.3/tpl/single_settings_page_js.php (added)
-
tags/5.0.3/uninstall.php (added)
-
trunk/honeypot-toolkit.php (modified) (1 diff)
-
trunk/lib/HoneypotToolkit.class.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
honeypot-toolkit/trunk/honeypot-toolkit.php
r3281111 r3337978 4 4 Plugin URI: https://www.sterup.com/wordpress-plugins/honeypot-toolkit/ 5 5 Description: Automates placement of Project Honeypot links. Blocks IP Addresses using Project Honeypot, Spamcop, SANS Internet Storm Center, bad logins, and 404s. 6 Version: 5.0. 26 Version: 5.0.3 7 7 Author: Jeff Sterup 8 8 Author URI: https://www.sterup.com -
honeypot-toolkit/trunk/lib/HoneypotToolkit.class.php
r3281107 r3337978 876 876 } 877 877 878 update_site_option('ht_plugin_version', "5.0. 2");878 update_site_option('ht_plugin_version', "5.0.3"); 879 879 } 880 880 881 881 function check_version() { 882 if (get_site_option('ht_plugin_version') != "5.0. 2") {882 if (get_site_option('ht_plugin_version') != "5.0.3") { 883 883 $this->activate(); 884 884 } … … 1079 1079 } 1080 1080 1081 if ($htUseIStorm == '1') { 1081 $iStormRetry = get_site_option('ht_istorm_retry', '0'); 1082 if ($htUseIStorm == '1' && $iStormRetry < time()) { 1082 1083 $iStormData = wp_remote_get('https://isc.sans.edu/api/ip/'.$remoteAddress.'?json', array('user-agent'=>'Wordpress/'.get_bloginfo( 'version' ).' Honeypot Toolkit/'.get_site_option('ht_plugin_version').'(contact: wpadmin@sterup.com); '.get_bloginfo( 'url' ))); 1083 1084 … … 1102 1103 1103 1104 } 1105 } else if (429 === wp_remote_retrieve_response_code($iStormData)) { 1106 $retryTime = wp_remote_retrieve_header($iStormData, 'Retry-After'); 1107 if (is_numeric($retryTime)) { 1108 update_site_option('ht_istorm_retry', time() + sanitize_text_field($retryTime)); 1109 } else { 1110 update_site_option('ht_istorm_retry', time() + 300); 1111 } 1104 1112 } 1105 1113 } -
honeypot-toolkit/trunk/readme.txt
r3281107 r3337978 4 4 Tags: honeypot, project honeypot, brute force protection, spam prevention, login monitor 5 5 Requires at least: 4.6.0 6 Tested up to: 6.8 7 Stable tag: 5.0. 26 Tested up to: 6.8.2 7 Stable tag: 5.0.3 8 8 License: GPLv2 9 9 10 This plugin allows you to automatically insert your Project Honeypot links into all of your pages and block IP addresses that are listed on the Http:BL list from Project Honeypot, the Spamcop blacklist, and the SANS Internet Storm Center API.10 Automatically insert Project Honeypot links into your pages and block IP addresses that are listed on various block lists you can choose from. 11 11 12 12 == Description == … … 38 38 39 39 == Changelog == 40 41 = 5.0.3 = 42 Added check for 429 response from sans and code to respect their retry time. 40 43 41 44 = 5.0.2 = … … 201 204 == Upgrade Notice == 202 205 203 = 5.0. 2=204 Fixing database error on activation for multisite installs.206 = 5.0.3 = 207 Added check for 429 response from sans and code to respect their retry time. -
honeypot-toolkit/trunk/uninstall.php
r3280722 r3337978 42 42 delete_site_option('ht_automatic_google_ranges'); 43 43 delete_site_option('ht_plugin_version'); 44 delete_site_option('ht_istorm_retry'); 44 45 45 46 function HT_delete_site_data() {
Note: See TracChangeset
for help on using the changeset viewer.