robots.txt

This commit is contained in:
Arndt Brenschede 2018-10-21 16:18:54 +02:00
parent b154851f1f
commit 394eff30fa

View file

@ -69,6 +69,14 @@ public class RouteServer extends Thread
{
return;
}
if ( getline.startsWith("GET /robots.txt") )
{
writeHttpHeader( bw );
bw.write( "User-agent: *\n" );
bw.write( "Disallow: /\n" );
bw.flush();
return;
}
InetAddress ip = clientSocket.getInetAddress();
System.out.println( formattedTimestamp() + " ip=" + (ip==null ? "null" : ip.toString() ) + " -> " + getline );