[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.8.5

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).
 
Back
Top Bottom