qmetrics.net

Nginx Ultimate Bad Bot Blocker

Nginx rules and scripts to block bad bots and referrers

Network SecurityDesktop/CLI app

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

Pi-hole

Network-wide DNS sinkhole for ads and unwanted content

Pi-hole is a DNS sinkhole that blocks ads and unwanted content for every device on your network without client-side software on each device.

  • DNS sinkhole ad and tracker blocking
  • Web dashboard with query statistics
  • Command-line administration via pihole
ShellWeb, Linux, Docker, CLIDetails →
★ 62.4k⟳ 22 days agoEUPL-1.2
Network SecuritySelf-hostable

acme.sh

POSIX shell client for ACME SSL automation

acme.sh issues, renews, and installs SSL and TLS certificates via the ACME protocol using a single shell script with no Python dependency.

  • Pure shell ACME implementation
  • Multiple CA support including ZeroSSL
  • DNS API automation for 180+ providers
ShellLinux, macOS, Windows, DockerDetails →
★ 48k⟳ 2 days agoGPL-3.0
Network SecurityDesktop/CLI app

AdGuard Home

Network-wide DNS server for ads and tracker blocking

AdGuard Home blocks ads and tracking across your home network by acting as a DNS server. Devices use it without installing client-side blocking software.

  • DNS sinkhole for ads and trackers
  • Custom and built-in blocklists
  • Built-in DHCP server
TypeScriptLinux, macOS, DockerDetails →
★ 39.1k⟳ yesterdayGPL-3.0
Network SecuritySelf-hostable

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.

  • Let's Encrypt integration
  • Apache and nginx plugins
  • Webroot and standalone modes
PythonCLIDetails →
★ 33.4k⟳ 3 days agoApache-2.0
Network SecurityDesktop/CLI app

Hosts

Unified hosts file merger and blocklist generator

Steven Black's hosts project merges reputable blocklists into deduplicated hosts files for malware, ads, and optional category extensions. It offers dozens of variants and tools to build or install them.

  • Multi-source hosts list unification
  • Optional porn, social, gambling extensions
  • Docker image for automated updates
PythonLinux, Windows, DockerDetails →
★ 31.5k⟳ todayMIT
Network SecurityDesktop/CLI app

masscan

Internet-scale asynchronous TCP port scanner

Masscan probes IP addresses and port ranges with very high packet rates, aimed at sweeping large networks or the public Internet. Its options and output formats are kept familiar to nmap users.

  • Asynchronous high-rate SYN scanning
  • Arbitrary IP and port ranges
  • IPv4 and IPv6 targets
CLinux, Windows, macOS, CLIDetails →
★ 26.2k⟳ 1 month agoAGPL-3.0
Network SecurityDesktop/CLI app