Disallow WHM API Access on port 443; allow only on 2087

horizon2021

Active Member
Jan 31, 2021
41
3
8
USA
cPanel Access Level
Root Administrator
Question regarding API Tokens in WHM · cPanel & WHM Developer Portal
API calls using a method that includes a URL must use one the following ports:

  • 2087 - Secure calls to WHM's APIs, or to cPanel's APIs via the WHM API.
  • 443 - Secure calls to WHM's APIs, or to cPanel's APIs via the WHM API through a service subdomain.
I would like to restrict API calls to only port 2087 and disallow any API call on port 443 or any port other than 2087.

Do I simply need to set service subdomains to "off" under tweak settings to restrict all WHM API calls to port 2087 only, or do I need to do more?

(I wish to restrict API calls to port 2087 so I can use firewall controls to restrict access to specific IPs for an additional layer of security.)