# -*- coding: iso8859-1 -*- # # Copyright (C) 2006 CSIRO Australia # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # # This software consists of voluntary contributions made by many # individuals. For exact contribution history, see the revision # history and logs. # # Author: Conrad Parker from anxvalidator.anxurlopener import user_agent from anxvalidator.pipeoutput import pipe_limit class NotBot (object): def __str__(self): return '''

This service is not a bot

This service allows users to validate individual resources. It does not perform any crawling of links contained within those resources, nor does it perform any periodic tasks. When retrieving media resources for validation, it is limited to downloading only the first %dKB.

This service reports itself as the following HTTP User-Agent:

%s

If the above User-Agent has appeared in the access logs of your web server, it is probably because a user has used this service to validate content hosted on that server.

For more information about this service, see the About page.

''' % ((pipe_limit/1024), user_agent)