REDbot is lint for HTTP.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
extra Start systemd service support. Nov 14, 2018
redbot skip bad relative links. Dec 3, 2018
src lint with standard.js Apr 17, 2018
test Fix test_webui Nov 16, 2018
.coveragerc Add coverage Mar 23, 2015
.editorconfig add .editorconfig Aug 13, 2017
.python-version add python-version Mar 22, 2017
.travis.yml Try to make geckodriver work Oct 26, 2018 update contributing Aug 12, 2017
Makefile make server unbuffered Nov 14, 2018 space them out Nov 14, 2018
config.txt full URL for ui_uri. Feb 5, 2019 update thor requirement Nov 16, 2018


REDbot is lint for HTTP.

It checks HTTP resources for feature support and common protocol problems. You can use the public instance on, or you can install it locally and use it on the command line, or even self-host your own Web checker.

Build Status

Contributing to REDbot

Your ideas, questions and other contributions are most welcome. See for details.

Setting Up Your Own REDbot


REDbot needs:

  1. Python 3.5 or greater
  2. thor
  3. markdown
  4. To use REDbot on the Web, you'll need a Web server that implements the CGI interface; e.g., Apache

Once you have Python, you can install the required libraries with:

pip install thor markdown

Installing RED

Unpack the REDbot tarball. The relevant files are:

  • bin/ - the Web CGI script for running REDbot
  • bin/redbot_cli - the command-line interface
  • redbot/ - REDbot's Python library files
  • redbot/assets/ - REDbot's CSS stylesheet and JavaScript library

To install from source (e.g., if you clone from github):

python install

installs REDbot's libraries as well as the command-line version as redbot_cli.

Setting up your Web Server

To run REDbot as a CGI script, place where you wish it to be served from by the Web server, and place config.txt in the same directory.

For example, with Apache you can put it in a directory and add these configuration directives (e.g., in `.htaccess, if enabled):

  AddHandler cgi-script .py

If the directory is the root directory for your server "", this will configure REDbot to be at the URI "".

You can also locate config.txt somewhere else, and indicate its path in an environment variable:

 SetEnv REDBOT_CONFIG /path/to/config.txt

The contents of the assets directory also need to be made available on the server; by default, they're in the 'static' subdirectory of the script's URI. This can be changed using the 'static_root' configuration variable in config.txt.

You should also create the directory referenced by the 'save_dir' configuration variable, and make sure that it's writable to the Web server process. This is where RED stores state files, and you should configure a cron job to regularly clean it. For example:

0 * * * * find /var/state/redbot/ -mmin +360 -exec rm {} ;

Running REDbot as a systemd Service

REDbot can run as a standalone service, managed by systemd. This offers a degree of sandboxing and resource management, as well as process monitoring (including a watchdog function).

To do this, clone the repo to your system and copy extra/redbot.service into the appropriate directory (on most systems, /etc/systemd/system/.)

Modify the file appropriately; this is only a sample. In particular, you will need to adjust the first part of BindReadOnlyPaths to suit the location of the REDbot directory for you.

Then, as root:

systemctl reload-daemon

systemctl enable redbot

systemctl start redbot

By default, REDbot will listen on localhost port 8000. This can be adjusted in config.txt. Running REDbot behind a reverse proxy is recommended, if it is to be exposed to the Internet.

Running REDbot with Docker

If you wish to run REDbot using Docker, get a local copy of the repository, then:

docker build -t redbot .

Start the webserver:

docker run -p 8000:80 redbot

Or, just:

make docker

to run REDbot on port 8000.


Icons by Momenticon. REDbot includes code from jQuery and prettify.js.