- Summary
- The product, Authenticated Cookie Bypass for Cloudflare (xfbc), allows users to bypass security challenges for authenticated users by assigning a custom secret token to a dedicated cookie (xfbc) for logged-in members, effectively preventing automated bots and scrapers from evading protection.
Authenticated Cookie Bypass for Cloudflare (xf_bc)
Overview
If you use Cloudflare WAF rules to exempt authenticated users from security challenges by checking for the default xf_user= cookie, automated bots and scrapers can easily spoof that predictable cookie name to evade your protection.
This lightweight add-on resolves that vulnerability by assigning a dedicated cookie (xf_bc) containing a custom secret token exclusively to logged-in members.
Cloudflare Rule Configuration
After installing the add-on and setting your custom secret key in the options, update your Cloudflare bypass rule to use the following expression:
(Be sure to replace "supersecret" with the exact secret token configured in your add-on settings.)
By validating a private token rather than a standard cookie prefix, crawlers attempting to impersonate authenticated members will fail the check and remain subject to Cloudflare challenges.
Security Recommendation
Overview
If you use Cloudflare WAF rules to exempt authenticated users from security challenges by checking for the default xf_user= cookie, automated bots and scrapers can easily spoof that predictable cookie name to evade your protection.
This lightweight add-on resolves that vulnerability by assigning a dedicated cookie (xf_bc) containing a custom secret token exclusively to logged-in members.
Cloudflare Rule Configuration
After installing the add-on and setting your custom secret key in the options, update your Cloudflare bypass rule to use the following expression:
Code:
(http.cookie contains "xf_bc=supersecret")
By validating a private token rather than a standard cookie prefix, crawlers attempting to impersonate authenticated members will fail the check and remain subject to Cloudflare challenges.
Security Recommendation
- Periodically rotate your secret token in the add-on settings and update your Cloudflare rule accordingly to maintain effective protection against persistent scrapers.