---
title: Security checklist - deploying a website
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

This is a security deployment checklist – things to do before you [deploy your site](https://docs.kentico.com/k12sp/securing-websites/deploying-websites-to-a-secure-environment.md) to a live environment.

### Web.config:

| Check | Description                                                                                                                                       | Details                                                                                                                                                                            |
| ----- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|       | Debug mode is turned off to prevent leaks of sensitive information.                                                                               | [Web.config security settings](https://docs.kentico.com/k12sp/securing-websites/deploying-websites-to-a-secure-environment/web-config-security-settings.md)                        |
|       | Tracing is disabled to prevent leaks of sensitive information.                                                                                    | [Web.config security settings](https://docs.kentico.com/k12sp/securing-websites/deploying-websites-to-a-secure-environment/web-config-security-settings.md)                        |
|       | The error messages of websites and application-server default error messages do not display detailed information to users.                        | [Designing secure error messages](https://docs.kentico.com/k12sp/securing-websites/developing-secure-websites/handling-error-messages-securely/designing-secure-error-messages.md) |
|       | Sensitive sections of the web.config file are encrypted (mainly the connection string).                                                           | [How To: Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI](http://msdn.microsoft.com/en-us/library/ff647398.aspx)                                                         |
|       | Access to sensitive directories is forbidden to protect the servers against enumeration attacks.                                                  | [Enumeration](https://docs.kentico.com/k12sp/securing-websites/developing-secure-websites/enumeration.md)                                                                          |
|       | Cookieless authentication is disabled to prevent session hijacking.                                                                               | [Session protection](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-and-protecting-the-system/session-protection.md)                          |
|       | The _HttpOnlyCookies_ flag is set so that the cookies are accessible only from the server-side code (this behavior is set by default in Kentico). | [Web.config security settings](https://docs.kentico.com/k12sp/securing-websites/deploying-websites-to-a-secure-environment/web-config-security-settings.md#cookies)                |

### IIS:

| Check | Description                                                                                                                                              | Details                                                                                                                                                                 |
| ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|       | Directory listing is disabled in the website and web servers.                                                                                            | [Export/import package directory browsing](https://docs.kentico.com/k12sp/deploying-websites/exporting-and-importing-sites/export-import-package-directory-browsing.md) |
|       | All HTTP methods except GET and POST are disabled if they are not in use.                                                                                | [Securing the Staging and REST web services](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-the-staging-and-rest-web-services.md)  |
|       | Scripts and 3rd party libraries are up-to-date. If external libraries (e.g. for database access, XML parsing) are used, always use the current versions. |                                                                                                                                                                         |
|       | Sensitive links which should not be indexed by search engines are listed within robots.txt files.                                                        | [Managing robots.txt](https://docs.kentico.com/k12sp/configuring-kentico/search-engine-optimization/managing-robots-txt.md)                                             |
|       | The execution of scripts is disabled on folders where it is undesirable.                                                                                 | [Edit Feature Permissions for the Handler Mappings Feature (IIS 7)](http://technet.microsoft.com/en-us/library/cc725855%28v=ws.10%29.aspx)                              |

### Kentico:

| Check | Description                                                                                                                                                                                                            | Details                                                                                                                                                                                                                                                                                                                                                          |
| ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|       | All test user accounts are deleted or disabled.                                                                                                                                                                        |                                                                                                                                                                                                                                                                                                                                                                  |
|       | All unnecessary modules and applications are disabled.                                                                                                                                                                 | [Disabling unnecessary services and keeping the system up-to-date](https://docs.kentico.com/k12sp/securing-websites/deploying-websites-to-a-secure-environment/disabling-unnecessary-services-and-keeping-the-system-up-to-date.md)                                                                                                                              |
|       | All unnecessary pages are deleted.                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                  |
|       | File types that can be uploaded to the system are restricted. You can specify which extensions are allowed for uploaded files in general, including forms in _Settings -> System -> Files_ in the _Security_ category. |                                                                                                                                                                                                                                                                                                                                                                  |
|       | UI personalization for specified roles is set correctly to prevent users from accessing unnecessary parts of the interface. You can configure UI personalization in the _UI personalization_ application.              | [UI Personalization](https://docs.kentico.com/k12sp/managing-users/ui-personalization.md)                                                                                                                                                                                                                                                                        |
|       | Permissions for specified actions in Kentico modules are set correctly for all roles. You can configure permissions in the _Permissions_ application.                                                                  | [Configuring permissions securely](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/configuring-permissions-securely.md)                                                                                                                                                                                                               |
|       | Users are allowed to use only strong and complex passwords. You can enable the Use password policy setting in _Settings -> Security & Membership -> Passwords_.                                                        | [Password strength policy and its enforcement](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-user-accounts-and-passwords/password-strength-policy-and-its-enforcement.md)                                                                                                                                                  |
|       | Passwords are stored in a strong and secure format. The recommended option is PBKDF2. You can set the password format in Settings -> Security & Membership -> Passwords -> Password format.                            | [Setting the user password format](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-user-accounts-and-passwords/setting-the-user-password-format.md)                                                                                                                                                                          |
|       | The number of allowed invalid sign-in attempts is limited. You can set the limit in _Settings -> Security & Membership -> Protection_ in the _Invalid sign-in attempts_ category.                                      | [Invalid sign-in attempts](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-user-accounts-and-passwords/invalid-sign-in-attempts.md)                                                                                                                                                                                          |
|       | You have considered if the autocomplete function is needed for sign-in forms. Autocomplete can be enabled in _Settings -> Security & Membership -> Protection_ in the _General_ category.                              | [Autocomplete deactivation](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-and-protecting-the-system/autocomplete-deactivation.md)                                                                                                                                                                                          |
|       | Forms are secured with CAPTCHA (spam protection control).                                                                                                                                                              | [Reference - System form components](https://docs.kentico.com/k12sp/developing-websites/form-builder-development/reference-system-form-components.md) (MVC sites)<br>[Spam protection (CAPTCHA)](https://docs.kentico.com/k12sp/securing-websites/designing-secure-websites/securing-and-protecting-the-system/spam-protection-captcha.md) (Portal Engine sites) |
|       | Encrypted Internet connection (HTTPS) is configured properly.                                                                                                                                                          | [Configuring SSL](https://docs.kentico.com/k12sp/securing-websites/deploying-websites-to-a-secure-environment/configuring-ssl.md)                                                                                                                                                                                                                                |
