Jump to content

Disable API IP Access Restriction


zahed

Recommended Posts

Hello @zahed

Thanks for your post on the WHMCS.Community per our documentation located at https://developers.whmcs.com/api/access-control/

Access to the API by default is restricted by IP.

For situations where IP access control is not feasible, an Access Key can also be configured.

Configuring An Access Key

Alternatively an access key can be configured to allow IP restrictions to be bypassed.

It works by defining a secret key/passphrase in the WHMCS configuration.php file which is then passed into all API calls. To configure it, add a line as follows to your configuration.php file in the root WHMCS directory.

$api_access_key = 'secret_key_passphrase_goes_here';

Following the introduction of an API Access Key, you can then include it in your API requests as follows:

?action=xxxx&username=xxx&password=xxx&accesskey=secret_key_passphrase_goes_here
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated