qmetrics.net

Nginx Ultimate Bad Bot Blocker

Nginx rules and scripts to block bad bots and referrers

This project supplies nginx includes, IP and user-agent lists, and shell scripts to block unwanted bots, spam referrers, scanners, and related traffic on sites you host with nginx.

Overview

The Nginx Ultimate Bad Bot Blocker is a set of nginx configuration fragments and maintenance scripts meant to stop malicious or unwanted HTTP traffic before it reaches your applications. It targets bad user-agents, fake search crawlers, spam referrers, vulnerability scanners, malware-related patterns, and related abuse, alongside rate limiting and related hardening.

Installation is driven by setup, install, and update shell scripts that download list files, wire includes into nginx.conf and virtual host files, and optionally whitelist your own IP. The usual flow assumes common Linux layouts with sites-available vhosts ending in .vhost, with flags to adapt paths and extensions.

Daily cron jobs can refresh blacklists and reload nginx so lists stay current. Local customization files under the bots.d directory are preserved across updates. Curl-based tests can confirm legitimate bots receive success responses while blocked agents get connection resets or empty replies.

It is tested against mainstream nginx versions on Linux and can be installed via distribution packages on FreeBSD. Users behind Cloudflare are advised to disable CDN caching while validating blocker behavior.

Key features

  • Large maintained bad referrer and bot lists
  • Automated install and setup shell scripts
  • Daily update script with optional email reports
  • Customizable whitelist and blacklist includes
  • Fake Googlebot and scanner blocking
  • nginx rate limiting integration
  • WordPress theme detector blocking
  • Fail2Ban jail support for repeat offenders

Use cases

  • Reducing scraper and spam referrer noise
  • Blocking vulnerability scanners at the edge
  • Protecting WordPress sites on nginx
  • Automated daily security list updates
  • Validating bot allow and deny behavior

Tags

Similar software

Certbot

ACME client for Let's Encrypt HTTPS certificates

Fetches and deploys DV certificates from Let's Encrypt on your server, with optional HTTPS redirect and renewal automation via simple commands.

★ 33.3k⟳ 2 days agoApache-2.0
Application SecurityDesktop/CLI app

Anubis

Lightweight web firewall against AI scraper traffic

Anubis sits in front of upstream web resources and presents connection challenges weighted to block scraper bots, especially high-volume AI crawlers. Bot allowlists can be configured when you need known good crawlers.

★ 24.5k⟳ 4 days agoMIT

SafeLine

Self-hosted web application firewall for HTTP traffic

SafeLine is a self-hosted WAF that sits in front of web applications to filter and monitor HTTP traffic. It aims to block common web attacks and abusive automated traffic.

★ 23.5k⟳ 1 month agoGPL-3.0

MHDDoS

Python network-layer DDoS testing toolkit

MHDDoS is a Python 3 command-line toolkit with dozens of layer-3, layer-4, and layer-7 methods for authorized stress and security testing only.

★ 17.1k⟳ yesterdayMIT
Application SecurityDesktop/CLI app

Impacket

Python classes and tools for network protocols

Impacket provides low-level Python APIs and example tools to craft, parse, and implement network protocols including SMB, MSRPC, and common Microsoft stacks.

★ 16.3k⟳ yesterdayBSD-2-Clause
Application SecurityDesktop/CLI app

OWASP Amass

Attack surface mapping and external asset discovery framework

OWASP Amass maps networks and discovers external assets using open-source intelligence and active reconnaissance. It is an OWASP flagship security tool.

★ 15.6k⟳ 1 month agoApache-2.0
Application SecurityDesktop/CLI app