Tamper Protection
WARNING: After Tamper Protection is enabled, protected CMSSPM settings become read-only in the admin UI and can only be changed by editing wp-config.php directly. Enable this only after the protected settings have been reviewed and finalized.
WARNING: If PHP cannot write to wp-config.php, the constant must be added manually. Because this setting is file-controlled, rollback requires direct file access.
Description of the control
Use Tamper Protection to lock protected CMSSPM settings after setup. When enabled, the control adds define( 'CMSSPM_ANTITAMPER', true ); to wp-config.php, which causes protected settings to become read-only in the WordPress admin interface.
This control is managed in wp-config.php. After it is enabled, it can only be disabled by editing that file directly.
Procedure
- Open Posture Management.
- Select Settings.
- Locate the Tamper Protection card under Sensitive Control.
- Review the protected CMSSPM settings and confirm they are configured as intended before locking them.
- Enable Tamper Protection by turning the toggle on.
- Select Save Settings.
- If CMSSPM cannot write to wp-config.php, open that file manually.
- Add
define( 'CMSSPM_ANTITAMPER', true );above the “That’s all, stop editing!” line. - Save the file and reload the CMSSPM admin page.
Validation
After saving, confirm that Tamper Protection is enabled and that protected CMSSPM settings appear read-only in the admin UI. Attempt to review a protected setting and verify that it can no longer be changed from the interface.
If file access is available, open wp-config.php and confirm that define( 'CMSSPM_ANTITAMPER', true ); is present. To disable the control later, edit wp-config.php directly and remove or change that constant, then reload the admin UI.
