mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Serve robots.txt (disallow all)
This commit is contained in:
parent
aa82e14bc7
commit
63f02f45c6
7
httpd.c
7
httpd.c
@ -117,6 +117,13 @@ int server_get_handler(d_char *req, char *q_path,
|
||||
*ctype = "application/json; charset=utf-8";
|
||||
*body = nodeinfo_2_0();
|
||||
}
|
||||
else
|
||||
if (strcmp(q_path, "/robots.txt") == 0) {
|
||||
status = 200;
|
||||
*ctype = "text/plain";
|
||||
*body = "User-agent: *\n"
|
||||
"Disallow: /\n";
|
||||
}
|
||||
|
||||
if (status != 0)
|
||||
srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status));
|
||||
|
Loading…
Reference in New Issue
Block a user