Skip to main content
WordPress

Lock down a WordPress installation

Asynchronous Request

Hardens filesystem permissions for the registered WordPress install on this server. Optional path settings control which directories remain writable and where PHP execution is disallowed. Omitted fields fall back to saved server settings or defaults. Managed WordPress requires a profile where wordpressManagementIncluded=true; use GET /profiles before provisioning, and expect rejection on already-created servers using an ineligible profile.

POST
/servers/{serverSlug}/wordpress/lockdown
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

Optional lockdown path settings. All fields are optional.

allowedWritePathsstring[]

Paths relative to the WordPress root that remain writable.

disallowPhpPathsstring[]

Paths relative to the WordPress root where PHP execution is disallowed.

webUserGroupstring

Web server user:group used for ownership.

Example: www-data:www-data

WordPress lockdown initiated.

X-Callback-IDstringheader

CallbackID