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
- In Custom paths, choose the CSP profile (None, Basic, Strict, or the Pro builder in Report-Only or Enforced mode).
- In the path list, enter one path per line, each starting with
/, for example:
/checkout
/courses/
/membership/- 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.
