robots.txt
This commit is contained in:
parent
b154851f1f
commit
394eff30fa
1 changed files with 8 additions and 0 deletions
|
@ -69,6 +69,14 @@ public class RouteServer extends Thread
|
||||||
{
|
{
|
||||||
return;
|
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();
|
InetAddress ip = clientSocket.getInetAddress();
|
||||||
System.out.println( formattedTimestamp() + " ip=" + (ip==null ? "null" : ip.toString() ) + " -> " + getline );
|
System.out.println( formattedTimestamp() + " ip=" + (ip==null ? "null" : ip.toString() ) + " -> " + getline );
|
||||||
|
|
Loading…
Reference in a new issue