# Static vs decoupled, headless, web services, API, firewall?

**URL:** <https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926>\
**Category:** Technology Infrastructure and Services\
**Created:** [August 12, 2026, 6:29pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926 "2026-08-12T18:29:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![orenrobinson](https://comment.mayfirst.org/user_avatar/comment.mayfirst.org/orenrobinson/32/605_2.png) [@orenrobinson](https://comment.mayfirst.org/u/orenrobinson)\
**Post date:** [August 12, 2026, 6:29pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926/1 "2026-08-12T18:29:35Z")

</div>

Hola TIAS,

I’ve appreciated the recent member email notices about the increasing threats against open source CMS and site builders that can expose database and system vulnerabilities, like Wordpress, Backdrop, Drupal, CiviCRM, and Joomla.

I was curious if we know of any existing best practices for each of these systems to mitigate these threats. It seems that static site generation if available, may generally be the simplest and most powerful strategy. If static generation is not feasible or possible, then a decoupled or headless system with a firewall requires potentially more effort but would also offer greatly enhanced security.

A cursory web search shows me a number of static site generation plugins for Wordpress and one for Drupal 9+, and in the other cases there are built-in web services/API extensions available for Backdrop, Joomla, and CiviCRM.

Do any May First members have experience in any of these mitigation paths? Are there any recommended guides to setting up HTTP basic authentication on a May First hosted site, or other ways to firewall a May First CMS backend?

---

<div class="post-metadata">

**Author:** ![jaimev](https://comment.mayfirst.org/user_avatar/comment.mayfirst.org/jaimev/32/529_2.png) [@jaimev](https://comment.mayfirst.org/u/jaimev)\
**Post date:** [August 12, 2026, 6:36pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926/2 "2026-08-12T18:36:08Z")

</div>

Hi Oren, I recently put together this guide for using the SimplyStatic plugin with wordpress.

> **[How to setup static Wordpress site](https://help.mayfirst.org/en/how-to-setup-static-wordpress-site)**

It also includes the steps for setting up http authentication to protect the wordpress install folder. I’ve helped a few members implement this and it seems to work well.

---

<div class="post-metadata">

**Author:** ![orenrobinson](https://comment.mayfirst.org/user_avatar/comment.mayfirst.org/orenrobinson/32/605_2.png) [@orenrobinson](https://comment.mayfirst.org/u/orenrobinson)\
**Post date:** [August 12, 2026, 7:17pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926/3 "2026-08-12T19:17:55Z")

</div>

Thank you, Jaime! This is a great guide.

I administer a few Backdrop and CiviCRM standalone instances on May First.

In the case of Backdrop, it seems that there isn’t a static site generator module, and since most pages are intended for unauthenticated site visitors, decoupling would be the way to go, possibly foregoing Backdrop’s layout and theme configuration.

Does May First support Apache [setenvif](https://httpd.apache.org/docs/current/mod/mod_setenvif.html#setenvif)? In the case of CiviCRM standalone where most of the pages are for admins only, could this be used to set up a few exceptions (like user-facing forms), while protecting all other site pages with HTTP basic auth?

---

<div class="post-metadata">

**Author:** ![jaimev](https://comment.mayfirst.org/user_avatar/comment.mayfirst.org/jaimev/32/529_2.png) [@jaimev](https://comment.mayfirst.org/u/jaimev)\
**Post date:** [August 12, 2026, 7:46pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926/4 "2026-08-12T19:46:56Z")

</div>

I think I know what you mean but can you explain for clarity what a “decoupled” system is in this context.

The control panel does not currently allow adding SetEnvIf in your custom web configuration rules. I’m not sure why, and it does allow SetEnv.

---

<div class="post-metadata">

**Author:** ![jamie](https://comment.mayfirst.org/user_avatar/comment.mayfirst.org/jamie/32/279_2.png) [@jamie](https://comment.mayfirst.org/u/jamie)\
**Post date:** [August 12, 2026, 8:29pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926/5 "2026-08-12T20:29:47Z")

</div>

For security reason, we list the Apache directives that are allowed, rather than the ones that are not allowed, so anything not allowed is simply not something we’ve been asked to add before. Happy to add SetEnvIf if that would help.

Also there might be easier ways to allow some directories but not others?

---

<div class="post-metadata">

**Author:** ![orenrobinson](https://comment.mayfirst.org/user_avatar/comment.mayfirst.org/orenrobinson/32/605_2.png) [@orenrobinson](https://comment.mayfirst.org/u/orenrobinson)\
**Post date:** [August 12, 2026, 9:59pm UTC](https://comment.mayfirst.org/t/static-vs-decoupled-headless-web-services-api-firewall/2926/6 "2026-08-12T21:59:58Z")

</div>

Re: decoupled

I’ve seen these terms all used somewhat interchangeably. In this context, “decoupling” means that there are two separate systems: a backend where only admins log in and still experience the same content authoring workflows, and a frontend which is any static site generator that updates the static site, usually through a web service / API call.

After a bit more searching, I see that CiviCRM has it’s own documentation about [using it behind a firewall](https://beta.docs.civicrm.org/admin/misc/behind-a-firewall/), and an extension ([CiviProxy](https://docs.civicrm.org/civiproxy/en/latest/)) for the use case I described, of whitelisting user-facing forms but protecting everything else.
