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.
- Go to your GoDaddy product page.
- Under Website Security and Backups, select Manage next to the Website Security account you want to manage.
- Under Firewall, select Details.
- Select Settings then select API.
- Select Request Generator.
- From the first dropdown, select the applicable domain.
- From the second dropdown, select the action.
- Select Generate Curl Request.
- Copy the output and paste it into a Command Line Interface (CLI) app on your computer to run the API request.