Skip to content
Cloudflare Docs

Scraping detections

Scraping behavioral detection IDs allow you to better protect your website from volumetric scraping attacks by identifying anomalous behavior. The detection IDs below are specifically designed to catch suspicious scraping activity at the zone level.

Detection ID
Description
50331648Observes patterns of requests sent to your zone, dynamically analyzing behavior by ASN.
50331649Observes patterns of requests sent to your zone, dynamically analyzing behavior by JA4 fingerprint.

Challenges for scraping detections

Cloudflare's Managed Challenge can limit scraping attacks on your website.

To access scraping detections:

  1. Log in to the Cloudflare dashboard, and select your account and domain.
  2. Go to Security > WAF.
  3. Under Custom rules, select Create rule.
  4. Fill out the form using Bot Detection IDs along with other necessary information.
  5. Select Save as draft to return to the rule later, or Deploy to deploy the rule.
Rule example
(any(cf.bot_management.detection_ids[*] eq 50331649))

Limit scraping requests with scraping detections

Rate limiting rules can limit the number of requests from a particular ASN or JA4 Fingerprint so long as it continues to exhibit suspicious behavior.

To use rate limiting rules with scraping detections:

  1. Log in to the Cloudflare dashboard, and select your account and domain.
  2. Go to Security > WAF.
  3. Under Rate limiting rules, select Create rule.
  4. Fill out the form using the Custom expression builder and cf.bot_management_detection_ids along with other necessary information.
  5. Select Save as draft to return to the rule later, or Deploy to deploy the rule.