I now tried it with the newest version of the plugin but it still does not work.
This is the IP range with the exact notation I wanted to block:
“2a02:3037:60e:8982:51c0:8497:a9e:8222/48”
And this is the entry from the debug.log:
{"time":"2023-08-05 18:27:12","client_ip":"2a02:3037:60e:8982:51c0:8497:a9e:8222","country":"DE","is_proxy":"NO","proxy_type":"-","lookup_by":"??","cache":true,"uri":"https:\/\/www.my-website.de\/","message":"Access is allowed.","action":"ABORTED"}
Furthermore the error.log of my server is full of these entries:
[Sat Aug 05 20:32:18 2023] [php:error] [pid 11272] [client 93.234.99.99] [host www.my-website.de] PHP Fatal error: Uncaught ArithmeticError: Bit shift by negative number in /is/htdocs/wp999_M6844J1999/www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php:3715\nStack trace:\n#0 /is/htdocs/wp999_M6844J999/www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php(3527): IP2LocationCountryBlocker-]cidr_match(1575628851, '2a02:3037:60e:8...')\n#1 /is/htdocs/wp13911663_M6844J1999/www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php(2136): IP2LocationCountryBlocker-]is_in_list('93.234.99.99', 'frontend_ip_bla...')\n#2 /is/htdocs/wp999_M6844J1999/www/wp-includes/class-wp-hook.php(308): IP2LocationCountryBlocker-]check_block('')\n#3 /is/htdocs/wp999_M6844J1999/www/wp-includes/class-wp-hook.php(332): WP_Hook-]apply_filters(NULL, Array)\n#4 /is/htdocs/wp13911999_M6844J1999/www/wp-includes/plugin.php(517): WP_Hook-]do_action(Array)\n#5 /is/htdocs/wp13911999_M6844J1999/www/wp-settings.php(623): do_action('init')\n#6 /is/htdocs/wp999_M6844J1999/www/wp-config.php(122): require_once('/is/htdocs/wp99...')\n#7 /is/htdocs/wp999_M6844J1999/www/wp-load.php(50): require_once('/is/htdocs/wp99...')\n#8 /is/htdocs/wp999_M6844J1999/www/wp-blog-header.php(13): require_once('/is/htdocs/wp99...')\n#9 /is/htdocs/wp999_M6844J1999/www/index.php(17): require('/is/htdocs/wp13...')\n#10 {main}\n thrown in /is/htdocs/wp999_M6844J1999/www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 3715
(I needed to replace some numbers in the last log for data protection)
This time it seemed to work when I wanted to block a single IPv6 adress but the range is not working.
-
This reply was modified 1 year, 3 months ago by sabine99uber.