connect-baddies

0.0.3 • Public • Published

connect-baddies

A Connect middleware for filtering suspicious HTTP requests based on 422 request user-agent and url rules.

Codeship Status for radekstepan/connect-baddies

http    = require 'http'
connect = require 'connect'
baddies = require 'connect-baddies'
 
logger = (msg) -> console.log msg
 
app = connect()
.use(baddies({ 'log': logger }))
.use (req, res) -> res.end 'Hello from Connect!'
 
http.createServer(app).listen 3000

Sources

  1. http://wordpress.org/extend/plugins/bad-behavior/developers/
  2. http://johannburkard.de/blog/www/spam/The-top-10-spam-bot-user-agents-you-MUST-block-NOW.html
  3. http://en.linuxreviews.org/HOWTO_stop_automated_spam-bots_using_.htaccess
  4. http://www.askapache.com/htaccess/fight-blog-spam-with-apache.html
  5. http://www.symantec.com/connect/articles/detection-sql-injection-and-cross-site-scripting-attacks

Readme

Keywords

none

Package Sidebar

Install

npm i connect-baddies

Weekly Downloads

3

Version

0.0.3

License

none

Last publish

Collaborators

  • radekstepan