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 I configure CSP image sources in Aegisify Shield?

Image sources (img-src) decides where images may load from. It is in Aegisify Shield → Security Headers → CSP Builder → Image sources (Pro).

How to fill it in

  • Enter one source per line, such as https://images.example-cdn.com.
  • Your own site and data images (data:) are included automatically.
  • Start in Report-Only mode.

Commonly needed sources

  • An image CDN or optimization service.
  • Gravatar (https://secure.gravatar.com) for comment and author avatars.
  • Social media embeds and preview images.
  • Tracking pixels from analytics or advertising tools.

Why restrict images?

Images seem harmless, but injected image tags can be used to send data to an attacker’s server or display unwanted content. Limiting image sources reduces that risk.

Testing tips

An incomplete list makes images disappear. Browse product pages, galleries, blog posts, and comments in Report-Only mode, then review CSP Reports for blocked image URLs before enforcing.

Trade-off

If many trusted image hosts are involved, you can keep this directive in Report-Only mode while enforcing the higher-value directives such as script sources.

Related: CSP Builder mode, CSP script sources.

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

Find this article interesting, please share.