diff --git a/cf-clearance-scraper.go b/cf-clearance-scraper.go index b2514b4..eb46f3f 100644 --- a/cf-clearance-scraper.go +++ b/cf-clearance-scraper.go @@ -165,5 +165,12 @@ func RequestWithWAFSession(method string, URL string, wafSession Session, option options.Headers[key] = value } - return cycletlsClient.Do(URL, *options, method) + resp, err := cycletlsClient.Do(URL, *options, method) + if err != nil { + return resp, err + } + if resp.Status == 403 { + return resp, errors.New("Cloudflare blocked request") + } + return resp, nil }