Skip to content

Commit 3ae5a20

Browse files
committed
Remove/replace references to the "crawler policy"
We only have a data access policy at https://crates.io/data-access, which has replaced the `#crawler` part of `/policies`.
1 parent 9495670 commit 3ae5a20

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

app/templates/data-access.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@
6565
the
6666
<a href="https://doc.rust-lang.org/cargo/reference/registry-web-api.html">Cargo Web API</a>.
6767
Should you be unable to use one of the previous options, you are welcome to
68-
use the crates.io API provided you abide by the same limits as
69-
<LinkTo @route="policies">the crawling policy</LinkTo>. In summary:
68+
use the crates.io API provided you abide by the following limits:
7069
</p>
7170

7271
<ol>

src/middleware/block_traffic.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@ fn rejection_response_from(state: &AppState, headers: &HeaderMap) -> Response {
7272

7373
let body = format!(
7474
"We are unable to process your request at this time. \
75-
This usually means that you are in violation of our crawler \
76-
policy (https://{domain_name}/policies#crawlers). \
77-
Please open an issue at https://github.com/rust-lang/crates.io \
78-
or email help@crates.io \
79-
and provide the request id {request_id}"
75+
This usually means that you are in violation of our API data access \
76+
policy (https://{domain_name}/data-access). \
77+
Please email help@crates.io and provide the request id {request_id}"
8078
);
8179

8280
(StatusCode::FORBIDDEN, body).into_response()

0 commit comments

Comments
 (0)