Bobcares

Cloudflare Server Side Excludes: Explained.

by | May 29, 2023

Let us take a closer look at the Cloudflare server-side excludes with the support of our server management support services team at Bobcares.

 

What is Cloudflare Server Side Excludes?

Cloudflare Server Side Excludes

Wrap sensitive material on the website with Cloudflare Server-Side Excludes (SSE) tags if a user wants it to be accessible to actual visitors but hidden from suspicious visitors. 

 

How to enable the Server Side Excludes?

To enable SEE follow the steps given below:

  1. Select the account and domain from the Cloudflare dashboard.
     
  2. Proceed to Scrape Shield.
     
  3. Change the toggle for Server-side Excludes to Enabled.

Wrap the content in the following SSE tags to exclude it from suspicious visitors:

 

!—sse— !—/sse—

 

For example:

 

!—sse— Bad visitors will not see the official number, 123-456-98910!—/sse—

 

SSE will only function with HTML. If HTML minification is in activation, SSE tags will not show in the HTML source when provided by Cloudflare.

 

In this situation, SSE will still operate since Cloudflare’s HTML minification. And the SSE features happen on the fly as the resource transfers via our network to the visitor’s PC.

 

How to Use of CloudFlare’s Server-Side Exclude in WordPress?

WordPress contributes a lot of information to the website’s head…/headsection that a user may not want to fall into the hands of nefarious actors, malicious bots, and data scrapers. Th

 

is information might contain a physical address, e-mail addresses, API endpoints, WordPress and plug-in version information, and so on.

 

If the requester seems questionable, CloudFlare’s Server Side Exclude functionality will dynamically delete material from the websites.

 

We can do this by switching to HTML code mode and surrounding sensitive material with the!-sse- and!-/sse- comment tags from the main body of any web page. For example:

 

!DOCTYPE html
html
head
titleMy Web Page</title
/head
body
!--sse-->Disreputable visitors won't see this
!--/sse--
/body
/html

 

However, the user cannot alter what is in the head…/head part of the web pages using the WordPress editor in this scenario.

 

We will leverage the ways that themes, plugins, and WordPress themselves use to add stuff to the head…/head area of web pages to conceal practically anything in the head…/head section.

 

This is done through the use of the add action() method and the ‘wp head’ hook.      

 

[Need assistance with similar queries? We are here to help]

 

Conclusion

To sum up, we have now seen more on Cloudflare server side excludes with the support of our tech support team.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.