actix_block_ai_crawling

Crates.ioactix_block_ai_crawling
lib.rsactix_block_ai_crawling
version0.2.8
sourcesrc
created_at2023-10-30 22:09:54.077785
updated_at2023-11-10 11:11:32.321014
descriptionActix Middleware that blocks Generative AI crawlers
homepage
repository
max_upload_size
id1019102
size8,676
Kyler Chin (kylerchin)

documentation

README

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.

Commit count: 0

cargo fmt