Skip to content

Commit

Permalink
Update to latest tower-no-ai to get more bots in robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjunetime committed Jul 4, 2024
1 parent 8c7505b commit b073f7e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 51 deletions.
87 changes: 44 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ chrono = { version = "0.4.35", default-features = false }
tower-http = { version = "0.5.2", default-features = false, features = ["fs"] }
oxipng = { version = "9.0.0", default-features = false, features = ["parallel"] }
build-info = "0.0.37"
tower-no-ai = { git = "https://github.com/itsjunetime/tower-no-ai.git" }
tower-no-ai = "0.1.1"

[build-dependencies]
build-info-build = "0.0.37"
8 changes: 1 addition & 7 deletions backend/src/robots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,5 @@ pub async fn get_rss_xml(mut tx: Tx<Postgres>) -> (StatusCode, String) {
}

pub async fn get_robots_txt() -> &'static str {
"
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
"
tower_no_ai::bot_blocking_robots_txt()
}

0 comments on commit b073f7e

Please sign in to comment.