How to Enable Bot Blocking for Vultr CDN Pull Zones

Updated on November 27, 2024

Bot Blocking in Vultr CDN Pull Zones helps protect your site from unwanted bots by filtering out unnecessary traffic. This feature ensures that only legitimate users can access your content, enhancing your site’s security and performance.

Follow this guide to enable the bot blocking feature for Vultr CDN Pull Zones on your Vultr account using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products, click CDN, and then click Pull ZoneSs.

    Pull Zone option in products sidebar

  2. Click your target CDN Pull Zones service.

    Selection of a target Pull Zone service

  3. Click Features.

    Button for feature management portal

  4. Select block_bad_bots and click Update Features.

    Button for blocking bots

  1. Send a GET request to the List Pull Zones endpoint and note the target Pull Zone service's ID.

    console
    $ curl "https://api.vultr.com/v2/cdns/pull-zones" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a PUT request to the Update Pull Zone to enable block_bad_bots feature in your target Pull Zone feature.

    console
    $ curl "https://api.vultr.com/v2/cdns/pull-zones/<Pull Zone-id>" \
        -X PUT \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        -d '{
            "block_bad_bots": true
    }'
    
  1. List all available CDN Pull Zones services and note the target Pull Zone service's ID.

    console
    $ vultr-cli cdn pull list
    
  2. Enable block_ai feature in your target Pull Zone service.

    console
    $ vultr-cli cdn pull update --block-bad-bots <pullzone-id>