[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.8.8

No permission to download
Hi, what is the syntax to block an IP address range? I would like to create the firewall rule from the XF ACP. To replicate the rules in the message below. (i tried bu unsuccessfully) Thanks !

 
digitalpoint updated [DigitalPoint] App for Cloudflare® with a new update entry:

Ability to block AI crawlers/scrapers

  • Removed Brotli compression setting (it's now always on in Cloudflare)
  • Removed Minify settings (they have been deprecated and will be removed from Cloudflare soon)
  • Removed Server-side Exclude setting (it has been deprecated and will be removed from Cloudflare soon)
  • Added option to create Firewall Rule to block AI scrapers & crawlers
  • Updated Chart.js library to 4.4.3

Read the rest of this update entry...
 
So... About this:
Added option to create Firewall Rule to block AI scrapers & crawlers

Cloudflare now has a single toggle option related to this. But I am guessing you are creating a custom rule blocking specific user-agents and IPs? (I should probably just upgrade and check lol).

Alright. So it uses Cloudflare's own database of Verified AI Bots and Crawlers. I imagine it can be ignored if one has enabled their toggle to block AI crawlers. I wonder if Cloudflare makes this database public. Looks like it does here.
 
Last edited:
So... About this:


Cloudflare now has a single toggle option related to this. But I am guessing you are creating a custom rule blocking specific user-agents and IPs? (I should probably just upgrade and check lol).

Alright. So it uses Cloudflare's own database of Verified AI Bots and Crawlers. I imagine it can be ignored if one has enabled their toggle to block AI crawlers. I wonder if Cloudflare makes this database public. Looks like it does here.
Internally it does it the same way as Cloudflare's toggle. The toggle in their dashboard isn't really a toggle, instead it's actually creating a custom firewall rule. If you edit the expression of that created firewall rule, the toggle will show as off, if you manually create a firewall rule with the right expression, the toggle will show as on even if you never toggled it on.

It's a bit weird from a UI standpoint in their dashboard since it's not actually a toggle, rather it's creating a firewall rule if you enable it and the toggle status simply reads all your existing firewall rules to see if one matches the expression needed.
 

Code:
Upgrading App for Cloudflare® from 1.8.4.1 to 1.8.5...
Confirm upgrade? (y/n)y
Upgrading
Complete.

Importing add-on data
Importing... Add-on data (Admin navigation)
Importing... Add-on data (Admin permission)
Importing... Add-on data (Class extensions)
Importing... Add-on data (Code event listeners)
Importing... Add-on data (Content type fields)
Importing... Add-on data (Options)
Importing... Add-on data (Option groups)
Importing... Add-on data (Phrases)
Importing... Add-on data (Routes)

In Parser.php line 832:
                                       
  [ErrorException]                      
  [E_WARNING] Undefined variable $yyact
                                       

Exception trace:
  at src/XF/Template/Compiler/Parser.php:832
 
  [...]
 
 
  Running clean up tasks...

In Parser.php line 832:
                                       
  [ErrorException]                      
  [E_WARNING] Undefined variable $yyact
                                       

Exception trace:
  at src/XF/Template/Compiler/Parser.php:832

Running the upgrade a 2nd time, and it worked without error 🤷‍♂️
 
I got an error related to yyact thingy few days ago when upgrading to the latest rc. not sure if this addon has any connection to the issue.

 
Code:
Upgrading App for Cloudflare® from 1.8.4.1 to 1.8.5...
Confirm upgrade? (y/n)y
Upgrading
Complete.

Importing add-on data
Importing... Add-on data (Admin navigation)
Importing... Add-on data (Admin permission)
Importing... Add-on data (Class extensions)
Importing... Add-on data (Code event listeners)
Importing... Add-on data (Content type fields)
Importing... Add-on data (Options)
Importing... Add-on data (Option groups)
Importing... Add-on data (Phrases)
Importing... Add-on data (Routes)

In Parser.php line 832:
                                     
  [ErrorException]                    
  [E_WARNING] Undefined variable $yyact
                                     

Exception trace:
  at src/XF/Template/Compiler/Parser.php:832
 
  [...]
 
 
  Running clean up tasks...

In Parser.php line 832:
                                     
  [ErrorException]                    
  [E_WARNING] Undefined variable $yyact
                                     

Exception trace:
  at src/XF/Template/Compiler/Parser.php:832

Running the upgrade a 2nd time, and it worked without error 🤷‍♂️
Not sure... haven't seen it myself, but (probably) more importantly, the string yyact doesn't exist in this addon (only seeing it in XenForo's default Parser class). Could probably debug whatever it is in XF core if it was something I could actually reproduce, but haven't been able to yet.

Maybe the parser is trying to parse something malformed possibly (even if that were the case, it should probably fail gracefully though).
 
I am having issues with connected accounts with discord after cloudflare takes over. It's not connecting anymore, do you have any suggestions where to look?
 
Yeah, I've been using it for a few years now. I spent hours on it last night with no success, and today it started working again. I guess it was a discord issue. Please disregard, and thanks for the response.
 
Tried upgrading from 1.8.2 to 1.8.5, on XF 2.3, and getting this:

Code:
ErrorException: [E_WARNING] Trying to access array offset on false in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1051

    XF::handlePhpError() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1051
    DigitalPoint\Cloudflare\Repository\CloudflareAbstract->getZoneSettings() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 757
    DigitalPoint\Cloudflare\Repository\CloudflareAbstract->organizeSettings() in src/addons/DigitalPoint/Cloudflare/Admin/Controller/Cloudflare.php at line 49
    DigitalPoint\Cloudflare\Admin\Controller\Cloudflare->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2777
    XF\App->run() in src/XF.php at line 798
    XF::runApp() in admin.php at line 15

I did move the forum from root domain to a subdomain, but I'm not sure if that'd cause it.
 
It’s possible since the URL is used to infer the zone in your Cloudflare account. Was it a one-time thing that worked itself out?
 
It’s possible since the URL is used to infer the zone in your Cloudflare account. Was it a one-time thing that worked itself out?
Nah. I even tried rebuilding and reinstalling the addon from scratch.

My domain is not hosted through Cloudflare, it's hosted through WPMU (main website is WordPress, forums on subdomain and a separate web host).
 
That could be it… if your domain isn’t a zone without your Cloudflare account, you can’t manage settings for that zone (since it doesn’t exist).
 
That could be it… if your domain isn’t a zone without your Cloudflare account, you can’t manage settings for that zone (since it doesn’t exist).
I don't need cloudflare on my WP site, since they have their own CDN. I'd only need it for the subdomain forum, and I'm not sure how to do that.
 
I don't need cloudflare on my WP site, since they have their own CDN. I'd only need it for the subdomain forum, and I'm not sure how to do that.
You can run it on just a subdomain, but you would still need to be the “owner” of the root domain, with that domain in your Cloudflare account. That’s going to require your domain as a whole to use Cloudflare for DNS at least.

So just depends on if that setup interferes with your WP CDN or not.
 
Back
Top Bottom