A PrestaShop module that automates switching between Proxied and DNS Only modes in Cloudflare during massive blocking events on football match days.
The module fetches the feed from hayahora.futbol and enables/disables the selected DNS records to keep your legitimate store accessible, with a configurable cooldown period before reactivating Cloudflare.
- Download the ZIP file from GitHub.
- Copy the
cffootballbypassfolder into your PrestaShop modules directory. - From the Back Office, go to Modules > Module Manager and activate CF Football Bypass.
- Configure the module under Advanced Parameters > CF Football Bypass, where you can set:
- The checking interval
- The cooldown period after disabling Cloudflare
- The DNS records you want to manage
- PrestaShop 8 or higher
- Active Cloudflare account
- Cloudflare API access with permissions to manage DNS
- Original Author: David Carrero (@carrero)
- Website: carrero.es
- Quick Contact: carrero.es/contacto
⚠️ Note: This module has been adapted from the original WordPress version to PrestaShop with the author's permission and is completely free.
If you want to use an external cron, follow these steps:
- Add the following code to your
.htaccessfile located invar/www/public_html/modules/:
<Files "cron.php">
<If "%{REQUEST_URI} =~ m#^/modules/cffootballbypass/cron\.php#">
Require all granted
</If>
</Files>