Title: guidesify's Replies | WordPress.org

---

# guidesify

  [  ](https://wordpress.org/support/users/guidesify/)

 *   [Profile](https://wordpress.org/support/users/guidesify/)
 *   [Topics Started](https://wordpress.org/support/users/guidesify/topics/)
 *   [Replies Created](https://wordpress.org/support/users/guidesify/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/guidesify/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/guidesify/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/guidesify/engagements/)
 *   [Favorites](https://wordpress.org/support/users/guidesify/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall] Login Protection Captcha Does Not Work](https://wordpress.org/support/topic/login-protection-captcha-does-not-work/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/login-protection-captcha-does-not-work/#post-18660087)
 * I managed to diagnose further. The problem is actually in my .htninja (which 
   has not changed for years)
 *     ```wp-block-code
       function ip_in_subnet($ip, $subnet) {    if (strpos($subnet, '/') === false) {        return $ip === $subnet;    }        list($subnet, $bits) = explode('/', $subnet);    $ip_bin = inet_pton($ip);    $subnet_bin = inet_pton($subnet);        if ($ip_bin === false || $subnet_bin === false) {        return false;    }        $mask = ~((1 << (128 - $bits)) - 1);    return (unpack('J', $ip_bin)[1] & $mask) === (unpack('J', $subnet_bin)[1] & $mask);}
       ```
   
 * I then use this to match my server IPs to prevent my group of servers from being
   blocked.
 * I have changed it to:
 *     ```wp-block-code
       function ip_in_subnet($ip, $subnet) {    if (strpos($subnet, '/') === false) {        return $ip === $subnet;    }    list($subnet, $bits) = explode('/', $subnet);    $ip_bin     = inet_pton($ip);    $subnet_bin = inet_pton($subnet);    if ($ip_bin === false || $subnet_bin === false) {        return false;    }    $bytes = (int) floor($bits / 8);    $remainder = $bits % 8;    // Compare full bytes    if (substr($ip_bin, 0, $bytes) !== substr($subnet_bin, 0, $bytes)) {        return false;    }    if ($remainder) {        $mask = chr((0xFF << (8 - $remainder)) & 0xFF);        return (ord($ip_bin[$bytes]) & ord($mask)) === (ord($subnet_bin[$bytes]) & ord($mask));    }    return true;}
       ```
   
    -  This reply was modified 9 months, 1 week ago by [guidesify](https://wordpress.org/support/users/guidesify/).
    -  This reply was modified 9 months, 1 week ago by [guidesify](https://wordpress.org/support/users/guidesify/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Index WP MySQL For Speed] Does this plugin make use of partitioning?](https://wordpress.org/support/topic/does-this-plugin-make-use-of-partitioning/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/does-this-plugin-make-use-of-partitioning/#post-16732143)
 * I see, thank you very much for the sharing!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Unable to request Domain Key Error 503](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/#post-15989648)
 * Yep, turned Cloudflare back on. As long as I don’t refresh the domain key again…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Unable to request Domain Key Error 503](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/#post-15985847)
 * Hey, just to update. It took some time but refreshing once more worked in the
   end for the subdomain.
 * But as there wasn’t SSL installed on the server, I had to generate one in place
   of Cloudflare’s temporarily.
    -  This reply was modified 3 years, 10 months ago by [guidesify](https://wordpress.org/support/users/guidesify/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Unable to request Domain Key Error 503](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/#post-15985814)
 * Thanks, seems like I had to do a few extra steps:
    – Turn off DDOS protection(
   essentially off) – Disable page caching on plugin Super Page Cache for Cloudflare–
   Turn off Bot Fight Mode – And to make nothing goes through Cloudflare, I paused
   it for the site
 * However, can I enable all of them again now that I have a domain key?
 * The domain key refresh is still failing on a subdomain opinion.guidesify.com (
   hosted on a different server), I have added it under domain alias but nothing
   is happening.
 * Appreciate the help!
    -  This reply was modified 3 years, 10 months ago by [guidesify](https://wordpress.org/support/users/guidesify/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Unable to request Domain Key Error 503](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/#post-15985759)
 * Thanks for your reply, I have created a list and a firewall rule to approve all
   the IPs in the list on cloudflare. I also tried turning on development mode, 
   turning off proxy (orange cloud icon) and that doesn’t work either. Any other
   ideas?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Unable to request Domain Key Error 503](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-request-domain-key-error-503/#post-15984375)
 * Update: I have uninstalled all security plugins as well. Restarted server too.
   Still the same outcome.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Link Fixer] It’s really quite good](https://wordpress.org/support/topic/its-really-quite-good/)
 *  Thread Starter [guidesify](https://wordpress.org/support/users/guidesify/)
 * (@guidesify)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/its-really-quite-good/#post-12880125)
 * How can I see the list of 404s caught?

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