9 releases
0.2.8 | Nov 10, 2023 |
---|---|
0.2.7 | Nov 9, 2023 |
0.2.3 | Oct 31, 2023 |
0.1.0 | Oct 30, 2023 |
#237 in HTTP client
428 downloads per month
8KB
151 lines
Block AI crawling in Actix
Crates link: https://crates.io/crates/actix_block_ai_crawling Docs link: https://docs.rs/actix_block_ai_crawling/latest/actix_block_ai_crawling/
This blocks any HTTP requests coming from a Generative AI crawler. It works by blocking matching User Agents including ChatGPT from OpenAI, Bard from Google, and the CC crawler dataset. It also blocks OpenAI's IP addresses.
It's extremely simple to use. Just add .wrap(actix_block_ai_crawling::BlockAi);
to your app.
let app = App::new()
.wrap(actix_block_ai_crawling::BlockAi);
Pull requests are welcome! Please hand-write your code. AI written code is not welcome.
lib.rs
:
This crate blocks generative AI from accessing your services
It is a middleware which blocks user agents from Bard, GPT-3, and other generative AI from accessing your services. It also blocks OpenAI's crawler IP addresses.
It's extremely simple to use. Just add .wrap(actix_block_ai_crawling::BlockAi);
to your app.
let app = actix_web::App()
.wrap(actix_block_ai_crawling::BlockAi);
Dependencies
~15–26MB
~435K SLoC