Title: Undefined variable $block_reason_code
Last modified: January 6, 2026

---

# Undefined variable $block_reason_code

 *  Resolved [martje65](https://wordpress.org/support/users/martje65/)
 * (@martje65)
 * [5 months ago](https://wordpress.org/support/topic/undefined-variable-block_reason_code/)
 * Sins today we see the next warning in our log files.
 * Backend log: PHP Warning: Undefined variable $block_reason_code in public_html/
   wp-content/plugins/advanced-ip-blocker/includes/class-advaipbl-main.php on line
   3621\n

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [IniLerm](https://wordpress.org/support/users/inilerm/)
 * (@inilerm)
 * [5 months ago](https://wordpress.org/support/topic/undefined-variable-block_reason_code/#post-18775879)
 * Hello [@martje65](https://wordpress.org/support/users/martje65/),
 * Thank you for reporting this. We have identified the issue; it is a minor PHP
   Warning caused by a variable ($block_reason_code) being accessed before initialization
   in the logging function.
 * It does not affect the security or functionality of the plugin, but we understand
   it can clutter your logs.
 * We have already patched this in our development branch, and the fix will be included
   in the upcoming version 8.6.10, which we plan to release very soon (today).
 * In the meantime, you can safely ignore this warning.
 * Best regards, The Advanced IP Blocker Team
 *  Thread Starter [martje65](https://wordpress.org/support/users/martje65/)
 * (@martje65)
 * [5 months ago](https://wordpress.org/support/topic/undefined-variable-block_reason_code/#post-18775893)
 * Thanks for the update [@inilerm](https://wordpress.org/support/users/inilerm/)
 *  Plugin Author [IniLerm](https://wordpress.org/support/users/inilerm/)
 * (@inilerm)
 * [5 months ago](https://wordpress.org/support/topic/undefined-variable-block_reason_code/#post-18775940)
 * Version 8.6.10 is now available and fixed.
 * Thank you.
 *  Plugin Author [IniLerm](https://wordpress.org/support/users/inilerm/)
 * (@inilerm)
 * [5 months ago](https://wordpress.org/support/topic/undefined-variable-block_reason_code/#post-18776146)
 * Regarding your comment in the support post [https://wordpress.org/support/topic/how-to-detect-and-report-ip-addresses/](https://wordpress.org/support/topic/how-to-detect-and-report-ip-addresses/)
 * Hi [@martje65](https://wordpress.org/support/users/martje65/),
 * Thank you for sharing that ASN!
 * **A word of caution regarding Cloud ASNs (Google Cloud, AWS, etc.):**
   You are
   correct that AS396982 belongs to Google Cloud and is used by services like Mollie.
   However, please be careful when whitelisting it globally.
 * Since Google Cloud is a public hosting provider, **anyone** can rent a server
   there, including bad actors running bots or scrapers. If you whitelist the entire
   ASN AS396982, you are allowing Mollie, but also potentially allowing malicious
   traffic hosted on Google’s infrastructure to bypass your firewall rules.
 * **Better approach for Payment Providers:**
   For sensitive services hosted on public
   clouds (like Mollie on GCP), it is safer to whitelist their **specific IP ranges**(
   if they provide them) in the “Whitelist” tab, rather than whitelisting the entire
   ASN.
 * If Mollie does not provide specific IPs and you must whitelist the ASN, just 
   be aware that you are slightly lowering your shields against other traffic coming
   from Google Cloud.
 * Best regards,
 * The Advanced IP Blocker Team

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-block_reason_code%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/advanced-ip-blocker/assets/icon-256x256.png?rev=3320247)
 * [Advanced IP Blocker](https://wordpress.org/plugins/advanced-ip-blocker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ip-blocker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ip-blocker/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ip-blocker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ip-blocker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ip-blocker/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [IniLerm](https://wordpress.org/support/users/inilerm/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/undefined-variable-block_reason_code/#post-18776146)
 * Status: resolved