Task #1181
closed
Added by Junxiao Shi almost 11 years ago.
Updated over 10 years ago.
Description
Develop a tool that retrieves NFD status and republishes over HTTP.
This tool is an external process that talks to NFD using ControlCommand.
It could be either a CGI script invoked by a traditional HTTP server such as nginx, or a standalone HTTP application server such as Node.js or Python HTTPServer.
These information should be published:
- forwarding statistics
- face list and face counters
- FIB entries
From #1081:
It would be helpful to respond to "GET /robots.txt" requests with:
Content-Type: text/plain
User-Agent: *
Disallow: /
This response forbids HTTP robots such as Googlebot to index NFD status page, which is desirable in some environments.
There should be a configuration option to enable this robots.txt response.
- Target version changed from v0.1 to v0.2
Moved to Version 2 as decided in 20140314 conference call.
- Assignee set to Chengyu Fan
- Status changed from New to In Progress
Sorry I don't get why we need to handle the issue like "GET /robots.txt"?
why not let the server only respond the "GET /" request, and ignore others (or respond "404 Not Found")?
I don't want Googlebot to find and index my forwarder. Responding 404 to /robots.txt indicates it's okay to index the site.
If you are making a CGI script, robots.txt is handled by web server. If you are making a standalone web server, robots.txt should be answered as suggested.
I'd prefer a standalone web server using Python.
Another question is the require for a configuration option:
"There should be a configuration option to enable this robots.txt response."
What kind of configuration option are you talking about?
You can use any kind of switch: command line switch, configuration file, environment, constant in code...
- Status changed from In Progress to Closed
- Target version changed from v0.2 to v0.1
- % Done changed from 0 to 100
Also available in: Atom
PDF