Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How do custom paths work in Aegisify Shield header profiles?

Custom paths let one part of your site use a different Content Security Policy from the rest. For example, a checkout page that loads a payment provider might need a different policy from a blog. Configure them in Aegisify Shield → Security Headers → Profiles & Health (Pro).

How to set it up

  1. In Custom paths, choose the CSP profile (None, Basic, Strict, or the Pro builder in Report-Only or Enforced mode).
  2. In the path list, enter one path per line, each starting with /, for example:
/checkout
/courses/
/membership/
  1. Save.

How matching works

A request whose URL begins with one of the listed paths uses the custom profile. If nothing matches, or the list is empty, the request falls back to the front-end or wp-admin profile.

Use specific paths

Because matching is “starts with”, a short path such as /c would match /checkout, /contact, and /courses. Use complete, specific paths and test each route; a mismatched profile can break only part of the site, which is easy to miss.

Example

A store keeps a Strict policy for the blog but uses the Pro builder in Report-Only mode for /checkout while testing payment widgets.

Related: Security header profiles, CSP connect sources.

2026-12-01T03:49:34+00:00January 13th, 2026||

Find this article interesting, please share.