Plesk for Windows
kb: how-to
Plesk for Linux
ABT: Group B
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to disable or restrict Plesk XML API?
Answer
It's possible to disable completely the XML API or limit the access to trusted IP addresses only.
To do so, add the following entries to the panel.ini file:
-
To prohibit all connections via XML API:
[api]
enabled = off -
To allow connections via XML API only from specific IP addresses:
[api]
allowedIPs = 203.0.113.2,192.0.2.2Where the
allowedIPssetting accepts one or more IP addresses separated by commas or whitespace( )characters.
Note that disabling or restricting the XML API will affect likewise the REST API access. More information here
Comments
More details related to what tool to use and how to view the api info.
I added the editor but i cant paste the info in editor when i click api restrict ips
Please sign in to leave a comment.