Konfiguracija¶
All settings are stored in settings.py (as is usual for Django).
Napomena
After changing any of these settings, you need to restart Weblate — both WSGI and Celery processes.
In case it is run as mod_wsgi, you need to restart Apache to reload the
configuration.
Više informacija
Please also check Django’s documentation for parameters configuring Django itself.
ADMINS_CONTACT¶
Configures where contact form sends e-mails. If not configured,
e-mail addresses from ADMINS are used.
Konfiguriraj ovo kao popis e-mail adresa:
ADMINS_CONTACT = ["admin@example.com", "support@example.com"]
Više informacija
ALLOWED_ASSET_DOMAINS¶
Added in version 5.14.
Configures which domains are allowed for fetching assets in Weblate.
This enhances security by preventing loading assets from untrusted sources. Assets are downloaded once by the Weblate server and stored locally, rather than being served directly from external domains to users.
The allowlist is applied to the initial URL and to every HTTP redirect target before Weblate follows it. Redirects to hosts outside of this allowlist are rejected.
It expects a list of host/domain names. You can use fully qualified names
(e.g www.example.com) or prepend with a period as a wildcard to match
all subdomains (e.g .example.com will match cdn.example.com or static.example.com).
Defaults to ["*"], which allows all domains.
Example
ALLOWED_ASSET_DOMAINS = [
# Allows only cdn.anotherdomain.org
"cdn.anotherdomain.org",
# Allows example.com and all its subdomains
".example.com",
]
This is currently used in the following places:
Prijenosi snimaka ekrana, pogledaj Screenshots and visual context
Udaljena HTML preuzimanja za dodatak CDN JavaScript lokalizacije
Više informacija
ALLOWED_MACHINERY_DOMAINS¶
Configures which custom translation service domains are explicitly allowed in project-level translation service configuration.
This setting applies only to translation services and does not affect
ALLOWED_ASSET_DOMAINS.
It expects a list of host/domain names. You can use fully qualified names or prepend with a period as a wildcard to match all subdomains.
Defaults to [].
The allowlist affects project-managed translation services in two ways: it permits the configured endpoint during outbound validation, and it marks matching hosts as trusted when deciding whether remote provider error details or response bodies can be shown to the user. Matching hosts are also exempt from private-target restrictions. For direct connections, Weblate does not resolve, pin, or verify the peer address of matching hosts. Only add hosts or domains whose network destinations are trusted. When a configured HTTP proxy is used, the proxy is trusted to resolve the destination hostname.
ALLOWED_ASSET_SIZE¶
Added in version 5.14.
Configures size limit in bytes for fetching or uploading assets into Weblate. Defaults to 10 MB.
Više informacija
ASSET_PRIVATE_ALLOWLIST¶
Added in version 2025.5.
Defines hostnames or domains exempt from ASSET_RESTRICT_PRIVATE
for remote asset downloads that enforce private-target checks. Entries follow
Django host matching semantics, so values such as assets.internal.example
or .internal.example can be used.
This does not replace ALLOWED_ASSET_DOMAINS; remote assets must
still match the asset domain allowlist.
Standardna konfiguracija:
ASSET_PRIVATE_ALLOWLIST = []
Više informacija
ASSET_RESTRICT_PRIVATE¶
Added in version 2025.5.
Reject remote asset URLs pointing to internal or non-public addresses unless
the target host is included in ASSET_PRIVATE_ALLOWLIST. On by
default.
When enabled, hostnames that cannot be resolved during validation are rejected
unless they are explicitly included in ASSET_PRIVATE_ALLOWLIST.
This currently applies to screenshot URL uploads and remote HTML downloads for
the CDN JavaScript lokalizacije add-on.
ALTCHA_COST¶
Added in version 2025.5.
Argon2id time cost for the ALTCHA proof-of-work challenge. Defaults to 3.
Replaces ALTCHA_MAX_NUMBER, which applied to the removed ALTCHA widget v2.
ALTCHA_MEMORY_COST¶
Added in version 2025.5.
Argon2id memory cost in KiB. Defaults to 65536.
ALTCHA_PARALLELISM¶
Added in version 2025.5.
Argon2id parallelism factor. Defaults to 1.
Više informacija
ANONYMOUS_USER_NAME¶
Username of users that are not signed in.
Više informacija
AUDITLOG_EXPIRY¶
Maksimalan broj dana koliko će Weblate čuvati dnevnike aktivnosti koji sadrže informacije o aktivnostima na račun.
Defaults to 180 days.
Više informacija
AUTH_LOCK_ATTEMPTS¶
Maximum number of failed authentication attempts before rate limiting is applied.
This is currently applied in the following locations:
Sign in. Deletes the account password, preventing the user from signing in without requesting a new password.
Second-factor sign in. Deletes the account password after this many rejected second-factor submissions since the last successful second-factor sign in. This also invalidates pending password sign-ins. Other authentication methods and API tokens remain usable.
Password reset. Prevents new e-mails from being sent, avoiding spamming users with too many password-reset attempts.
Defaults to 10.
Više informacija
AUTO_UPDATE¶
Updates all repositories on a daily basis.
Every hour, Weblate queues updates for repositories whose component ID modulo 24
matches the current UTC hour. This distributes updates throughout the day. For
example, component ID 25 is selected during the hour from 01:00 to 01:59 UTC.
Linked components use the schedule of the component that owns their shared
repository.
The assigned hour determines when updates are queued, not when they finish. Execution can be delayed by queued tasks or repository operations. Restarting Celery does not change the assigned hour. This setting does not provide a configurable update time window.
Savjet
Useful if you are not using Pokretači obavijesti to update Weblate repositories automatically.
Napomena
On/off options exist in addition to string selection for backward compatibility.
The options are:
"none"No daily updates.
"remote"alsoFalseFetch remote changes without merging them into the working copy. This is the default;
Falsedoes not disable daily updates."full"alsoTrueFetch remote changes and merge them into the working copy.
Napomena
Automatic updates require that Background tasks using Celery is working. Restart Celery after changing this setting for the new value to take effect.
AVATAR_URL_PREFIX¶
Prefix for constructing avatar URLs as:
${AVATAR_URL_PREFIX}/avatar/${MAIL_HASH}?${PARAMS}.
The following services are known to work:
- Gravatar (default), as per https://gravatar.com/
AVATAR_URL_PREFIX = 'https://www.gravatar.com/'- Libravatar, as per https://www.libravatar.org/
AVATAR_URL_PREFIX = 'https://www.libravatar.org/'
Više informacija
AVATAR_URL_TEMPLATE¶
Added in version 2026.10.
Template to generate avatar URLs. Defaults to "{AVATAR_URL_PREFIX}avatar/{mail_hash}?{querystring}".
It can contain {AVATAR_URL_PREFIX}, {mail_hash}, {querystring}, {username}, and {size}.
For example, to fetch avatars by username instead of e-mail hash (as needed by Codeberg’s Forgejo-backed avatar service):
AVATAR_URL_TEMPLATE = "{AVATAR_URL_PREFIX}avatar/{username}/{size}"
Više informacija
AUTH_TOKEN_VALID¶
How long the authentication token and temporary password from password reset e-mails is valid for. Set in number of seconds, defaulting to 172800 (2 days). E-mail validation codes are checked against this lifetime when used, even if scheduled cleanup has not yet removed them. This does not set a deadline for other authentication pipeline steps.
AUTH_PASSWORD_DAYS¶
How many days Weblate rejects reusing a previously used password for a user.
Provjera se zasniva na dnevniku aktivnosti, AUDITLOG_EXPIRY mora biti barem jednako ovome.
Napomena
Password changes made prior to Weblate 2.15 will not be accounted for in this policy.
Defaults to 180 days.
AUTOFIX_LIST¶
List of automatic fixes to apply when saving a string.
Napomena
Provide a fully-qualified path to the Python class that implements the autofixer interface.
Available fixes are described at Automatski ispravci.
You can select which ones to use:
AUTOFIX_LIST = (
"weblate.trans.autofixes.whitespace.SameBookendingWhitespace",
"weblate.trans.autofixes.chars.ReplaceTrailingDotsWithEllipsis",
)
BACKGROUND_TASKS¶
Added in version 4.5.2.
Defines how often lengthy maintenance tasks should be triggered for a component.
Right now this controls:
Automatski prijevod dodatak
Checks and fixups recalculation
Mogući izbori:
monthly(this is the default)weeklydailynever
Napomena
Increasing the frequency is not recommended when Weblate contains thousands of components.
BASIC_LANGUAGES¶
Added in version 4.4.
List of languages to offer users for starting a new translation. When not specified, a built-in list is used (which includes all commonly used languages, but without country specific variants).
This only limits non privileged users to add unwanted languages. Project admins are still presented with the full selection of languages defined in Weblate.
Napomena
This does not define new languages for Weblate — it only filters existing ones in the database.
Primjer:
BASIC_LANGUAGES = {"cs", "it", "ja", "en"}
Više informacija
BORG_EXTRA_ARGS¶
Added in version 4.9.
You can pass additional arguments to borg create when built-in backups are triggered.
Primjer:
BORG_EXTRA_ARGS = ["--exclude", "vcs/"]
Više informacija
CACHE_DIR¶
Added in version 4.16.
Directory where Weblate stores cache files. Defaults to cache subfolder
in DATA_DIR.
Change this to local or temporary filesystem if DATA_DIR is on a
network filesystem.
Weblate stores generated helper files here and executes some of them, so
CACHE_DIR has to be writable and mounted on a filesystem that allows
execution. Avoid using noexec mount options for this directory.
The Docker container uses a separate volume for this, see Docker container volumes.
The following subdirectories usually exist:
sshGenerated helper files used for VCS access.
fontsfont-config cache for Managing fonts.
avatarCached user avatars, see Avatari.
staticDefault location for static Django files, specified by
STATIC_ROOT. See Serving static files.tesseractOCR trained data for Screenshots and visual context.
CSP_SCRIPT_SRC, CSP_IMG_SRC, CSP_CONNECT_SRC, CSP_STYLE_SRC, CSP_FONT_SRC, CSP_FORM_SRC¶
Customize the Content-Security-Policy header for Weblate. The header is automatically generated based on enabled integrations with third-party services (Matomo, Google Analytics, Sentry, …).
All these default to an empty list.
Primjer:
# Enable Cloudflare Javascript optimizations
CSP_SCRIPT_SRC = ["ajax.cloudflare.com"]
Više informacija
CHECK_LIST¶
List of quality checks to perform on a translation.
Napomena
Provide a fully-qualified path to the Python class implementing the check interface.
Adjust the list of checks to include ones relevant to you.
All built-in Provjere kvalitete are turned on by default, from where you can change these settings. By default they are commented out in Primjer konfiguracije so that default values are used. New checks are then carried out for each new Weblate version.
You can turn off all checks:
CHECK_LIST = ()
You can turn on only a few:
CHECK_LIST = (
"weblate.checks.chars.BeginNewlineCheck",
"weblate.checks.chars.EndNewlineCheck",
"weblate.checks.chars.MaxLengthCheck",
)
Napomena
Changing this setting only affects newly changed translations. Existing checks
will still be stored in the database. To also apply changes to the stored translations, run
updatechecks.
COMMIT_PENDING_HOURS¶
Number of hours between committing pending changes by way of the background task.
COMPONENT_ZIP_UPLOAD_MAX_SIZE¶
Added in version 5.17.1.
Configures the maximum size, in bytes, for uploaded component ZIP files. Defaults to 50 MB.
In Docker, configure this using the WEBLATE_COMPONENT_ZIP_UPLOAD_MAX_SIZE
environment variable.
Više informacija
CONTACT_FORM¶
Added in version 4.6.
Configures how e-mail from the contact form is being sent. Choose a configuration that matches the configuration of your mail server.
"reply-to"The sender is used as Reply-To, this is the default behaviour.
"from"The sender is used as From. Your mail server needs to allow sending such e-mails.
"disabled"Disables the contact form entirely.
Added in version 5.15.
Više informacija
DATA_DIR¶
The folder Weblate stores all data in. It contains links to VCS repositories, a fulltext index and various configuration files for external tools.
The following subdirectories usually exist:
homeHome directory used for invoking scripts.
sshSSH keys and configuration.
mediaDefault location for Django media files, specified by
MEDIA_ROOT. Contains uploaded screenshots, see Screenshots and visual context.vcsVersion-control repositories for translations.
backupsDaily backup data. Please check Dumped data for backups for details.
fonts:User-uploaded fonts, see Managing fonts.
cacheVarious caches. Can be placed elsewhere using
CACHE_DIR.The Docker container uses a separate volume for this, see Docker container volumes.
Napomena
This directory has to be writable by Weblate. Running it as WSGI means
the www-data user should have write access to it.
The easiest way to achieve this is to make the user the owner of the directory:
sudo chown www-data:www-data -R $DATA_DIR
Defaults to /home/weblate/data, but it is expected to be configured.
Više informacija
DATABASE_BACKUP¶
Da li sigurnosne kopije baze podataka spremiti kao običan tekst, komprimirano ili ih preskočiti. Dopuštene vrijednosti su:
"plain""compressed""none"
Više informacija
DEFAULT_ACCESS_CONTROL¶
The default access-control setting for new projects:
0Javno
1Zaštićeno
100Privatno
200Prilagođeno
Use Custom if you are managing ACL manually, which means not relying on the internal Weblate management.
Više informacija
DEFAULT_AUTO_WATCH¶
Added in version 4.5.
Configures whether Automatically watch projects on contribution
should be turned on for new users. Defaults to True.
Više informacija
DEFAULT_RESTRICTED_COMPONENT¶
Added in version 4.1.
The default value for component restriction.
Više informacija
DEFAULT_ADD_MESSAGE, DEFAULT_ADDON_MESSAGE, DEFAULT_COMMIT_MESSAGE, DEFAULT_DELETE_MESSAGE, DEFAULT_MERGE_MESSAGE¶
Default commit messages for different operations, please check Konfiguracija komponente for details.
The built-in defaults follow Conventional Commits and include Weblate links where available. Changing these settings affects newly created defaults; existing message templates can be reset in the settings forms with Restore site default. For inherited values, restoring the site default also disables inheritance for that message.
DEFAULT_ADDONS¶
Default add-ons to install for every created component.
Napomena
This setting affects only newly created components.
Example:
DEFAULT_ADDONS = {
# Add-on with no parameters
"weblate.flags.target_edit": {},
# Add-on with parameters
"weblate.autotranslate.autotranslate": {
"mode": "suggest",
"filter_type": "todo",
"auto_source": "mt",
"component": "",
"engines": ["weblate-translation-memory"],
"threshold": "80",
},
}
Više informacija
DEFAULT_COMMITER_EMAIL¶
Committer e-mail address, defaulting to noreply@weblate.org.
This identifies Weblate as the committer, separately from the translator recorded
as the author. To make translators’ author e-mail addresses private by default,
set PRIVATE_COMMIT_EMAIL_OPT_IN to False.
Više informacija
DEFAULT_COMMITER_NAME¶
Committer name, defaulting to Weblate.
This identifies Weblate as the committer, separately from the translator recorded
as the author. To make translators’ author names private by default, set
PRIVATE_COMMIT_NAME_OPT_IN to False.
Više informacija
DEFAULT_LANGUAGE¶
Added in version 4.3.2.
Izvorni jezik za bilo koje nove komponente.
Defaults to en. The matching language object needs to exist in the database.
Više informacija
DEFAULT_MERGE_STYLE¶
Stil sjedinjavanja za bilo koje nove komponente.
rebase - default
merge
Više informacija
DEFAULT_NOTIFICATIONS¶
Added in version 2026.10.1.
Default notification settings for every newly created user.
A list of 3-tuples consisting of notification scope, notification frequency and notification handler.
Opsezi:
0All
10Watched
20Administered
Frequencies:
0No notification
1Instant notification
2Daily digest
3Weekly digest
4Monthly digest
Handlers:
ApprovedStringNotificatonString was approved
ChangedStringNotificatonString was changed
ComponentTranslatedNotificatonComponent was translated
LanguageTranslatedNotificatonLanguage was translated
LastAuthorCommentNotificatonString you contributed to received a comment
LicenseNotificationLicense was changed
LockNotificationComponent was locked or unlocked
MentionCommentNotificatonYou were mentioned in a comment
MergeFailureNotificationRepository operation failed
NewAlertNotificatonNew alert emerged in a component
NewAnnouncementNotificatonAnnouncement was published
NewCommentNotificatonComment was added
NewComponentNotificatonNew translation component was created
NewContributorNotificatonContributor made their first translation
NewStringNotificatonString is available for translation
NewSuggestionNotificatonSuggestion was added
NewTranslationNotificatonNew language was added or requested
ParseErrorNotificationParse error occurred
PendingSuggestionsNotificationPostoje prijedlozi na čekanju
RepositoryNotificationOperation was performed in the repository
ToDoStringsNotificationUnfinished strings exist
TranslatedStringNotificatonString was edited by user
TranslationActivitySummaryNotificationTranslation activity summary
Napomena
This setting affects only newly created users.
Example:
DEFAULT_NOTIFICATIONS = [
(0, 1, "MentionCommentNotificaton"),
(10, 1, "LastAuthorCommentNotificaton"),
]
Više informacija
DEFAULT_WORKSPACE_TM¶
Added in version 2026.11.2.
Configures the default value of Use workspace translation memory and Contribute to workspace translation memory.
DEFAULT_TRANSLATION_REVIEW¶
Added in version 5.16.
Configures the default value for Aktiviraj preglede, turned off by default.
DEFAULT_SOURCE_REVIEW¶
Added in version 5.16.
Configures the default value for Aktiviraj preglede izvora, turned off by default.
DEFAULT_AUTOCLEAN_TM¶
Added in version 5.13.
Configures the default value of Automatski očisti prevodilačku memoriju.
DEFAULT_TRANSLATION_PROPAGATION¶
Default setting for translation propagation, defaults to True.
Više informacija
DEFAULT_PULL_MESSAGE¶
Configures the default title and message for pull requests.
The built-in default follows Conventional Commits and includes Weblate links and translation status.
ENABLE_AVATARS¶
Da li za korisnike uključiti avatare temeljene na usluzi Gravatar. Standardno je uključeno.
Avatars are fetched and cached on the server, lowering the risk of leaking private info, speeding up the user experience.
Više informacija
ENABLE_HOOKS¶
Whether to turn on anonymous remote hooks.
Više informacija
ENABLE_HTTPS¶
Promijenjeno u verziji 5.7: Weblate now requires https for WebAuthn support.
Whether to send links to Weblate as HTTPS or HTTP. This setting affects sent e-mails and generated absolute URLs.
In the default configuration this is also used for several Django settings related to HTTPS — it enables secure cookies, toggles HSTS or enables redirection to a HTTPS URL.
The HTTPS redirection might be problematic in some cases and you might hit
an issue with infinite redirection in case you are using a reverse proxy doing
an SSL termination which does not correctly pass protocol headers to Django.
Please tweak your reverse proxy configuration to emit X-Forwarded-Proto or
Forwarded headers or configure SECURE_PROXY_SSL_HEADER to
let Django correctly detect the SSL status.
In case this is disabled, Weblate will fail to start with an
otp_webauthn.E031 error. You can silence this error by adding it to
SILENCED_SYSTEM_CHECKS, but still WebAuthn will not work for
sites without HTTPS.
ENABLE_SHARING¶
Turn on/off the Community menu so users can share translation progress on social networks.
Više informacija
EXTRA_HTML_HEAD¶
Added in version 4.15.
Insert additional markup into the HTML header. Can be used for verification of site ownership, for example:
EXTRA_HTML_HEAD = '<link href="https://fosstodon.org/@weblate" rel="me">'
Upozorenje
No sanitization is performed on the string. It is inserted as-is into the HTML header.
GET_HELP_URL¶
Added in version 4.5.2.
URL where support for your Weblate instance can be found.
GITEA_CREDENTIALS¶
Added in version 4.12.
List for credentials for Gitea servers.
GITEA_CREDENTIALS = {
"try.gitea.io": {
"username": "weblate",
"token": "your-api-token",
},
}
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
GITLAB_CREDENTIALS¶
Added in version 4.3.
List for credentials for GitLab servers.
GITLAB_CREDENTIALS = {
"gitlab.com": {
"username": "weblate",
"token": "your-api-token",
},
}
Napomena
The personal access token needs the api scope to be able to use the API.
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
Više informacija
GITHUB_CREDENTIALS¶
Added in version 4.3.
List for credentials for GitHub servers.
GITHUB_CREDENTIALS = {
"api.github.com": {
"username": "weblate",
"token": "your-api-token",
},
}
Napomena
It is possible to use both fine-grained personal access tokens and classic personal access tokens. The fine-grained tokens are limited to a single organization, so it won’t work if you want Weblate to fork a repository outside the organization (typically to the user namespace).
To clone, push and create pull requests, the read and write access to Contents and Pull requests is required.
Administration might also be necessary for forking a repository if you intend to use forking and the original repository is not public.
Savjet
Use api.github.com as an API host for https://github.com/.
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
Više informacija
GITHUB_LEGACY_APP_WEBHOOK_SECRET¶
Added in version 2026.8.
Webhook secret for a legacy GitHub App which delivers events to the generic
GitHub webhook URL, /hooks/github/.
App webhook deliveries to the generic URL are rejected when this setting is
empty or their X-Hub-Signature-256 does not match. Ordinary repository
webhooks are unaffected. GitHub Apps registered through Weblate use their
per-App webhook URLs and do not use this setting.
GITHUB_LEGACY_APP_WEBHOOK_SECRET = "your-webhook-secret"
Više informacija
BITBUCKETSERVER_CREDENTIALS¶
Added in version 4.16.
List for credentials for Bitbucket Data Center.
BITBUCKETSERVER_CREDENTIALS = {
"git.self-hosted.com": {
"username": "weblate",
"token": "http-access-token",
},
}
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
BITBUCKETCLOUD_CREDENTIALS¶
Added in version 5.8.
List for credentials for Bitbucket Cloud servers.
BITBUCKETCLOUD_CREDENTIALS = {
"bitbucket.org": {
"username": "your-email",
"workspace": "your-workspace-slug",
"token": "your-api-token",
},
}
The configuration dictionary consists of credentials defined for each API host.
The API host might be different from what you use in the web browser, for
example GitHub API is accessed as api.github.com.
The following configuration is available for each host:
usernameKorisnik API-a.
workspaceThe user workspace slug.
tokenThe API token with pullrequest:write permission.
Additional settings not described here can be found at Configuring version control credentials.
AZURE_DEVOPS_CREDENTIALS¶
Added in version 5.2.
List for credentials for Azure DevOps servers.
AZURE_DEVOPS_CREDENTIALS = {
"dev.azure.com": {
"username": "project-name",
"token": "your-api-token",
"organization": "organization-name",
},
}
The configuration dictionary consists of credentials defined for each API host.
The API host might be different from what you use in the web browser, for
example GitHub API is accessed as api.github.com.
The following configuration is available for each host:
usernameThe name of the Azure DevOps project. This is not the repository name.
organizationThe name of the organization of the project.
workItemIdsAn optional list of work items IDs from your organization. When provided new pull requests will have these attached.
tokenAPI token for the API user, required.
Additional settings not described here can be found at Configuring version control credentials.
Više informacija
GOOGLE_ANALYTICS_ID¶
Google Analytics ID to turn on monitoring of Weblate using Google Universal Analytics.
Napomena
Google Analytics 4 integration is currently not available for Weblate, please see https://github.com/WeblateOrg/weblate/issues/14015.
HIDE_REPO_CREDENTIALS¶
Hide repository credentials from the web interface. In case you have repository URL with user and password, Weblate will hide it when related info is shown to users.
For example instead of https://user:password@git.example.com/repo.git it
will show just https://git.example.com/repo.git. It tries to clean up VCS
error messages too in a similar manner.
Napomena
Standardno je uključeno.
VERSION_DISPLAY¶
Added in version 5.17.
Controls how prominently Weblate exposes its own version.
Podržane vrijednosti su:
showShow the version in shared UI such as the footer and expose it in
GET /api/metrics/.softHide the version from prominent shared UI, while keeping it discoverable on the About page and in
GET /api/metrics/.hideHide the version from shared UI and
GET /api/metrics/. This also makes anonymous documentation links point to the latest documentation instead of the version matching the installed release.
Hiding the version is a recommended security practice in some corporations, but it does not prevent an attacker from inferring the version by probing behavior.
Napomena
Standardna postavka je show.
HIDE_VERSION¶
Added in version 4.3.1.
Zastarijelo od verzije 5.17.
Compatibility alias for VERSION_DISPLAY. Set this to True to
get the same behavior as VERSION_DISPLAY = "hide".
INTERNAL_BOT_EMAIL_TEMPLATE¶
Added in version 2026.7.1.
Template used to generate e-mail addresses for internal Weblate bot accounts.
Defaults to "noreply-{scope}-{name}@weblate.org".
It can contain {scope}, {name}, {username}, {site_title}, and
{site_domain}.
Use {scope} and {name} when generating the e-mail local part. The
{username} value contains the internal scope:name username.
Existing internal bot accounts are updated when migrate is run.
Project API token accounts are not affected.
IP_BEHIND_REVERSE_PROXY¶
Indicates whether Weblate is running behind a reverse proxy.
If set to True, Weblate gets IP address from a header defined by
IP_PROXY_HEADER.
Upozorenje
The reverse proxy which connects to Weblate must overwrite the configured
header or append a verified peer address at the position selected by
IP_PROXY_OFFSET. Weblate does not verify which peer supplied the
header, so trusting a client-controlled value allows IP address spoofing.
Ensure that untrusted clients cannot reach Weblate without passing through the trusted proxy.
Napomena
This is not on by default.
Više informacija
IP_PROXY_HEADER¶
Indicates which header Weblate should obtain the IP address from when
IP_BEHIND_REVERSE_PROXY is turned on.
Defaults to HTTP_X_FORWARDED_FOR.
IP_PROXY_OFFSET¶
Promijenjeno u verziji 5.0.1: The default changed from 1 to -1.
Indicates which part of IP_PROXY_HEADER is used as client IP
address.
Depending on your setup, this header might consist of several IP addresses,
(for example X-Forwarded-For: client-ip, proxy-a, proxy-b) and you can configure
which address from the header is used as client IP address here.
Upozorenje
Setting this affects the security of your installation. Select only an address added or verified by a proxy under your control. Addresses supplied by the client are untrusted. Ensure that the selected offset matches how your proxies construct the header.
See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For#security_and_privacy_concerns> for more details.
Standardna vrijednost je -1.
LEGAL_DOCUMENT_CSS_CLASS¶
Added in version 2026.7.
CSS class added to the wrappers around legal document templates.
Defaults to "tos". Weblate does not attach styling to this class; custom
legal styles can use it to target document wrappers. Set this to an empty
string to render legal documents without a wrapper class.
LEGAL_DOCUMENT_CSS_CLASS = ""
Više informacija
LEGAL_TOS_DATE¶
Added in version 4.15.
Napomena
You need Legal module installed to make this work.
Date of the legal documents users last agreed to. Whenever the date changes, users are required to agree with the current terms of service and, when a privacy policy link is available, the privacy policy.
from datetime import date
LEGAL_TOS_DATE = date(2022, 2, 2)
LEGAL_URL¶
URL where your Weblate instance shows its legal documents.
Savjet
When the Legal module module is enabled, this URL takes priority over its internal terms page in document links. The default terms template links to this URL when visited directly.
Example:
LEGAL_URL = "https://weblate.org/terms/"
Više informacija
LICENSE_EXTRA¶
Additional licenses to include in the license choices.
Napomena
Each license definition should be a tuple of its short name, a long name, a URL and a boolean, indicating whether it is a libre license.
For example:
LICENSE_EXTRA = [
(
"AGPL-3.0",
"GNU Affero General Public License v3.0",
"https://www.gnu.org/licenses/agpl-3.0-standalone.html",
True,
),
]
LICENSE_FILTER¶
Promijenjeno u verziji 4.3: Setting this to blank value now disables license alert.
Filter list of licenses to show. This also disables the license alert when set to empty.
Napomena
This filter uses the short license names.
For example:
LICENSE_FILTER = {"AGPL-3.0", "GPL-3.0-or-later"}
Following disables the license alert:
LICENSE_FILTER = set()
Više informacija
LICENSE_REQUIRED¶
Defines whether the license attribute in Konfiguracija komponente is required.
Napomena
This is off by default.
LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH¶
Whether the length of a given translation should be limited. The restriction is the length of the source string × 10 characters.
Savjet
Set this to False to allow longer translations (up to 10,000 characters) irrespective of source string length.
Napomena
Defaults to True.
LOCALIZE_CDN_URL and LOCALIZE_CDN_PATH¶
These settings configure the CDN add-ons, including
CDN JavaScript lokalizacije, CDN prevodilačkih datoteka, and
Kotlin SDK CDN.
LOCALIZE_CDN_URL defines root URL where the localization CDN is
available and LOCALIZE_CDN_PATH defines path where Weblate should
store generated files which will be served at the LOCALIZE_CDN_URL.
The files are served by your web server or CDN, not by Weblate; see
Mreža za dostavljanje sadržaja (CDN) lokalizacije for secure serving guidance.
Savjet
Na Hosted Weblateu se koristi https://weblate-cdn.com/.
Više informacija
MATOMO_SITE_ID¶
ID of the site in Matomo (formerly Piwik) you want to use for tracking Weblate.
Napomena
This integration does not support the Matomo Tag Manager.
Više informacija
MATOMO_URL¶
Full URL (including trailing slash) of a Matomo (formerly Piwik) installation you want to use to track Weblate use. Please check <https://matomo.org/> for more details.
Savjet
This integration does not support the Matomo Tag Manager.
For example:
MATOMO_SITE_ID = 1
MATOMO_URL = "https://example.matomo.cloud/"
Više informacija
NEARBY_MESSAGES¶
Broj prikazanih obližnjih izraza u svakom smjeru u potpunom uređivaču.
This is just a default value, users can adjust this in Korisnički profil.
DEFAULT_PAGE_LIMIT¶
Added in version 4.7.
Default number of elements to display when pagination is active.
PAGURE_CREDENTIALS¶
Added in version 4.3.2.
List for credentials for Pagure servers.
PAGURE_CREDENTIALS = {
"pagure.io": {
"username": "weblate",
"token": "your-api-token",
},
}
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
Više informacija
PASSWORD_MINIMAL_STRENGTH¶
Added in version 5.10.2.
Minimal password score as evaluated by the zxcvbn password strength estimator.
Defaults to 0, which means strength checking is disabled.
Više informacija
PASSWORD_RESET_URL¶
Added in version 5.17.
URL for password reset when authentication is handled by an external identity provider, such as LDAP, SAML, or OAuth.
When set, Forgot your password? on the sign-in page links to this URL instead of Weblate’s built-in password reset page.
PRIVACY_URL¶
Added in version 4.8.1.
URL gdje tvoja Weblate instanca prikazuje svoju politiku privatnosti.
Savjet
When the Legal module module is enabled, this URL takes priority over its internal privacy page in document links. The default privacy template links to this URL when visited directly.
Example:
PRIVACY_URL = "https://weblate.org/terms/"
Više informacija
PRIVATE_COMMIT_EMAIL_OPT_IN¶
Added in version 4.15.
Configures whether the private commit e-mail is opt-in or opt-out.
With True (the default), users use their account e-mail unless they choose a
private commit e-mail. Set to False to use
PRIVATE_COMMIT_EMAIL_TEMPLATE by default.
Savjet
This setting applies to new and existing users who have not explicitly chosen a commit e-mail. Users can still choose their account e-mail in the Račun settings. Bot accounts do not use the private default.
Više informacija
PRIVATE_COMMIT_EMAIL_TEMPLATE¶
Added in version 4.15.
Template to generate a private commit e-mail for a user. Defaults to "user-{user_id}@users.noreply.{site_domain}".
It can contain {user_id}, {username}, {site_title}, and {site_domain}.
Set to a blank string to disable private commit e-mails and use the account e-mail when no commit e-mail has been explicitly chosen.
The default template uses the user ID rather than the username. Changing the template alone does not make private commit e-mails the default.
Promijenjeno u verziji 2026.11: The default previously used "{username}@users.noreply.{site_domain}".
Configure that template explicitly to retain the previous generated addresses.
Explicitly selected commit e-mail addresses are not changed.
Napomena
Using a different commit e-mail is opt-in for users unless configured by
PRIVATE_COMMIT_EMAIL_OPT_IN. Users can configure their commit e-mail in
the Javni profil.
Više informacija
PRIVATE_COMMIT_NAME_OPT_IN¶
Added in version 5.16.
Configures whether the private commit name is opt-in or opt-out.
With True (the default), users use their account name unless they choose a
private commit name. Set to False to use
PRIVATE_COMMIT_NAME_TEMPLATE by default.
Savjet
This setting applies to new and existing users who have not explicitly chosen a commit name. Users can still choose their account name in the Račun settings. Bot accounts use their account name.
Više informacija
PRIVATE_COMMIT_NAME_TEMPLATE¶
Added in version 5.16.
Template to generate a private commit name for a user. Defaults to "{site_title} user {user_id}".
It can contain {user_id}, {username}, {site_title}, and {site_domain}.
Set to a blank string to disable private commit names and use the account name. Changing the template alone does not make private commit names the default.
Napomena
Using a different commit name is opt-in for users unless configured by
PRIVATE_COMMIT_NAME_OPT_IN. Users can configure their commit name in
the Javni profil.
Više informacija
PROJECT_BACKUP_KEEP_COUNT¶
Added in version 4.14.
Defines how many backups per project are kept on the server. Defaults to 3.
Više informacija
PROJECT_BACKUP_KEEP_DAYS¶
Added in version 4.14.
Defines how long the project backups will be kept on the server. Defaults to 30 days.
Više informacija
PROJECT_BACKUP_UPLOAD_MAX_SIZE¶
Added in version 5.17.1.
Configures the maximum size, in bytes, for uploaded project backup ZIP files. Defaults to 536870912 bytes (512 MiB).
In Docker, configure this using the WEBLATE_PROJECT_BACKUP_UPLOAD_MAX_SIZE
environment variable. Docker setups can also be constrained by
CLIENT_MAX_BODY_SIZE; other deployments can be constrained by their
reverse proxy request body-size limit.
Više informacija
PROJECT_BACKUP_IMPORT_MAX_MEMBERS¶
Added in version 5.17.
Defines the maximum number of ZIP entries allowed when importing a project backup.
This is a safeguard against malformed or intentionally fragmented archives. Defaults to 100000 entries.
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_MEMBERS environment variable.
Više informacija
PROJECT_BACKUP_IMPORT_MAX_TOTAL_UNCOMPRESSED_SIZE¶
Added in version 5.17.1.
Defines the maximum total uncompressed size, in bytes, for ZIP entries in an imported project backup. Defaults to 536870912 bytes (512 MiB).
This limits archives that are small when uploaded but expand to much more data during validation or restore.
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_TOTAL_UNCOMPRESSED_SIZE environment
variable.
Više informacija
PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_SIZE¶
Added in version 5.17.
Defines the maximum uncompressed size, in bytes, for a single highly compressed ZIP entry in an imported project backup.
This limit is only applied to entries that are large enough and compress enough to look suspicious. Large low-compression files are intentionally allowed here and are expected to be constrained by the HTTP upload limit. Defaults to 262144000 bytes (250 MiB).
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_SIZE environment
variable.
Više informacija
PROJECT_BACKUP_IMPORT_MIN_RATIO_SIZE¶
Added in version 5.17.
Defines the minimum uncompressed size, in bytes, at which Weblate starts considering the ZIP compression ratio during project backup import.
Smaller files are ignored for the compression-ratio-based validation to avoid rejecting reasonably sized files that compress well. Defaults to 1048576 bytes (1 MiB).
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MIN_RATIO_SIZE environment variable.
Više informacija
PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_RATIO¶
Added in version 5.17.
Defines the maximum allowed ratio between the uncompressed and compressed size for a large ZIP entry during project backup import.
This is used together with
PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_SIZE and
PROJECT_BACKUP_IMPORT_MIN_RATIO_SIZE to detect suspiciously
compressed entries while still allowing large repository pack files and other
low-compression content. Defaults to 250.
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_RATIO environment
variable.
Više informacija
PROJECT_NAME_RESTRICT_RE¶
Added in version 4.15.
Defines a regular expression to restrict project naming. Any matching names will be rejected.
Više informacija
PROJECT_WEB_RESTRICT_HOST¶
Added in version 4.16.2.
Reject using certain hosts in project website. Any subdomain is matched, so
including example.com will block test.example.com as well. The list
should contain lower case strings only, the parsed domain is lower cased before
matching.
Standardna konfiguracija:
PROJECT_WEB_RESTRICT_HOST = {"localhost"}
PROJECT_WEB_RESTRICT_ALLOWLIST¶
Added in version 5.17.
Defines a set of project slugs exempt from
PROJECT_WEB_RESTRICT_HOST, PROJECT_WEB_RESTRICT_NUMERIC,
PROJECT_WEB_RESTRICT_PRIVATE, and
PROJECT_WEB_RESTRICT_RE when validating the project website.
Project slugs are matched case-insensitively.
Pažnja
This exemption weakens outbound URL protections for matching projects,
including the private-target restriction enforced by
PROJECT_WEB_RESTRICT_PRIVATE. Use it only for trusted,
administrator-managed projects where bypassing these checks is intentional.
Standardna konfiguracija:
PROJECT_WEB_RESTRICT_ALLOWLIST = set()
PROJECT_WEB_RESTRICT_NUMERIC¶
Added in version 4.16.2.
Reject using numeric IP address in project website. On by default.
PROJECT_WEB_RESTRICT_PRIVATE¶
Added in version 5.17.
Reject using project website and repository browser URLs pointing to internal or non-public addresses. On by default.
PROJECT_WEB_RESTRICT_RE¶
Added in version 4.15.
Defines a regular expression to limit what can be entered as Web-stranica projekta. Any matching URLs will be rejected.
WEBHOOK_PRIVATE_ALLOWLIST¶
Added in version 5.17.
Defines hostnames or domains exempt from WEBHOOK_RESTRICT_PRIVATE
for outbound webhook delivery. Entries follow Django host matching semantics,
so values such as hooks.internal.example or .internal.example can be
used.
Standardna konfiguracija:
WEBHOOK_PRIVATE_ALLOWLIST = []
Više informacija
WEBHOOK_RESTRICT_PRIVATE¶
Added in version 5.17.
Reject webhook URLs pointing to internal or non-public addresses unless the
target host is included in WEBHOOK_PRIVATE_ALLOWLIST. On by default.
When enabled, hostnames that cannot be resolved during validation are rejected
unless they are explicitly included in WEBHOOK_PRIVATE_ALLOWLIST.
Više informacija
PUBLIC_ENGAGE¶
Added in version 5.16.2.
Allows public engage page even with REQUIRE_LOGIN.
Više informacija
REPORT_EXPIRY¶
Defines how many days generated translation reports are retained. Defaults to 90 days. Changing the value also changes when existing reports become eligible for removal by the daily cleanup task.
RATELIMIT_NOTIFICATION_LIMITS¶
Added in version 5.14.
Limits how many notifications for a single user will be sent out.
Standardna postavka je:
# Multi-level rate limiting for email notifications
# Each tuple contains (max_emails, time_window_seconds)
RATELIMIT_NOTIFICATION_LIMITS = [
# Prevent burst sends - 3 emails per 2 minutes
(3, 120),
# Equalize to avoid getting blocked for too long - 10 emails per hour
(10, 3600),
# Daily limit: 50 emails per day
(50, 86400),
]
API_RATELIMIT_ANON¶
Added in version 2026.10.
Default anonymous API rate limit. Defaults to "100/day".
Rates use a request count and a period of seconds, minutes, hours, or days, for
example "100/hour". A zero count rejects every request covered by this
throttle; None disables this throttle. Anonymous requests without an IP
override are also subject to API_RATELIMIT_USER.
API_RATELIMIT_USER¶
Added in version 2026.10.
Default authenticated API rate limit. Defaults to
"5000/hour". Uses the same rate syntax as API_RATELIMIT_ANON.
Authenticated requests are counted per user; anonymous requests are counted
per client IP. Set None to disable this throttle.
API_RATELIMIT_USER_OVERRIDES¶
Added in version 2026.10.
Mapping of exact usernames to API rate limits. Defaults to an empty dictionary.
Override rates require a positive request count, or None for an exemption.
These rules take precedence over API_RATELIMIT_IP_OVERRIDES.
API_RATELIMIT_USER_OVERRIDES = {"automation": "20000/hour"}
API_RATELIMIT_IP_OVERRIDES¶
Added in version 2026.10.
Mapping of IPv4 or IPv6 addresses and CIDR networks to API rate limits. Defaults
to an empty dictionary. The most specific matching network applies to both
anonymous and authenticated requests, unless a username override matches.
CIDRs must specify network addresses; duplicate normalized networks are rejected.
Override rates require a positive request count, or None for an exemption.
API_RATELIMIT_IP_OVERRIDES = {
"192.0.2.42": None,
"198.51.100.0/24": "10000/hour",
"2001:db8::/48": "10000/hour",
}
See API rate limiting for counting behavior and trusted proxy requirements.
RATELIMIT_ATTEMPTS¶
Maximum number of authentication attempts before rate limiting is applied.
Defaults to 5.
Više informacija
RATELIMIT_WINDOW¶
How long authentication is accepted after rate limiting applies.
An amount of seconds, defaulting to 300 (5 minutes).
Više informacija
RATELIMIT_LOCKOUT¶
How long authentication is locked after rate limiting applies.
An amount of seconds defaulting to 600 (10 minutes).
Više informacija
RATELIMIT_BULK_EDIT_ATTEMPTS¶
Maximum browser bulk-edit submissions per user during
RATELIMIT_BULK_EDIT_WINDOW. Defaults to 10. Preview requests count
toward this limit.
RATELIMIT_BULK_EDIT_WINDOW¶
Window for browser bulk-edit rate limiting, in seconds. Defaults to 60.
RATELIMIT_BULK_EDIT_LOCKOUT¶
Lockout after exceeding the browser bulk-edit rate limit, in seconds. Defaults to 60.
RATELIMIT_MACHINERY_ATTEMPTS¶
Maximum interactive machine-translation requests per user during
RATELIMIT_MACHINERY_WINDOW. Defaults to 30. The usual superuser
rate-limit exemption applies.
Interactive requests also allow at most two concurrent calls per user per configured service installation. Other installations remain available. Excess requests return HTTP 429. Slots are released on completion or failure. Disconnected requests retain their slots until the provider work finishes, including synchronous calls already running in executor threads. Abandoned distributed locks expire after one hour.
RATELIMIT_MACHINERY_WINDOW¶
Window for interactive machine-translation rate limiting, in seconds. Defaults to 60.
RATELIMIT_MACHINERY_LOCKOUT¶
Lockout after exceeding the interactive machine-translation rate limit, in seconds. Defaults to 60.
RATELIMIT_OCR_ATTEMPTS¶
Maximum screenshot image text searches per signed-in session during
RATELIMIT_OCR_WINDOW. Defaults to 6.
RATELIMIT_OCR_WINDOW¶
Window for screenshot image text search rate limiting, in seconds. Defaults to 60.
RATELIMIT_OCR_LOCKOUT¶
Lockout after exceeding the screenshot image text search rate limit, in seconds. Defaults to 60.
REGISTRATION_ALLOW_BACKENDS¶
Added in version 4.1.
List of authentication backends to allow registration from. This only limits new registrations, users can still authenticate and add authentication using all configured authentication backends.
It is recommended to keep REGISTRATION_OPEN on while limiting
registration backends, otherwise users will be able to register, but Weblate
will not show links to register in the user interface.
Example:
REGISTRATION_ALLOW_BACKENDS = ["azuread-oauth2", "azuread-tenant-oauth2"]
Savjet
The backend names match names used in the URL for authentication.
Više informacija
REGISTRATION_CAPTCHA¶
Je li registracija novih računa zaštićena putem CAPTCHA. Standardno je aktivirano.
If turned on, a CAPTCHA is added to all pages where a user enters their e-mail address:
New account registration.
Password recovery.
Adding e-mail to an account.
Contact form for users that are not signed in.
The protection currently consists of following steps:
Mathematical captcha to be solved by the user.
Proof of work challenge calculated by the browser. The difficulty can be adjusted using
ALTCHA_COST,ALTCHA_MEMORY_COST, andALTCHA_PARALLELISM.
REGISTRATION_EMAIL_MATCH¶
Allows you to filter which e-mail addresses can register.
The restriction also applies to addresses imported from authentication
providers and addresses selected as public or commit e-mail addresses.
Provider addresses that do not match are skipped. This includes GitHub
noreply addresses: to use them for commits, explicitly allow
users.noreply.github.com in the expression.
Defaults to .*, which allows any e-mail address to be registered.
You can use it to restrict registration to a single e-mail domain:
REGISTRATION_EMAIL_MATCH = r"^.*@weblate\.org$"
REGISTRATION_ALLOW_DISPOSABLE_EMAILS¶
Added in version 5.16.1.
Allow registration with disposable e-mail domains. When enabled, the
disposable domain blocklist is bypassed. Default is False.
This also applies to addresses imported from authentication providers and addresses selected as public or commit e-mail addresses.
Više informacija
REGISTRATION_OPEN¶
Je li registracija novih računa trenutačno dopuštena. Standardno je aktivirano.
This setting affects built-in authentication by e-mail address or through the
Python Social Auth (you can allow certain back-ends using
REGISTRATION_ALLOW_BACKENDS).
Napomena
If using third-party authentication methods such as LDAP autentifikacija, it just hides the registration form, but new users might still be able to sign in and create accounts.
Više informacija
REGISTRATION_REBIND¶
Added in version 4.16.
Allow signed-out users to link a new third-party authentication provider to an existing account when its e-mail address matches. Turn this on when migrating between trusted authentication providers. Existing users can add a provider while signed in regardless of this setting. E-mail registration and password reset use their own confirmation flow and are not affected.
Napomena
Off by default. When enabled, Weblate trusts configured providers’ e-mail claims for account matching. Use only providers that verify these addresses; otherwise another person could link an identity to an existing account.
REPOSITORY_ALERT_THRESHOLD¶
Added in version 4.0.2.
Threshold for triggering an alert for outdated repositories, or ones that contain too many changes. Defaults to 25.
Više informacija
OIDC_PROVIDER_ENABLED¶
Added in version 2026.11.
Enable Weblate’s optional OpenID Connect identity provider. Defaults to False.
Install the oidc extra, add weblate.oidc and oauth2_provider to
INSTALLED_APPS, and configure signing keys before enabling it.
OAUTH2_PROVIDER¶
Added in version 2026.11.
Configuration dictionary for the optional OpenID Connect identity provider, using
Django OAuth Toolkit settings.
OIDC_RSA_PRIVATE_KEY must contain an unencrypted RSA private key of at
least 2048 bits. OIDC_RSA_PRIVATE_KEYS_INACTIVE can contain previous keys
for rotation. Load keys from protected files rather than storing them in
version control.
Weblate supplies identity scopes, its claim validator, the canonical issuer, HTTPS redirect requirements, S256 PKCE, one-hour access and ID token lifetimes, and rotating refresh tokens with a 30-day idle expiry. Entries in this dictionary override these defaults. Keep the Weblate claim validator to preserve account eligibility checks and identity claim mapping. The provider accepts RS256 authorization-code clients and refresh tokens. Public clients authenticate using S256 PKCE without a client secret.
Weblate enables the toolkit’s RFC 9700 protections by default. Authorization
responses include the iss issuer parameter, and newly issued access and
refresh tokens are stored as hashes. Enabling hashed storage does not erase
plaintext token values already present in the database.
REFRESH_TOKEN_GRACE_PERIOD_SECONDS defaults to 0. A client that loses a
refresh response may need the user to sign in again. A nonzero grace period
requires setting COMPLIANT_BCP_RFC9700_TOKEN_STORAGE to False, which stores
usable token values in the database. The toolkit’s deployment checks reject
combining hashed storage with a nonzero grace period. They also reject disabling
refresh-token replay protection or PKCE, allowing HTTP callbacks, or enabling
wildcard redirect matching while the corresponding compliance gates are enabled.
REQUIRE_LOGIN¶
Added in version 4.1.
This enables django.contrib.auth.middleware.LoginRequiredMiddleware
and configures REST framework to require authentication for all API endpoints.
Promijenjeno u verziji 5.15: Weblate now relies on Django built-in middleware.
Napomena
This is implemented in the Primjer konfiguracije. For Docker, use
WEBLATE_REQUIRE_LOGIN.
Više informacija
GOOGLE_CLOUD_ERROR_REPORTING¶
Configuration for Collecting error reports and monitoring performance using Google Cloud Error Reporting.
Set to None to disable the integration, or set to a dictionary of keyword
arguments for the Google Cloud Error Reporting client.
Weblate automatically supplies service as weblate and version as
the current Weblate version or Git revision. Explicit values in the dictionary
override these defaults.
OPENTELEMETRY_ENABLED¶
Added in version 2026.6.
Enable backend tracing using OpenTelemetry. Disabled by default.
Traces are exported only when this is enabled and
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT is configured.
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT¶
OTLP HTTP traces endpoint for OpenTelemetry, for example
https://collector.example.com/v1/traces.
OPENTELEMETRY_EXPORTER_OTLP_HEADERS¶
Additional HTTP headers for the OpenTelemetry OTLP exporter. Defaults to an empty dictionary.
OPENTELEMETRY_EXTRA_RESOURCE_ATTRIBUTES¶
Additional OpenTelemetry resource attributes. Defaults to an empty dictionary.
OPENTELEMETRY_SERVICE_NAME¶
Ime usluge OpenTelemetry. Standardno je weblate.
OPENTELEMETRY_TRACES_SAMPLE_RATE¶
Configure sampling rate for OpenTelemetry traces. Set to 1 to trace all events, 0 (the default) disables tracing.
SENTRY_DSN¶
Sentry DSN to use for Collecting error reports and monitoring performance.
Više informacija
SENTRY_ENVIRONMENT¶
Configures environment for Sentry. Defaults to devel.
SENTRY_MONITOR_BEAT_TASKS¶
Added in version 5.13.
Configure whether to monitor Celery Beat tasks with Sentry. Defaults to True.
SENTRY_PROFILES_SAMPLE_RATE¶
Configure sampling rate for performance monitoring. Set to 1 to profile all traced events (the default), 0 disables profiling.
Više informacija
SENTRY_SEND_PII¶
Allow Sentry to collect certain personally identifiable information. Turned off by default.
Promijenjeno u verziji 5.7: This is turned off by default now, used to be turned on by default.
SENTRY_TRACES_SAMPLE_RATE¶
Configure sampling rate for profiling monitoring. Set to 1 to trace all events, 0 (the default) disables tracing.
Više informacija
SIMPLIFY_LANGUAGES¶
Use simple language codes for default language/country combinations.
For example an fr_FR translation will use the fr language code.
This is usually the desired behavior, as it simplifies listing languages
for these default combinations.
Turn this off if you want to different translations for each variant.
SITE_DOMAIN¶
Configures site domain. Necessary to produce correct absolute links in many scopes (for example activation e-mails, notifications or RSS feeds).
If Weblate is running on a non-standard port, include it here as well.
Primjeri:
# Production site with domain name
SITE_DOMAIN = "weblate.example.com"
# Local development with IP address and port
SITE_DOMAIN = "127.0.0.1:8000"
Napomena
This setting should only contain the domain name. For configuring protocol,
(turning on and enforcing HTTPS) use ENABLE_HTTPS and for changing
the URL, use URL_PREFIX.
Savjet
On a Docker container, the site domain is configured through
WEBLATE_ALLOWED_HOSTS.
SITE_TITLE¶
Site title to be used for the website and sent e-mails.
SPECIAL_CHARS¶
Additional characters to include in the visual keyboard, Vizualna tipkovnica.
The default value is:
SPECIAL_CHARS = ("\t", "\n", "\u00a0", "…")
SINGLE_PROJECT¶
Redirects users directly to a project or component instead of showing
the dashboard. You can either set it to True so it only works
if there is actually only single project in Weblate. Alternatively, set
the project slug, and it will redirect unconditionally to this project.
Example:
SINGLE_PROJECT = "test"
SSH_EXTRA_ARGS¶
Added in version 4.9.
Allows adding custom parameters when Weblate is invoking SSH. Useful when connecting to servers using legacy encryption or other non-standard features.
For example when SSH connection in Weblate fails with Unable to negotiate with legacyhost: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1, you can turn that on using:
SSH_EXTRA_ARGS = "-oKexAlgorithms=+diffie-hellman-group1-sha1"
Savjet
The string is evaluated by the shell, so ensure any whitespace and special characters is quoted.
Upozorenje
This is trusted administrator-controlled configuration. Arbitrary SSH
options can alter connection routing and override the address pinning
provided by VCS_RESTRICT_PRIVATE. Administrators are responsible
for the security and compatibility impact of all configured arguments.
Više informacija
STATUS_URL¶
The URL where your Weblate instance reports its status.
SUPPORT_STATUS_CHECK¶
Added in version 5.5.
Defaults to True. When enabled, superusers without integrated support are
redirected after login to a page offering professional support, at most once
every 180 days per account. The reminder starts once the installation has a
change older than 14 days and waits for an HTML page navigation. A
Continue to Weblate action returns to the intended page.
Set this to False to disable the redirect. This does not hide support or
donation links elsewhere in the interface.
Savjet
Improve your Weblate experience by purchasing a support subscription and boosting Weblate progress instead of turning this off.
TRANSLATION_MAX_SIZE¶
Added in version 2026.11.2.
Maximum size, in bytes, of a translation file before parsing. Applies to all
formats and to repository files as well as uploads, including source templates
and intermediate files. For directory-based formats, the limit applies to each
metadata file. When unset or None, uses TRANSLATION_UPLOAD_MAX_SIZE
(50 MB by default). An explicit value overrides this fallback.
Uploads must also satisfy TRANSLATION_UPLOAD_MAX_SIZE, even when
TRANSLATION_MAX_SIZE is higher. This byte limit does not bound decompression
or other expansion performed by a parser.
Translation files are also limited to 100,000 logical content strings per file before database synchronization or import. Existing tighter limits for compressed formats remain in effect.
In Docker, configure this using WEBLATE_TRANSLATION_MAX_SIZE.
TRANSLATION_UPLOAD_MAX_SIZE¶
Added in version 5.17.1.
Configures the maximum size, in bytes, for uploaded translation files. Defaults to 50 MB.
Uploads must also satisfy TRANSLATION_MAX_SIZE.
In Docker, configure this using the WEBLATE_TRANSLATION_UPLOAD_MAX_SIZE
environment variable.
UNUSED_ALERT_DAYS¶
Added in version 4.17.
Configures when the Component seems unused alert is triggered.
Defaults to 365 days, set to 0 to turn it off.
UPDATE_LANGUAGES¶
Added in version 4.3.2.
Controls whether languages database should be updated when running database
migration and is on by default. This setting has no effect on invocation
of setuplang.
Upozorenje
The languages display might become inconsistent with this. Weblate language definitions expand over time and it will not display language code for the defined languages.
Više informacija
URL_PREFIX¶
This setting allows you to run Weblate under some path (otherwise it relies on being run from the webserver root).
Napomena
To use this setting, you also need to configure your server to strip this prefix.
For example with WSGI, this can be achieved by setting WSGIScriptAlias.
Savjet
The prefix should start with a /.
Example:
URL_PREFIX = "/translations"
Napomena
This setting does not work with Django’s built-in server, you would have to
adjust urls.py to contain this prefix.
When using a URL prefix, expose Weblate’s prefixed robots.txt at the origin’s
/robots.txt through your reverse proxy. Its crawl rules and sitemap URL
include the configured prefix. If other applications share the origin, merge
their crawl rules in the proxy-served document as appropriate.
VCS_ALLOW_HOSTS¶
Added in version 5.15.
A set of hosts to allow when configuring VCS URL. Defaults to an empty set, which does no filtering at all.
When VCS_RESTRICT_PRIVATE is enabled, matching hosts are also exempt
from the private-target restriction. This exemption is also needed for VCS
backends which cannot bind the client connection to the address validated by
Weblate, such as Mercurial and Subversion.
Use VCS_PRIVATE_ALLOWLIST instead when hosts should be exempt from
the private-target restriction without filtering access to other public hosts.
VCS_PRIVATE_ALLOWLIST¶
Added in version 2026.9.
Defines hostnames or domains exempt from VCS_RESTRICT_PRIVATE.
Unlike VCS_ALLOW_HOSTS, this setting does not filter access to other
hosts. Entries follow Django host matching semantics, so values such as
vcs.internal.example or .internal.example can be used.
The exemption is needed for VCS backends which cannot bind the client connection to the address validated by Weblate, such as Mercurial and Subversion. It can also be used to allow private Git repository hosts.
When VCS_ALLOW_HOSTS is non-empty, its host filter still applies and
takes precedence over this allowlist.
Standardna konfiguracija:
VCS_PRIVATE_ALLOWLIST = []
Više informacija
VCS_ALLOW_SCHEMES¶
Added in version 5.15.
A set of URL schemes to allow when configuring VCS URL. Only https and
ssh are allowed by default.
The file scheme and bare filesystem paths are disabled for security reasons
because they could allow component editors to access repositories on the server
filesystem. Including file in this setting prevents Weblate from starting
with an ImproperlyConfigured error.
VCS_RESTRICT_PRIVATE¶
Added in version 5.17.
Reject VCS repository URLs pointing to internal or non-public addresses unless
the target host is included in VCS_ALLOW_HOSTS or matches
VCS_PRIVATE_ALLOWLIST. On by default.
When enabled, hostnames that cannot be resolved during validation are rejected
unless they are trusted by VCS_ALLOW_HOSTS or
VCS_PRIVATE_ALLOWLIST.
For Git repositories accessed over HTTPS or SSH, Weblate binds each VCS command
to the addresses approved during runtime validation for direct connections.
Configured HTTP proxies are trusted infrastructure and resolve repository
hostnames instead. Automatic redirect following remains disabled. Permanent
same-host HTTP redirects are probed separately through the same outbound route,
validated, and stored as the canonical component repository URL. Cross-host
redirects have to be configured manually. Mercurial, Subversion, custom VCS
backends, and additional URL schemes are rejected unless the target host is
trusted by VCS_ALLOW_HOSTS or VCS_PRIVATE_ALLOWLIST.
Network-level egress filtering which blocks internal, loopback, link-local, reserved, and cloud metadata address ranges is recommended as defense in depth, especially for custom integrations and administrator-installed extensions.
VCS_API_DELAY¶
Added in version 4.15.1.
Configures minimal delay in seconds between third-party API calls in GitHub zahtjevi za preuzimanje, GitLab zahtjevi za sjedinjavanje, Gitea zahtjevi za preuzimanje, Pagure zahtjevi za sjedinjavanje, and Azure DevOps zahtjevi za preuzimanje.
This rate-limits API calls from Weblate to these services to avoid overloading them.
If you are being limited by secondary rate-limiter at GitHub, increasing this might help.
The default value is 10.
VCS_API_TIMEOUT¶
Added in version 5.15.
Configures timeout in seconds for third-party API calls such as forking or creating merge requests in GitHub zahtjevi za preuzimanje, GitLab zahtjevi za sjedinjavanje, Gitea zahtjevi za preuzimanje, Pagure zahtjevi za sjedinjavanje, and Azure DevOps zahtjevi za preuzimanje.
The default value is 10.
VCS_BACKENDS¶
Configuration of available VCS backends.
Napomena
Weblate offers configured backends when their required commands are available. Exact command versions are validated by the deployment and periodic configuration health checks.
Savjet
You can limit choices or add custom VCS back-ends by using this.
VCS_BACKENDS = ("weblate.vcs.git.GitRepository",)
Više informacija
VCS_CLONE_DEPTH¶
Configures how deep cloning of repositories Weblate should do.
Napomena
Currently this is only supported in Git. By default Weblate does shallow clones of the repositories to make cloning faster and save disk space. Depending on your usage (for example when using custom Dodaci), you might want to increase the depth or turn off shallow clones completely by setting this to 0.
Savjet
In case you get fatal: protocol error: expected old/new/ref, got 'shallow
<commit hash>' error when pushing from Weblate, turn off shallow clones completely by setting:
VCS_CLONE_DEPTH = 0
WEBLATE_ADDONS¶
List of add-ons available for use. To use them, they have to be enabled for a given translation component. By default this includes all built-in add-ons, when extending the list you will probably want to keep existing ones enabled, for example:
WEBLATE_ADDONS = (
# Built-in add-ons
"weblate.addons.gettext.GenerateMoAddon",
"weblate.addons.gettext.UpdateLinguasAddon",
"weblate.addons.gettext.UpdateConfigureAddon",
"weblate.addons.gettext.MsgmergeAddon",
"weblate.addons.cleanup.CleanupAddon",
"weblate.addons.consistency.LanguageConsistencyAddon",
"weblate.addons.discovery.DiscoveryAddon",
"weblate.addons.flags.SourceEditAddon",
"weblate.addons.flags.TargetEditAddon",
"weblate.addons.flags.SameEditAddon",
"weblate.addons.flags.BulkEditAddon",
"weblate.addons.generate.GenerateFileAddon",
"weblate.addons.properties.PropertiesSortAddon",
"weblate.addons.git.GitSquashAddon",
"weblate.addons.removal.RemoveComments",
"weblate.addons.removal.RemoveSuggestions",
"weblate.addons.resx.ResxUpdateAddon",
"weblate.addons.autotranslate.AutoTranslateAddon",
"weblate.addons.cdn.CDNJSAddon",
# Add-on you want to include
"weblate.addons.example.ExampleAddon",
)
Napomena
Removing the add-on from the list does not uninstall it from the components. Weblate will crash in that case. Please uninstall the add-on from all components prior to removing it from this list.
ADDON_ACTIVITY_LOG_EXPIRY¶
Added in version 5.6.
Configures how long activity logs for add-ons are kept. Defaults to 180 days.
WEBLATE_EXPORTERS¶
Added in version 4.2.
List of available exporters offering translation downloads or glossaries in various file formats.
Više informacija
WEBLATE_FORMATS¶
List of file formats available for use.
Napomena
The default list already has the common formats.
Više informacija
MACHINERY_ERROR_KEEP_DAYS¶
Added in version 2026.11.
Configures how long translation service error logs are kept, in days. Defaults to 30. A daily background task removes older entries.
WEBLATE_MACHINERY¶
Added in version 4.13.
List of translation services available for use.
WEBLATE_GPG_IDENTITY¶
Identity used by Weblate to sign Git commits, for example:
WEBLATE_GPG_IDENTITY = "Weblate <weblate@example.com>"
The Weblate GPG keyring is searched for a matching key (home/.gnupg under
DATA_DIR). If not found, a key is generated, please check
Potpisivanje Git promjena s GnuPG-om for more details.
Više informacija
WEBSITE_REQUIRED¶
Defines whether Web-stranica projekta has to be specified when creating a project. On by default, as that suits public server setups.
WEBSITE_ALERTS_ENABLED¶
Added in version 5.17.
Default: True
Defines whether Weblate should check project website availability and show alerts for unreachable project websites.
When set to False, Weblate will skip website availability checks and
will not generate project website alerts. This is useful when:
Your websites are behind firewalls that block Weblate’s requests
You want to avoid 403/503-type errors from bot protection
Project website availability is not a concern for your installation
Više informacija
Configuring version control credentials¶
Savjet
This section describes VCS credential variables as
GITHUB_CREDENTIALS, GITLAB_CREDENTIALS,
GITEA_CREDENTIALS, PAGURE_CREDENTIALS,
BITBUCKETSERVER_CREDENTIALS.
The configuration dictionary consists of credentials defined for each API host.
The API host might be different from what you use in the web browser, for
example GitHub API is accessed as api.github.com.
The credentials can also be overridden in URL repozitorija za prijenos or Repozitorij izvornog koda (if push URL is not configured), these take precedence over the ones specified in the configuration file.
The following configuration is available for each host:
usernameAPI user, required.
tokenAPI token for the API user, required.
schemeAdded in version 4.18.
Scheme override. Weblate attempts to parse scheme from the repository URL and falls backs to
https. If you are running the API server internally, you might want to usehttpinstead, but consider security.
Savjet
In the Docker container, the credentials can be configured using environment variables, see Code-hosting sites credentials.
Anonymous bot protection¶
Added in version 2026.11.
Upozorenje
This feature is a technology preview for evaluating application-aware bot protection as an alternative to Anubis. Its configuration and behavior may change, and it may be removed if it does not prove sufficiently useful. Long-term maintenance is not guaranteed.
While verification runs automatically, visitors see a randomly selected tip about Weblate features.
BOT_PROTECTION_ENABLED¶
Default: False. Enable self-hosted, proactive proof of work for anonymous
visitors. Place weblate.utils.bot_protection.BotProtectionMiddleware after
Django’s session middleware and before Weblate’s authentication middleware,
following the example settings. Authenticated users bypass protection, including
when no proof-of-work cookie exists. Existing authentication and API rate limits
remain in effect. Proof of work never grants authentication or permissions.
Anonymous HTML GET requests receive an automatic challenge. HEAD and unsafe
methods receive HTTP 403 without challenge HTML; request bodies are never
replayed. REST API requests without an explicit HTML Accept media type are
exempt. HTML API browsing requires verification. Changing Accept on a regular
page route does not exempt it. Account routes under /accounts/ are exempt so
sign-in flows and redirects to login work without verification. Hooks, widget
images (including legacy image redirects), feeds, OIDC provider routes under
/oidc/, static files, health, robots, and well-known routes are exempt.
Hosted integration API routes under /hosted/api/ are exempt when
wlhosted.integrations is installed; their signed-payload authentication
remains in effect.
Widget configuration pages remain protected. Public assets, including custom
CSS, manifests, icons, and Open Graph images, are exempt. The JavaScript
translation catalog and Git exporter protocol routes, including clone
redirects, are also exempt so they can use their existing localization and
authentication. Login exemptions and bot exemptions are independent; making a
view public does not automatically bypass bot protection.
BOT_PROTECTION_DIFFICULTY¶
Default: 4. Number of leading hexadecimal zeroes required, from 1 to 6.
Four zeroes require an average of 65,536 SHA-256 attempts. ALTCHA v2 runs with
SHA-256 and cost 1: challenge generation performs no candidate hashing and
verification performs one candidate hash, independent of difficulty. Registration
and other form CAPTCHAs retain their existing Argon2id configuration.
Challenge and clearance lifetime¶
BOT_PROTECTION_CHALLENGE_AGE defaults to 300 seconds (allowed: 1–3600).
BOT_PROTECTION_COOKIE_AGE defaults to 3600 seconds (allowed: 1–86400).
Clearance has a fixed expiry and is bound to the client IP and deployment.
Cookies are host-only, Secure, HttpOnly, and SameSite=Lax. HTTPS is required.
Network changes require another challenge. Shared NAT clients can share copied
clearance; PoW increases harvesting cost but does not prevent capable solvers.
The challenge uses a separate CSRF cookie and Django’s token and origin checks,
without creating an application session. After solving a challenge, the browser checks its clearance cookie through
/-/pow/check/ before navigating, without invoking the destination view. An
expired challenge is refreshed automatically once; repeated expiry and other
failures leave Retry and sign-in available. Failure messages distinguish invalid
verification, replay, cookie/CSRF problems, and service unavailability.
Browser workers calculate the solution without blocking the main thread. Visitors without JavaScript or workers can sign in instead. Challenge assets must be available from the same origin.
BOT_PROTECTION_CACHE_ALIAS¶
Default: "default". Shared Redis or Memcached cache used to atomically consume
valid solutions once. No replay entries are created for unsolved challenges.
Cache failures reject verification with HTTP 503. Ordinary clearance checks do
not access the database or shared cache. Sessionless challenge generation only
accesses the shared cache to increment a best-effort issued-challenge counter.
Keep the replay cache available and sized to retain entries through challenge
expiry: eviction or cache loss can permit reuse of otherwise valid solutions.
Normal Django session validation still accesses the configured session backend.
The management Performance report shows issued challenges and
verification outcomes for the current hour and the previous 24 completed hours.
It also shows requests rejected with pow_required without issuing a challenge
because of their method or Accept header. These counts exclude explicit
bot_denied policy denials and exempt requests, and count requests rather than
unique clients.
Hours are aligned to UTC. Hourly buckets in the PoW cache expire after 25 hours;
eviction and outages can lose counts. Counter failures never change challenge
or verification responses. Following an upgrade from minute buckets, totals
populate as new events occur.
These counts are also available from GET /api/metrics/. Issued challenges
and verification outcomes indicate relative volumes, not an exact count of
unattempted challenges: verification requests can include retries, replays, and
malformed submissions.
The weblate.bot_protection logger emits structured verification events with
event, reason, status, and count fields, without proof payloads or
client identifiers. Configure a log handler that retains these fields for
diagnosis during cache outages. Clearance checks remain independent of the
cache; issued-challenge, pow_required, and verification outcome counters use it.
BOT_PROTECTION_EXEMPT_PATHS¶
Default: []. Additional paths relative to the Weblate deployment prefix.
A trailing slash exempts that entire path prefix; other entries match exactly.
Use narrow exceptions for integrations that cannot solve challenges.
BOT_PROTECTION_EXEMPT_AGENTS¶
Default: []. Case-insensitive User-Agent regular expressions that bypass bot
protection for all HTTP methods and paths. Patterns use search matching against
the first 1,024 characters of the header. Invalid expressions prevent startup
when bot protection is enabled.
Use this for uptime monitoring of application pages, such as measuring latency
on /. Simple health checks on /healthz/ are already exempt.
For a monitor configured to send the User-Agent Weblate-Uptime/1.0:
BOT_PROTECTION_EXEMPT_AGENTS = [r"^Weblate-Uptime/1\.0$"]
These exemptions trust a client-supplied, spoofable header. They override unwanted-agent denial and do not depend on crawler verification or robots.txt. They bypass only bot protection: authentication, permissions, and existing rate limits still apply. The proof-of-work verification endpoint retains its normal validation.
Verified crawler configuration¶
BOT_PROTECTION_CRAWLER_FILE defaults to an empty string, selecting the packaged
IP snapshot. The initial set follows Anubis’s IP-based allowed-crawler definitions
and adds SeznamBot:
Googlebot, Bingbot, Applebot, DuckDuckBot, QwantBot, MojeekBot, Marginalia, Common Crawl (CCBot), Arquivo.pt, and SeznamBot use official address feeds.
KagiBot, Internet Archive, and Wikimedia’s Citoid and Zotero translation services use reviewed bundled ranges, maintained with Weblate releases.
Verification requires a matching User-Agent and source IP. Verified crawlers bypass protection only for GET and HEAD requests to paths allowed by the shared robots.txt crawl policy, including sitemap documents. Other requests follow the normal challenge or deny policy. Explicit endpoint exemptions, configured exempt paths, valid clearance, and authenticated sessions still take precedence. Internet Archive and Arquivo.pt deliberately allow their listed networks regardless of User-Agent, following Anubis so that browser-like archival requests work. These exceptions trust the service networks, not individual crawler processes. No crawler bypass grants authentication or access to private content.
Set an absolute writable filename and run weblate update_crawler_ranges daily
using an operator-managed scheduler, then restart all application workers to
load the updated snapshot. It downloads bounded datasets only from
fixed official HTTPS sources and publishes validated updates atomically. A failed
provider retains its previous ranges and retrieval time; successful providers
still update. The command exits unsuccessfully and lists failed providers, so
monitor its exit status. Administrator-defined entries are preserved.
HTTP requests never download ranges or perform DNS lookups.
Crawler snapshots are loaded once during application startup. Requests use parsed networks in memory without checking file freshness or retrieval age. Ranges remain active until restart; packaged snapshots are updated through Weblate releases. Custom snapshot updates also require restarting application workers. Retrieval timestamps are metadata and do not expire ranges.
BOT_PROTECTION_CRAWLER_RULES defaults to {} and extends or overrides the
mapping from provider identifiers to User-Agent regular expressions. Built-in
identifiers are googlebot, bingbot, applebot, duckduckbot,
qwantbot, mojeekbot, marginalia, commoncrawl, arquivo-pt,
seznambot, kagibot, internet-archive, and wikimedia-citoid.
Custom providers must also have verified CIDRs in the local snapshot’s ranges
mapping and a Unix retrieval timestamp in its refreshed_at mapping, both keyed
by provider identifier. Record official sources when maintaining custom ranges.
Unwanted crawler configuration¶
BOT_PROTECTION_UNWANTED_AGENTS defaults to [] and accepts User-Agent
regular expressions. BOT_PROTECTION_UNWANTED_ACTION defaults to
"challenge"; use "deny" to return HTTP 403 instead. Valid clearance and
session authentication take precedence. These rules are an administrative
policy, not verified identity. No GeoIP, fingerprinting, or behavioral scoring
is performed.
Deploy behind HTTPS and configure Running behind reverse proxy client-IP handling correctly. Do not trust client-supplied forwarding headers. Disable shared proxy caching for protected application routes and preserve no-store responses and cookies. Apply proxy body-size and connection limits: application PoW does not protect against volumetric network attacks.
Benchmarking¶
Use a disposable HTTPS deployment with production-like data and proxy caching
disabled. Copy Cookie headers for an authenticated browser and a cleared anonymous
browser into separate private files. Run the following command, supplying all
application worker process IDs with repeated --server-pid arguments:
.venv/bin/python scripts/benchmark-bot-protection.py https://test.example/projects/ \
--authenticated-cookie-file /tmp/auth-cookie \
--clearance-cookie-file /tmp/pow-cookie --server-pid 1234
The script reports requests per second, worker CPU seconds, resident memory, status counts, and p50/p95/p99 latency at concurrency 1, 32, and 128. It compares authenticated, cleared anonymous, new anonymous, and repeated unsolved requests. Distinct anonymous cookie states simulate many visitors without creating Django sessions; to measure distinct source IPs, run load generators on multiple hosts. Supply process IDs for the shared cache as well when measuring its CPU cost. Cookie files contain credentials: remove them after the benchmark. Record machine specifications, worker counts, page data, proxy configuration, and cache setup alongside results. Check status counts to catch expired cookies during a run.