Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How do I disable the use of the Cloudflare CDN? I want everything to be loaded locally to protect the privacy of my users.
Comments
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedMove all the library files to your server, then implement hook_library_info_alter() in your theme.
It's something I've thought about doing in the theme itself, i.e. provide a setting to make this a one click operation, e.g. site developer may wish to use another CDN or locally host files, e.g. https://www.jsdelivr.com/ (which I would use but they don't have all the plugins I need).
I don't see a privacy issue with Cloudflare. I've not read any substantive argument for that being a thing.
Comment #3
Liam MorlandThanks. I'll make this a feature request to automate as you suggest.
From a privacy standpoint, Cloudflare can see who is visiting the site by looking at the referrer headers on requests that it receives.
Comment #4
Jeff Burnz CreditAttribution: Jeff Burnz commentedI'll have a think about it, I'm cagey about very developer centric features. The UI is packed already and pretty overwhelming and to be really honest it's a feature almost no one will use. I do think it's a nice-to-have feature, but also a fair amount of work.