Changeset 3394163
- Timestamp:
- 11/12/2025 09:17:29 AM (5 months ago)
- Location:
- underminer/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
includes/class-iprangeconsolidator.php (modified) (1 diff)
-
underminer.php (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
underminer/trunk/README.md
r3385045 r3394163 1 1 === Underminer === 2 2 Author: tellyworth 3 Stable Tag: 1.0. 13 Stable Tag: 1.0.2 4 4 Tested Up To: 6.8 5 5 License: GPLv2 or later … … 99 99 == Changelog == 100 100 101 = 1.0.0 = 102 * Initial public release. 101 = 1.0.2 = 102 * Fix handling of WordPress self-requests. 103 * Refactor IP calculation code. 104 * Consolidate IP ranges to reduce size of crawler IP data. 103 105 104 106 = 1.0.1 = 105 107 * Improved robots.txt rules. 108 109 = 1.0.0 = 110 * Initial public release. -
underminer/trunk/includes/class-iprangeconsolidator.php
r3394149 r3394163 256 256 $end = $idx; 257 257 } else { 258 // Align to block boundary: for prefix P, block size is 2^(64-P) 259 // Alignment mask = ~(block_size - 1), limited to 16 bits 260 $block_size = 1 << ( 64 - (int) $entry[1] ); 261 $align_mask = ~( $block_size - 1 ) & 0xFFFF; 262 $start = $idx & $align_mask; 263 $end = $start + $block_size - 1; 258 $start = $idx & ~1; 259 $end = $start + ( 1 << ( 64 - (int) $entry[1] ) ) - 1; 264 260 if ( $end < $start ) { 265 261 $end = $start; -
underminer/trunk/underminer.php
r3394149 r3394163 4 4 * Plugin URI: https://github.com/tellyworth/underminer 5 5 * Description: Detects unwanted bots and subtly alters page content to render it incorrect and unusable. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Requires at least: 6.4 8 8 * Author: tellyworth … … 25 25 // If not defined (running from source), use current timestamp 26 26 if ( ! defined( 'UNDERMINER_BUILD_TIME' ) ) { 27 define( 'UNDERMINER_BUILD_TIME', 17629 21122);27 define( 'UNDERMINER_BUILD_TIME', 1762938507 ); 28 28 } 29 29 -
underminer/trunk/vendor/composer/installed.php
r3394149 r3394163 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 39fc6695033f05ace1f23570f84f70d3834b4b0b',6 'reference' => '0a3491734fc150bd59080d474178f6eaa3ca199b', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' 39fc6695033f05ace1f23570f84f70d3834b4b0b',25 'reference' => '0a3491734fc150bd59080d474178f6eaa3ca199b', 26 26 'type' => 'project', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.