Skip to content

Commit 0b7d51c

Browse files
[Security Center] Hash search (#17598)
* [Security Center] Hash search * Apply suggestions from code review Co-authored-by: angelampcosta <[email protected]> --------- Co-authored-by: angelampcosta <[email protected]>
1 parent 65c1918 commit 0b7d51c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/content/docs/radar/investigate/url-scanner.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Once you have the token, and you know your `account_id`, you are ready to make y
1818

1919
### Submit URL to scan
2020

21-
In order to submit a URL to scan, the only required information is the URL to be scanned in the `POST` request body:
21+
To submit a URL to scan, the only required information is the URL to be scanned in the `POST` request body:
2222

2323
```bash
2424
curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/urlscanner/scan" \
@@ -112,11 +112,11 @@ Some examples of more specific properties include:
112112

113113
The [Get URL Scan](/api/operations/urlscanner-get-scan) API endpoint documentation contains the full response schema.
114114

115-
In order to fetch the scan's [screenshots](/api/operations/urlscanner-get-scan-screenshot) or full [network log](/api/operations/urlscanner-get-scan-har), please visit the corresponding endpoints' documentation.
115+
To fetch the scan's [screenshots](/api/operations/urlscanner-get-scan-screenshot) or full [network log](/api/operations/urlscanner-get-scan-har) refer to the corresponding endpoints' documentation.
116116

117117
### Search scans
118118

119-
`Public` scans can also be searched for. In order to search for scans to the hostname `google.com`, use the query parameter `page_hostname=google.com`:
119+
`Public` scans can also be searched for. To search for scans to the hostname `google.com`, use the query parameter `page_hostname=google.com`:
120120

121121
```bash
122122
curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/urlscanner/scan?page_hostname=google.com" \
@@ -125,11 +125,15 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/urlscanner/scan
125125

126126
Search results will also include your *own* `Unlisted` scans.
127127

128-
If, instead, you wanted to search for scans which made at least one request to the hostname `cdnjs.cloudflare.com` - e.g. sites that use a JavaScript library hosted at `cdnjs.cloudflare.com` - use the query parameter `hostname=cdnjs.cloudflare.com`:
128+
If, instead, you wanted to search for scans that made at least one request to the hostname `cdnjs.cloudflare.com`, for example sites that use a JavaScript library hosted at `cdnjs.cloudflare.com`, use the query parameter `hostname=cdnjs.cloudflare.com`:
129129

130130
```bash
131131
curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/urlscanner/scan?hostname=cdnjs.cloudflare.com" \
132132
--header "Authorization: Bearer <API_TOKEN>"
133133
```
134134

135-
Check `https://developers.cloudflare.com/api/operations/urlscanner-search-scans` for the full list of available options.
135+
You can also search for the hash in the URL Scanner API.
136+
137+
Go to [Search URL scans](/api/operations/urlscanner-search-scans) in the API documentation for the full list of available options.
138+
139+
Alternatively, you can search for the hash on the [Cloudflare dashboard](https://dash.cloudflare.com/) by selecting your account > **Security Center** > **Investigate** > Enter the hash > Select **Search**.

0 commit comments

Comments
 (0)