404project

Report 404 errors to http://www.dshield.org/tools/404project.html

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
30Jun 28, 2012Dec 31, 2011Minified + gzip package size for 404project in KB

Readme

node-404project

A simple client for reporting 404 server errors to the "404 project" at http://www.dshield.org/tools/404project.html.

Installation

npm install 404project

Usage

var express = require('express');

// the user id is usually a number, like 1234567
var myUserID='[Your ISC ID]';
var myKey='[Your Authentication Key]';
var reporter = require('404project').create(myUserID, myKey);
var app = module.exports = express.createServer();

app.get(function(request, response) {
    response.statusCode = 404;
    response.end("<h1>not found</h1>");
    reporter.report404(request);
});

app.listen(3000);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.