Skip to content

Commit 9d01775

Browse files
authored
Merge pull request #2157 from Urgau/robots-txt
Add `robots.txt` and block all user-agents
2 parents c79bac3 + 8c94ef7 commit 9d01775

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ async fn run_server(addr: SocketAddr) -> anyhow::Result<()> {
163163

164164
let app = Router::new()
165165
.route("/", get(|| async { "Triagebot is awaiting triage." }))
166+
.route(
167+
"/robots.txt",
168+
get(|| async { "User-Agent: *\nDisallow: /\n" }),
169+
)
166170
.route("/triage", get(triagebot::triage::index))
167171
.route("/triage/{owner}/{repo}", get(triagebot::triage::pulls))
168172
.route(

0 commit comments

Comments
 (0)