Fix user profiles showing up in search engines

This commit is contained in:
spikecodes 2021-09-06 12:05:03 -07:00
parent 52a1b45014
commit 982f57efd9
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
3 changed files with 3 additions and 3 deletions

View file

@ -156,7 +156,7 @@ async fn main() {
app
.at("/manifest.json")
.get(|_| resource(include_str!("../static/manifest.json"), "application/json", false).boxed());
app.at("/robots.txt").get(|_| resource("User-agent: *\nAllow: /", "text/plain", true).boxed());
app.at("/robots.txt").get(|_| resource("User-agent: *\nDisallow: /u/\nDisallow: /user/", "text/plain", true).boxed());
app.at("/favicon.ico").get(|_| favicon().boxed());
app.at("/logo.png").get(|_| pwa_logo().boxed());
app.at("/Inter.var.woff2").get(|_| font().boxed());