The Gcore Customer Portal is being updated. Screenshots may not show the current version.
Chosen image

Advanced API protection

Our WAAP includes a pre-defined Advanced API protection policy group with multiple policies, allowing you to securely manage your API traffic and protect against unwanted or abusive usage of APIs.

Configure policy group

You can review the Advanced API protection policy group and enable or disable its policies in the Gcore Customer Portal:

1. Navigate to WAAP > Domains.

Domains page in the Customer Portal

2. Find the domain where you want to configure the policy and click the domain name to open it.

3. In the sidebar menu, click WAAP.

4. On the Policies page that opens, click Advanced API protection to expand the section and adjust the policies.

WAAP policies page with the highlighted advanced AIP protection policy

All advanced API protection policies are disabled by default. To enable a policy, turn on the toggle near that policy.

Auth token protection

Prevent multiple authentication attempts and block access for users who repeatedly try to use invalid tokens to access the API.

Before enabling this policy, you need to define your 0Auth token endpoints to ensure they are correctly tagged.

Sensitive data exposure

Block API responses that contain Personal Identifiable Information (PII) such as phone numbers, SSNs, email addresses, or credit card numbers.

You can turn off this policy for specific API endpoints by tagging them as needed. In this case, you’ll remain protected against unknown sensitive data leakage, also allowing legitimate known resources to create a response without being interrupted by the WAF.

Invalid API traffic

Block API requests that don’t conform to a JSON structure. This policy protects your APIs by inspecting the keys and values within the JSON. If they are not properly structured, the request will be blocked.

API-level authorization

There are three levels of API endpoint authorization:

  • Admin: Users who can access any endpoint.

  • Privileged: Users who can access privileged access endpoints.

  • Non-privileged: Users who will be blocked from all access endpoints that are privileged or admin.

To ensure that only admins and privileged users can access sensitive endpoints, you can create tags that will be applied when the defined header, token, or other identifier is present. You can then use the API Discovery feature to control API access based on these tags.

Non-baselined API requests

Enable a positive security policy that blocks requests to endpoints that aren’t part of the API baseline—a defined version of your API where all protected endpoints are listed.

You can also add endpoints to the API baseline if you don’t want to perform a network or API specification file scan.

Was this article helpful?