Bot Blocking in Vultr CDN Push Zones helps protect your site by blocking unwanted bots from accessing your content. This feature reduces unnecessary traffic and ensures that only legitimate users can interact with your content, enhancing the security and efficiency of your site. By enabling bot blocking, you safeguard your resources and maintain a smoother experience for genuine visitors.
Follow this guide to enable the bot blocking feature for Vultr CDN Push Zones on your Vultr account using the Vultr Customer Portal, API, or CLI.
Navigate to Products, click CDN, and then click Push Zones.
Click your target CDN Push Zone service.
Click Features.
Select block_bad_bots and click Update Features.
Send a GET
request to the List Push Zones endpoint and note the target Push Zone service's ID.
$ curl "https://api.vultr.com/v2/cdns/push-zones" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Push Zone to enable block_bad_bots feature in your target Push Zone feature.
$ curl "https://api.vultr.com/v2/cdns/push-zones/<pushzone-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"block_bad_bots": true
}'
List all available CDN Push Zone services and note the target Push Zone service's ID.
$ vultr-cli cdn push list
Enable block_bad_bots feature in your target Push Zone service.
$ vultr-cli cdn push update --block-bad-bots <pushzone-id>