Skip to content

WP options

The list below are all WordPress related options that are being registered by Patchstack in its WordPress plugin.
Also refer to the section on this page on how to disable all features of Patchstack except the firewall engine.


Patchstack WordPress Options
Option NameValue TypeDefaultDescription
disable_htaccessboolean0Disable .htaccess features
basicscanblockboolean1Block readme.txt access (.htaccess)
prevent_default_file_accessboolean1Prevent default wordpress file access (.htaccess)
index_viewsboolean1Disable index views (.htaccess)
block_debug_log_accessboolean1Block access to debug.log file (.htaccess)
plugineditboolean1Disable plugin/theme editor
userenumboolean1Disable user enumeration to block users from identifying your usernames
hidewpversionboolean1Hide WordPress version in the meta tag of the HTML output
application_passwords_disabledboolean1Block WordPress application password feature
xmlrpc_is_disabledboolean1Restrict XML-RPC access to authenticated users only
json_is_disabledboolean0Restrict WP REST API access to authenticated users only
add_security_headersboolean1Add security headers
mv_wp_loginboolean0Whether or not to rename the WordPress login page
rename_wp_loginstringString slug to rename the WordPress login page to
login_2faboolean0Turn on two factor authentication
captcha_typestringv2v2 = checkbox v2, invisible = invisible v2, v3 = invisible v3, turnstile = Cloudflare turnstile
captcha_public_keystringIf captcha_type == v2, this must be set
captcha_private_keystringIf captcha_type == v2, this must be set
captcha_public_key_v3stringIf captcha_type == invisible, this must be set
captcha_private_key_v3stringIf captcha_type == invisible, this must be set
captcha_public_key_v3_newstringIf captcha_type == v3, this must be set
captcha_private_key_v3_newstringIf captcha_type == v3, this must be set
captcha_public_key_turnstilestringIf captcha_type == turnstile, this must be set
captcha_private_key_turnstilestringIf captcha_type == turnstile, this must be set
captcha_on_commentsboolean0Captcha on post comments form
captcha_login_formboolean0Captcha on user login form
captcha_registration_formboolean0Captcha on registration form
captcha_reset_pwd_formboolean0Captcha on password reset form
activity_log_is_enabledboolean1Activity logs enabled
activity_log_failed_loginsboolean1Log failed logins locally, for use in login ban feature
activity_log_failed_logins_dbboolean0Log failed logins to Patchstack App
activity_log_postsboolean0Log post related activity
activity_log_commentsboolean0Log comments related activity
basic_firewallboolean1Firewall enabled
block_bruteforce_ipsboolean0Whether or not to enable login brute-force ban options below
anti_bruteforce_blocktimeint60Number of minutes to block user after X blocked LOGIN requests.
anti_bruteforce_attemptsint10Number of attempts to look for before blocking user from logging in.
anti_bruteforce_minutesint5Number of minutes timeframe to look for to determine the number of attempts of failed logins.
autoblock_blocktimeint1Number of minutes to block user after X blocked firewall requests.
autoblock_attemptsint60Number of attempts to look for before blocking user from accessing site.
autoblock_minutesint1Number of minutes timeframe to look for to determine the number of attempts of blocked requests.
firewall_ip_headerstringREMOTE_ADDRString of the firewall IP address header to use. E.g. HTTP_X_FORWARDED_FOR
ip_block_liststringNewline separated list of IP addresses to block
Patchstack WordPress Options For Internal Use

These internal use options are generally not be touched by the user and are either auto-computed, dynamically fetched from the Patchstack API or deprecated.

Option NameValue TypeDefaultDescription
hits_last_30array[]Array of hits of past 30 days
hits_all_timeint0All time hits counter
non_vpatches_presentint0Number of non-vPatches running on the site
vpatches_presentint0Number of vPatches running on the site
fixes_presentint0Number of vulns which have a fix available through an update
vulns_presentint0Number of vulnerabilities present
auto_updatearray[]Array of auto update settings for the site
db_versionfloatDatabase migration version
firewall_rules_v3string[]vPatches JSON
firewall_rules_v3_apstring[]vPatches Auto-Prepend JSON
whitelist_rules_v3string[]Whitelist vPatches JSON
firewall_rulesstring[]Legacy vPatches JSON
whitelist_rulesstring[]Legacy Whitelist vPatches JSON
whitelist_keys_rulesstring[]Legacy Whitelist Payload Keys JSON
firewall_ap_errorstringError of auto-prepend activation failure
ip_header_computedboolean0Indiciation if we computed the proxy IP header
ip_header_force_computeboolean0Whether or not to force a new IP header compution
firewall_custom_rulesstringCustom .htaccess rules to inject
firewall_custom_rules_locstring’bottom’ or ‘top’Location of where to inject the .htaccess rules
login_whitelistarray[]Array of temporarily whitelisted IP’s to access login page
rename_wp_login_whitelistarray[]Array of temporarily whitelisted IP’s to access login page
environment_hashstringComputed hash of web-server values
software_data_hashstringHash of software data
software_upload_attemptedboolean0Whether or not we attempted a software sync yet
license_expiryintTimestamp of license expiration
license_activatedintWhether or not the subscription is active
clientidintInteger of the client identifier (part of API key)
secretkeystringString of the client secret (part of API key)
secretkey_noncestringNonce used for encrypting the API key
license_freeboolean0Whether or not the subscription is a free user or not
api_tokenarray[]The bearer token and its expiration
subscription_classinteger0The class code of the subscription
last_license_checkinteger0The last time we checked the subscription of the site
whiteliststringLegacy whitelist rules
show_settingsboolean0Unused
firewall_log_lastidint0Last identifier of sync, temporary value
eventlog_lastidint0Last identifier of sync, temporary value
ott_actionstringHash used for a one-time-token action
managedboolean0Whether or not this site is third-party managed
managed_textstringText to show on Patchstack settings page if it is third-party managed
latest_vulnerablearray[]Array of vulnerability identifiers to determine if we need to sync firewall rules
site_idint0Site identifier of the site on Patchstack SaaS
activation_secretstringActivation secret used for instant site activation
activation_timeintTime for when activation secret through instant site activation is invalid
firewall_ap_enabledboolean0Whether or not auto prepend functionality is enabled
firewall_log_processingboolean0Whether or not firewall logs are currently being synced
firewall_log_ap_processingboolean0Whether or not auto prepend firewall logs are currently being synced
eventlog_log_processingboolean0Whether or not activity logs are currently being synced
cron_offsetarray[]Array of Patchstack crons and their unique offets
basic_firewall_rolesarray[ ‘administrator’, ‘editor’, ‘author’, ‘contributor’ ]Default whitelisted roles for legacy vPatch rules

In order to run the Patchstack WordPress plugin in a minimal mode with minimal interference with other code and plugins, you can refer to the list below and which options we recommend you to change. It is recommended to apply these options before activating Patchstack, as some triggers may occur during Patchstack plugin activation.

This will set Patchstack to strictly run its firewall engine without any additional hardening features.

Option NameSet ToExplanation
disable_htaccess1Disables .htaccess functionality
basicscanblock0Disable .htaccess option
prevent_default_file_access0Disable .htaccess option
index_views0Disable .htaccess option
block_debug_log_access0Disable .htaccess option
pluginedit0Enables the theme/plugin editor
userenum0Allows username/author name enumaration through WP-JSON
hidewpversion0Show WordPress core version
application_passwords_disabled0Allow application passwords feature
xmlrpc_is_disabled0Enable XML-RPC
add_security_headers0Do not add security headers to the HTTP response
activity_log_is_enabled0Do not log activity related events
activity_log_failed_logins0Do not log failed logins

These options can also be set with the WP-CLI commands below:

Terminal window
wp option update patchstack_disable_htaccess 1
wp option update patchstack_basicscanblock 0
wp option update patchstack_prevent_default_file_access 0
wp option update patchstack_index_views 0
wp option update patchstack_block_debug_log_access 0
wp option update patchstack_pluginedit 0
wp option update patchstack_userenum 0
wp option update patchstack_hidewpversion 0
wp option update patchstack_application_passwords_disabled 0
wp option update patchstack_xmlrpc_is_disabled 0
wp option update patchstack_add_security_headers 0
wp option update patchstack_activity_log_is_enabled 0
wp option update patchstack_activity_log_failed_logins 0