> ## Documentation Index
> Fetch the complete documentation index at: https://gcore-doc-1256a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Protect CDN resources with Gcore WAAP

[Gcore Web Application and API Protection](/waap/overview) (WAAP) combines all aspects of website security and traffic management, including Layer 7 DDoS protection, web app security, and API protection.

With built-in security rules, advanced behavioral analytics, and a range of available customization options, Gcore WAAP protects your domains against known vulnerabilities and common exploits.

## Enable WAAP for a resource

1. In the [Gcore Customer Portal](https://portal.gcore.com/cdn/resources/list), navigate to **CDN** > **CDN resources**.

2. Next to the resource that you want to protect with WAAP, click the three-dot icon and select **Settings**.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/h1J9XcdrSzvPDPvX/images/docs/cdn/about-cdn-resources-interface-how-it-is-arranged/cdn-resources-filter.png?fit=max&auto=format&n=h1J9XcdrSzvPDPvX&q=85&s=e59a5ed015130b05c51bc37164e7f5e0" alt="CDN resource three-dot menu showing management options" width="2002" height="724" data-path="images/docs/cdn/about-cdn-resources-interface-how-it-is-arranged/cdn-resources-filter.png" />
</Frame>

3. Scroll down the page and find the **Security** section.

4. Enable the **WAAP** toggle to activate Web Application and API Protection for your CDN resource.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/fCTRD22sXs1fJieT/images/docs/cdn/getting-started/create-a-cdn-resource/create-a-cdn-resource/cdn-resources-create-waap.png?fit=max&auto=format&n=fCTRD22sXs1fJieT&q=85&s=f8c669df527d7b36142d5fb28d040d25" alt="Enable WAAP toggle in CDN resource creation form" width="1255" height="435" data-path="images/docs/cdn/getting-started/create-a-cdn-resource/create-a-cdn-resource/cdn-resources-create-waap.png" />
</Frame>

5. Click **Save** to apply the changes.

Consider that it might take up to 20 minutes for the HTTP traffic to start passing through our WAAP after the activation.

### What to do if WAAP blocks content that shouldn't be blocked?

Instead of disabling WAAP protection for the whole resource, you can create a rule with an exception:

1. In the CDN resource settings, open the **Rules** tab.

2. Click **Create rule** > **Create blank rule**.

3. Give your rule a name.

4. In the **Match criteria** section, specify the URLs or a regular expression of files blocked by WAAP.

5. Set the origin pull protocol to **Inherit from resource**.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/h1J9XcdrSzvPDPvX/images/docs/cdn/cdn-resource-options/cdn-security/protect-cdn-resources-with-basic-waf/cdn-create-rule.png?fit=max&auto=format&n=h1J9XcdrSzvPDPvX&q=85&s=b801b23c07ecd2b6e46244034222fd2d" alt="Create rule form showing Rule name, Match criteria, and Options sections" width="1031" height="1421" data-path="images/docs/cdn/cdn-resource-options/cdn-security/protect-cdn-resources-with-basic-waf/cdn-create-rule.png" />
</Frame>

6. In the **Options** section, click **Add option**.

7. Find WAAP and then turn it off for the selected URL rule pattern.

8. Click **Create rule**.

Your content should no longer be blocked by WAAP.
