- Plesk for Linux
- Plesk for Windows
How to disable or restrict Plesk XML API?
It's possible to disable completely the XML API or allow operations only from trusted IP addresses.
To do so, add following entries to the panel.ini file.
To prohibit all connections via XML API:
enabled = off
To allow connections via XML API only from specific IP addresses:
allowedIPs = IP_addresses
allowedIPssetting accepts one or more IP addresses separated by commas or whitespace
Here are two valid examples of the
allowedIPs setting in the panel.ini file:
allowedIPs = 203.0.113.2,192.0.2.2
allowedIPs = 203.0.113.2 192.0.2.2
Note: Do not add the whitespace
( ) character before or after the comma that separates several allowed IP addresses.
Feel free to check out Official Plesk Onyx XML API Guide for more details about its usage.