Policy
It is possible to set a default site policy for all your WordPress sites. The default site policy consists of a JSON object of settings that will be applied to the WordPress site upon the initial activation of the Patchstack plugin.
Setting up a default policy
Section titled “Setting up a default policy”- Head to https://app.patchstack.com/settings/integrations
- Scroll down to the “Default Site Policy” section.
- Modify the JSON list and add or adjust the list per your needs.
- Click the “Save Policy” button.
All of the options that can be set can be found here under “Registered configuration options”.
Note that some options cannot be set, in particular dynamic options which change often.
Example policy
Section titled “Example policy”The following per-site policy keeps the PHP firewall enabled and disables optional hardening, CAPTCHA, login bans, 2FA enforcement and activity logging. For existing .htaccess rules, legacy automatic updates and network-wide settings, follow the additional steps in minimal mode. A new default policy does not retrofit these settings onto already connected sites.
{ "patchstack_basic_firewall": 1, "patchstack_disable_htaccess": 1, "patchstack_basicscanblock": 0, "patchstack_prevent_default_file_access": 0, "patchstack_index_views": 0, "patchstack_block_debug_log_access": 0, "patchstack_block_fake_bots": 0, "patchstack_proxy_comment_posting": 0, "patchstack_image_hotlinking": 0, "patchstack_pluginedit": 0, "patchstack_userenum": 0, "patchstack_hidewpversion": 0, "patchstack_application_passwords_disabled": 0, "patchstack_xmlrpc_is_disabled": 0, "patchstack_json_is_disabled": 0, "patchstack_add_security_headers": 0, "patchstack_disable_curl_decoding": 0, "patchstack_mv_wp_login": 0, "patchstack_login_2fa": 0, "patchstack_block_bruteforce_ips": 0, "patchstack_captcha_on_comments": 0, "patchstack_captcha_login_form": 0, "patchstack_captcha_registration_form": 0, "patchstack_captcha_reset_pwd_form": 0, "patchstack_activity_log_is_enabled": 0, "patchstack_activity_log_failed_logins": 0, "patchstack_activity_log_failed_logins_db": 0}Considerations
Section titled “Considerations”- For team accounts, the owner’s policy will always apply, except for Customer seats — those use the Customer’s own policy instead.
- The policy can also be programmatically set through the Patchstack App API.
- The policy will only be applied during the first activation of the WordPress plugin.
- This avoids overwriting settings that were manually configured in the past.