Content Security Policy custom feature
Strengthen your public booking page against common web vulnerabilities such as clickjacking and script injection by sending security-related HTTP response headers, including Content-Security-Policy, X-Frame-Options, HTTP Strict Transport Security and more.
By default only safe options are switched on, so enabling this feature is unlikely to affect your booking page. In the Strict policy (advanced) section you can turn on stricter, more protective options one by one — for example only allowing scripts from a fixed list of known sources. These stricter options may conflict with some other features (such as Google Tag Manager or Custom CSS), so we show a warning next to any option that is likely to break something you currently use.
What this feature does
The CSP custom feature adds an extra layer of protection to your public booking page. Once it is on, your booking page tells visitors' web browsers a few simple safety rules — for example, "only open this page over a secure connection" and "don't let other websites secretly wrap this page inside their own"
Why turn it on:
- Safer for your clients. It helps protect people booking with you from common online tricks, such as fake pages or harmful code slipped into a page.
- Better security scan results. If you, your IT partner or a client check your booking page with a website security checker, it will show your page as protected.
- Safe by default. When you switch the feature on, only the safe options are active. Your booking page should look and work exactly as before.
Before you start
Take two minutes to note down what your booking page uses. A few settings later on depend on it.
- Do you show the booking widget on your own website? This is the booking window you placed on your site with a piece of code. If yes, you will need to leave one option off (see Step 2).
- Do you take online payments? If yes, you will want to make a test booking with payment after changing any advanced option.
- Do you use Google Tag Manager, Google Analytics or Facebook Pixel? These tracking tools can be affected by the advanced options.
- Do you use Custom CSS or Google Translate on your booking page? These can also be affected by the advanced options.
- Do you have a free custom feature slot? CSP counts toward the number of custom features included in your plan.
Setup Guide
Step 1: Turn on the feature
1. Log in to your SimplyBook.me admin panel.
2. Open Custom Features from the menu.
3. Find Content Security Policy in the list. You can type "Content Security Policy" in the search box to find it faster.
4. Click Enable.
5. On the right side of the page you will be able to access its options.
That's it — your booking page is now protected with the safe default settings.You can
stop here if you don't want to fine-tune anything.
Step 2: Choose your settings
The settings page has two sections. Each option is a simple on/off switch. Click Save after making changes.
Section 1: Security headers (safe options)
These options are safe for almost everyone. Most are already on.
| Option | What it does in plain words | Starts as | Our advice |
|---|---|---|---|
| Content Security Policy header | The main protection. It tells browsers which sources your booking page trusts. | On | Keep on |
| Prevent embedding in iframes | Stops other websites from showing your booking page inside their own page. | Off | Turn on only if you don't use the booking widget on your own website |
| Disable MIME-type sniffing | Stops browsers from guessing what kind of file they are opening. | On | Keep on |
| Referrer policy | Shares less information about your page when a visitor clicks a link to another site. | On | Keep on |
| Restrict browser features | Blocks your booking page from using the visitor's camera and microphone. | On | Keep on |
| Force HTTPS (HSTS) | Makes browsers always use a secure connection to your booking page. | On | Keep on |
| Allow sandbox/test payment domains | Lets test (fake) payments work while you are setting up a payment provider. | Off | Turn on only while testing payments, then turn it off again |
Important: if you show the booking widget on your own website, keep Prevent embedding in iframes switched off. Otherwise the widget will stop loading. A yellow warning reminds you of this when you switch it on.
Section 2: Strict policy (advanced)
These options give even stronger protection, but they can block tools you use on your booking page. All of them start switched off . Turn them on one at a time and check your booking page after each one (see Step 3).
| Option | What it does in plain words | Might affect |
|---|---|---|
| Strict script sources | Only runs code from your booking page and known partners. | Google Tag Manager, tracking tools |
| Strict style and font sources | Only uses designs and fonts from your booking page and Google Fonts. | Custom CSS that loads fonts or styles from other websites |
| Strict image and media sources | Only shows images and videos from your booking page and known partners. | Pictures from other websites inside your service descriptions |
| Strict frame sources | Only shows embedded boxes from known partners, like YouTube, maps and payment providers. | Other embedded content in your descriptions, Google Translate |
| Strict connection sources | Only lets your page talk to your booking system and known partners in the background. | Tracking tools |
| Restrict form submissions | Forms on your page can only be sent to your booking system and supported payment providers. | Online payments, if your provider isn't supported |
| Strict inline scripts (nonce) | Only runs small pieces of code that the booking page created itself. | Google Tag Manager custom tags |
| Block dynamic code execution | Stops code from creating new code while the page is open. | Google Tag Manager custom tags, older payment integrations |
The strict options only work while Content Security Policy header is on. If it is off , they are greyed out.
Watch for yellow warnings
If an option may clash with something you already use, a yellow warning appears under it when you switch it on. For example, you will see one if you use Google T ag Manager, Google Analytics, Facebook Pixel, Custom CSS or Google Translate. The warning doesn't stop you — it just tells you what to check.
Step 3: Check that everything works
Do this after you first turn on the feature, and again after you switch on any strict option.
1. Open your booking page in a private (incognito) browser window, so you see it as a
new visitor would.
2. Click through a full booking: choose a service, a provider, a time, and fill in your details.
3. If you take payments, finish a test booking with payment.
4. Check the parts you use most: pictures and videos in service descriptions, the language selector, maps, the booking widget on your own website.
5. If you use tracking tools such as Google Analytics, check in the tool that new visits are still counted.
Everything works? You're done. Something looks wrong? Switch off the option you changed last, click Save, and check again.
Optional: to see your new protection, enter your booking page address into a free website security checker such as securityheaders.com. Y our score should go up after you turn on the feature.
Common questions
My booking widget disappeared from my website.
Switch off Prevent embedding iniframes and click Save.
Online payments stopped working.
Switch off the strict option you turned on last. The ones most likely to affect payments are Restrict form submissions, Strict script sources, Strict frame sources, Strict connection sources and Block dynamic code execution. Then make a test payment again.
My Google Tag Manager or Facebook Pixel stopped tracking visits.
Switch off the strict script, connection, image, frame and inline script options. The safe options don't affect tracking.
Pictures or videos in my service descriptions are gone.
They are probably hosted on another website. Switch off Strict image and media sources (for videos and other embedded boxes, also Strict frame sources). Or upload the pictures directly to SimplyBook.me.
I can't save my Custom CSS — I see an error about external links.
While Strict style and font sources is on, your Custom CSS can't load fonts or styles from other websites. Remove the links the error lists, or switch that option off.
The Google Translate language selector doesn't open.
Switch off the strict script, image, frame and connection options.
Do I need to turn on the advanced options?
No. The safe options already give good protection. Use the strict ones only if you want the highest possible security score and are happy to test your booking page after each change.