Website Security and Backups Help

Access the Web Application Firewall (WAF) API

Leverage the firewall API to automate processes without having to access the firewall dashboard each time.

Each request will be made to https://wafx.sucuri.net/api?v2 and will require the API key and secret. The API secret is unique to each website and should be secured the same as you would a password. Anyone with access to the API secret and key will have full use of the API.

curl 'https://wafx.sucuri.net/api?v2' \
    --data 'k=API_KEY' \
    --data 's=API_SECRET' \
    --data 'a=ACTION' 

If you're new to using the API, you can utilize the Curl Request Generator which will fill in the necessary data for the API request depending on the type of action you'd like to take.

  Required: If your dashboard looks different, you’re seeing the new version which does not have an API function. You can make any settings adjustments directly in the firewall dashboard.
  1. Go to your GoDaddy product page.
  2. Under Website Security and Backups, select Manage next to the Website Security account you want to manage.
  3. Under Firewall, select Details.
  4. Select Settings then select API.
  5. Select Request Generator.
  6. From the first dropdown, select the applicable domain.
  7. From the second dropdown, select the action.
  8. Select Generate Curl Request.
  9. Copy the output and paste it into a Command Line Interface (CLI) app on your computer to run the API request.

More info

Share this article