Security and Privacy Settings

Control how your app's data and files are protected, including Script Attack Protection, Secured Images, support access, IP restrictions, and API and upload restrictions.

Script Attack Protection

This setting prevents the storage and execution of specific custom code, that is not allowed, in record values and views on record creation or update. This helps keep your apps secure and prevents input-based hacks.

Notes: New apps have this setting enabled by default. Rich text views continue to allow scripts when this setting is enabled.


Script Attack Protection Allowlist

When enabled, code that is not on our allowlist will be prevented from saving in field values. Other values submitted will be saved as normal.

When form submission occurs, there will be no notification regarding the sanitization process in either the Live App or Builder; the affected values will simply not be saved.

Allowed Elements and Attributes

CategoryItems
Allowed Tagsh1, h2, h3, h4, h5, h6, blockquote, p, del, a, ul, ol, nl, li, b, i, strong, em, strike, code, hr, br, div, table, thead, caption, tbody, tr, th, td, pre, iframe, img, span, font, meter, button, progress, path, small, var, sub, sup, u, details, summary
Allowed Attributesa: ['style', 'href', 'name', 'target']

h1-h6, blockquote, p, del, ul, ol, nl, li, b, i, strong, em, strike, code, hr, br, div, table, thead, th, td, tr, tbody, caption, pre, span: ['style']

href, align, center, id, class

iframe, img, path: [all attributes]

font: ['face', 'color', 'size']

button: ['style', 'type']

progress: ['value', 'max']

meter: ['value', 'min', 'max', 'optimum']
Allowed Self-Closing Tagsimg, br, hr, area, base, basefont, input, link, meta
Allowed SchemesHTTP, HTTPS, FTP, mailto, href, src, cite

Important Notes

  • Script Attack Protection is not applied to the API & Code section of your app
  • Rich Text elements continue to allow scripts when this setting is enabled
  • All text fields (not just rich text) allow the use of HTML, but the HTML is sanitized against our documented allowlist. You can't use a SCRIPT tag, for example.

Examples

  • <script src="google.com">Hello world!</script>
    Saves as having no value.
    Why? The<script></script> tag is code that is not on our allowlist.

  • <b onclick="alert('hello')">Hello world!</b>
    Saves as <b>Hello world!</b>
    Why? The "onclick" portion is code that is not on our allowlist.

  • <b>Hello world!</b>
    Saves as <b>Hello world!</b>
    Why? This HTML code is allowed.

Script Attack Protected Areas

These areas are protected on all apps, regardless of the security setting. Entering code that is not on the allowlist into any of these areas will not be stored.

AreaProtected Elements
Account
  • Name
  • Slug
Table
  • Name
Field
  • Name
  • Default Values
  • Formatting
Page (scene)
  • Name
Page Elements
  • Name
  • Title
  • Description
  • Label
  • "Reload Form" text
  • "Submit" button text
  • "No Data" text
  • Links
  • Groups
  • Columns
  • Field inputs

Secured Images

Secured Images serves the images uploaded to your Image fields through private links that expire, instead of permanent public URLs. It is an app-level setting, so it applies to every Image field in your app. You can find it under App Settings → Security.

  • Secure Uploaded Images: Turns Secured Images on or off for the whole app.
  • Images Expire After: How long an image link stays valid. This appears when Secured Images is on. Choose 30 seconds, 1 minute, 3 minutes (default), 10 minutes, 1 hour, 24 hours or 7 days. A new value applies to links generated after you save it. Links that were already issued expire on their original timeline.

When Secured Images is on, images uploaded to your Image fields expire after the period you choose, and pages left open longer than that period need a refresh. Images added to a field with Load images from external URL are hosted outside Knack, so they are not secured and don't expire.

When you change the setting:

  • Turning it on asks you to confirm. Links to uploaded images that you've shared or embedded outside your app will stop working.
  • Turning it off asks you to confirm. We recommend keeping Secured Images on if your image fields contain personal or sensitive content.
  • Your existing images are updated in the background, and they keep working while this happens. The toggle is disabled until the update finishes, and an error appears if it fails.
📝

On HIPAA plans, Secured Images is ON by default for new apps, and existing apps in HIPAA-plan accounts were updated to use Secured Images in November 2026.

HIPAA-plan builders can turn it off per app. On all other plans, it is OFF by default and can be turned on at any time.

To learn how Secured Images affects emails, exports, the API and custom front ends, see File & Image Fields.

Support Access

Checking this box enables the Knack Support team access to view your app while troubleshooting.

Note: This setting is enabled automatically for new apps.

IP Restrictions

If enabled, only IP addresses listed here will have access to the app. This setting is off by default and is available on Corporate and higher-tier Knack plans.

👍

Include both your own IP address and any other IP addresses that need to access your app

Restrict API Responses

When this option is enabled, only fields added to the view will be included in any record responses. This applies to:

  1. Record updates triggered through Live App's JavaScript events
  2. View-based API requests

This setting does not apply to:

  • Record inserts
  • POST API requests

In these cases, all fields will be returned in the response payloads, regardless of this setting.

By default, the "Restrict API Responses" option is enabled. This can:

  1. Reduce payload size
  2. Control data visibility

Be sure to review any custom code or integrations that rely on field presence before changing this setting.

📝

As of December 2025, IP Blocking is no longer available on Pro plans.
If you previously had IP Blocking configured, those settings have been preserved in your account but are currently inactive. You can upgrade to a Corporate plan at any time to reactivate IP Blocking with your existing configurations intact.

📝

For Accounts Changing Plans:

Downgrading from Corporate: IP Blocking will be disabled, but your IP Block list configurations are saved and can be reactivated if you upgrade again in the future

Browser-Based API Calls

Control which domains can make browser-based API requests to your Live App. This prevents unauthorized cross-origin access from other apps (including Knack apps) or websites.

  • Restrict browser-based API requests: When enabled, API requests to your Live App are only allowed from the domains you specify.

Be sure to include every domain that legitimately calls your Live App from a browser, such as a custom front end, before turning it on.

Restrict POST for View-based API

By default, view-based APIs can create new records through views that are intended for editing, such as Edit Record forms and search views with inline edits enabled.

  • Do not allow POST method on views that cannot create records: When enabled, POST requests to these views are rejected. When disabled, they are allowed and will create new records.

This setting does not affect record inserts made through Knack's POST API endpoints. For defaults by account type and setup steps, see Restrict POST for View-Based API.

Restrict Unauthenticated Uploads

Control whether people who are not logged in can upload files and images.

  • Do not allow file/image uploads by unauthenticated users: When enabled, unauthenticated users cannot upload files or images, even on public pages. When disabled, they can upload on pages that allow it.

Did this page help you?