Turk: robots.txt permission verifier
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits behind igrigorik:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Turk: robots.txt permission verifier

Simple (Golang) HTTP web-service to verify whether a supplied "Agent" is allowed to access the requested URL. Pass in the URL of the resource you want to fetch and the name of your agent and Turk will download, parse the robots.txt file and respond with a 200 if you can proceed, and 400 otherwise.

$> goinstall github.com/temoto/robotstxt.go
$> make && ./turk -host="localhost:9090"
$> curl -v ""
   < HTTP/1.1 400 Bad Request

$> curl -v ""
   < HTTP/1.1 200 OK

Note: blogger.com/robots.txt blocks allow agents from fetching comment.g resource.


Turk is an experiment with Go. Go's http stack is "async", hence many parallel requests can be processed at the same time. Turk also has naive, unbounded in-memory cache to avoid refetching the same robots.txt data for a given host.


(MIT License) - Copyright (c) 2011 Ilya Grigorik