Resource Protection
The Resource Protection feature acts as a safety lock for your servers and websites. It prevents accidental deletion and other destructive actions on important resources, giving you peace of mind when managing your infrastructure.
Think of it like putting a "Do Not Disturb" sign on your most important servers and websites. When protection is enabled, no one can accidentally delete these resources.
What Can You Do With Resource Protection?
- Prevent Accidental Deletion: Keep important servers and websites from being deleted by mistake
- Block Destructive Actions: Block actions that can cause data loss, such as reinstalling the server or restoring a backup
- Easy Toggle: Enable or disable protection with a single click
- Clear Status Indicators: See at a glance which resources are protected from the lock icon
How Resource Protection Works
When you enable protection on a server or website:
- The resource gets a "protected" status
- Any request to perform a blocked action (see the list below) is rejected
- An error message appears explaining that the resource is protected
- To perform these actions, you must first disable protection
Blocked Actions
When a server is protected:
- Deleting the server
- Reinstalling the server
- Uninstalling applications
- Deleting system users
- Restoring a backup
When a website is protected:
- Deleting the website (including bulk deletion)
- Changing the website's domain name
- Changing URL redirect settings
- Enabling/disabling wildcard subdomains
- Uninstalling installed source code
WARNING
Note: Apart from the actions above, you can still make other changes to protected resources, such as configuration changes, updates, and restarts.
Getting Started With Protection
Enabling Protection
To protect a server or website:
- Open the server or website you want to protect
- Find the lock icon next to the server or website name at the top of the page. For websites, you can also go to the website's Settings page
- Click the lock icon to open the Resource Protection panel
- Click the Enable Resource Protection button
Once enabled, the lock icon turns green, indicating the resource is protected.
Disabling Protection
To remove protection from a server or website:
- Open the protected server or website
- Find the green lock icon next to the resource name (or the website's Settings page)
- Click the lock icon to open the Resource Protection panel
- Click the Disable Resource Protection button
The lock icon turns gray, and the resource is no longer protected.
Protecting Several Servers at Once
- Open the server list page
- Select the servers you want to change
- Choose the Protection bulk action
- Click Enable Protection or Disable Protection
The server list also has a column with the lock icon; click it to toggle protection for a single server.
Working With Protected Resources
When you perform a blocked action on a protected resource:
- You'll see a message that the resource is protected
- The action will not be performed
- You must disable protection first, then try again
Helpful Tips
- Protect Important Resources: Enable protection on servers and websites that are critical to your operations
- Remember to Disable: When you need to delete a resource or perform a blocked action, remember to disable protection first
- Use Descriptive Names: Give your resources clear names so you can easily identify which ones are important to protect
- Regular Review: Periodically review which resources are protected to ensure they still need protection
Common Questions
What happens when I enable protection?
When you enable protection, your server or website cannot be deleted, and destructive actions (see Blocked Actions) are also blocked until you disable protection. This helps prevent accidental loss of important resources.
Can I still make changes to a protected resource?
Yes. Apart from the blocked actions, you can still change configuration, update, and restart protected resources.
How do I know if a resource is protected?
Protected resources show a green lock icon next to their name. Unprotected resources show a gray open lock icon. You can also click the icon to open the protection panel and see its status (Enabled or Disabled).
What if I forget to disable protection before deleting?
Don't worry! The system will tell you that the resource is protected and block the deletion. Simply open the resource's protection panel, disable protection, then try again.
Is there a limit to how many resources I can protect?
No, you can protect as many resources as you like. However, we recommend only protecting resources that truly need this extra layer of safety.
Best Practices
- Enable protection on production servers and websites that are critical to your business
- Disable protection only when you're certain you want to delete a resource or perform a blocked action
- Regularly review your protected resources to ensure they still need protection
- Use protection as an additional safety measure, not as a substitute for proper backup procedures