MainWP To Cloudflare Bridge V1.1

Tech Articles | January 2, 2025 | Coding, MainWP, Plugins, Wordpress

MainWP to Cloudflare Bridge has had an update; in this release, we deal with one issue and one improvement to the plugin.


I get to close an issue I have been testing a fix for a few months, which appears to be working well.

Domain Name handling will now use a 24-hour cached version of https://publicsuffix.org, specifically the https://publicsuffix.org/list/public_suffix_list.dat and will use this for domains.

In addition to solving the above issue, this is a “live dynamic” solution and should always just work while it still exists

Improvements:

Addition of a new filter to the plugin, allowing you to enquire and use the requests, unique visitors, cached requests, saved bandwidth and threats within other parts of MainWP specifically designed to work with the MainWP Filter mainwp_pro_reports_addition_custom_tokens

 $all_analytics = array(
            'requests'      => $analytics->requests,
            'uniques'       => $uniq->uniques,
            'cached'        => $analytics->cachedRequests,
            'bandwidth'     => $analytics->bytes,
            'attacks'       => $analytics->threats,
        );
        
         //Use add_filter to register the data for custom hook
        add_filter('cfmwp_all_analytics_data', function () use ($all_analytics) {
            return $all_analytics;
        });
PHP

You can read about this implementation here

Support the Author

buy me a coffee
Really Useful Plugin Logo
Appoligies for any spelling and grammer issue. As a dyslexic i need to rely on tools for this they like me are not perfect but I do try my best