Cloudflare Docs
WAF
Edit this page on GitHub
Set theme to dark (⇧+D)

Server-side Excludes (SSE)

If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, wrap the content with Cloudflare Server-side Excludes (SSE) tags.

​​ Set up

​​ Enable

To enable Server-side Excludes in the dashboard:

  1. Log into the Cloudflare dashboard.
  2. Select your account and website.
  3. Go to Scrape Shield.
  4. For Server-side, switch the toggle to On.
To enable Server-side Excludes with the API, send a PATCH request with the value parameter set to "on".

​​ Exclude content

Once you have enabled Server-side Excludes, you need to wrap your content in specific SSE tags.

<!--sse--><!--/sse-->
<!--sse-->Bad visitors cannot see my phone number, 555-555-5555<!--/sse-->

​​ Limitations

SSE only works with HTML.