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

# Enable and configure origin shielding

Origin Shielding is a paid CDN option that protects the origin server from being overloaded with requests from multiple CDN edge servers. All edge server requests accumulate at a special server called a shield or precache server, which caches content and pulls from the origin only on a cache miss.

The shield server sits between the origin and the entire content delivery network. When a traffic burst occurs, the shield handles all requests from CDN edge servers, preventing the origin from being overwhelmed. The shield uses the pull protocol configured on the CDN resource — HTTP or HTTPS. Selecting the shield location closest to the origin minimizes the distance on the shield-to-origin connection.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1894/D4afn3gx_zp92kAa/images/docs/cdn/cdn-resource-options/general/enable-and-configure-origin-shielding/Shield_server.jpeg?fit=max&auto=format&n=D4afn3gx_zp92kAa&q=85&s=204ffeccc99f018a90df2eae9dd6e1ea" alt="Diagram showing the shield server positioned between CDN edge servers and the origin server" width="1439" height="300" data-path="images/docs/cdn/cdn-resource-options/general/enable-and-configure-origin-shielding/Shield_server.jpeg" />
</Frame>

## Enable Origin Shielding

<Info>
  Origin Shielding is a paid option. To make it available for a CDN resource, contact [Gcore support](mailto:support@gcore.com) or the account manager.
</Info>

<Steps>
  <Step title="Open the CDN resource settings">
    In the [Gcore Customer Portal](https://portal.gcore.com), navigate to **CDN** > **CDN resources** and click the CNAME of the resource to configure.
  </Step>

  <Step title="Open Origin Shielding">
    In the resource settings sidebar, click **Origin Shielding**.

    <Frame>
      <img src="https://mintcdn.com/gcore-doc-1894/D4afn3gx_zp92kAa/images/docs/cdn/cdn-resource-options/general/enable-and-configure-origin-shielding/enable-and-configure-origin-shielding-image2.png?fit=max&auto=format&n=D4afn3gx_zp92kAa&q=85&s=240058fc707933468f29a0228c5b24bd" alt="CDN resource settings with the Origin Shielding section showing the disabled Enable Origin Shielding toggle" width="1400" height="900" data-path="images/docs/cdn/cdn-resource-options/general/enable-and-configure-origin-shielding/enable-and-configure-origin-shielding-image2.png" />
    </Frame>
  </Step>

  <Step title="Enable the toggle">
    Turn on the **Enable Origin Shielding** toggle.
  </Step>

  <Step title="Select the precache server location">
    In the **Data center** dropdown, select the location for the precache server. The location closest to the origin server minimizes the shield-to-origin latency.
  </Step>

  <Step title="Save">
    Click **Save changes**.
  </Step>
</Steps>

Activation begins immediately and completes in under 15 minutes. The following notification appears:

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1894/D4afn3gx_zp92kAa/images/docs/cdn/cdn-resource-options/general/enable-and-configure-origin-shielding/Activation.png?fit=max&auto=format&n=D4afn3gx_zp92kAa&q=85&s=e5e1c640a131ca2c06474c707f7a3bb9" alt="Activation notification indicating Origin Shielding is being activated" width="1400" height="900" data-path="images/docs/cdn/cdn-resource-options/general/enable-and-configure-origin-shielding/Activation.png" />
</Frame>
