cybersecurity Request an audit

Threat feed / Web application firewalls and web servers / Script or API

Block attackers on Apache HTTP Server 2.4 with the ACIDRIPP feed

A small scheduled script or an API call keeps the list up to date. The feature is called Require not ip (mod_authz_host) inside <RequireAll>, lines kept in an Include file.

The address to use

https://cybersecurity.acidripp.com/feed/block/strict.plain

This is the strict list: addresses that got into our decoys, ran commands there or brought malware in the last 14 days. It is small and safe to block. For more coverage, replace strict in the address with standard (also addresses that tried passwords) or wide (also every scanner). What each list holds, and every format, is on the threat feed page.

Before you start

ProductApache HTTP Server 2.4
What it acceptsip, cidr, ipv6, ipv6-cidr
File formatInclude file with lines such as 'Require not ip 10.252.46.165' or 'Require not ip 2001:db8:2:1::/64'. Require ip accepts full addresses, partial addresses, network/netmask, network/CIDR, IPv6 addresses and IPv6 subnets; several addresses may share one line.
Limitsnot documented
NeedsApache httpd 2.4 with mod_authz_core and mod_authz_host. Require works in directory and .htaccess context; Include works in server config, virtual host and directory context.

Add the feed

# Cron job: build the include file from the feed, then graceful restart
curl -s https://cybersecurity.acidripp.com/feed/block/strict.plain | grep -v '^#' | sed 's/^/Require not ip /' > /etc/apache2/threat-feed.conf

# httpd configuration
<Directory "/var/www/html">
    <RequireAll>
        Require all granted
        Include /etc/apache2/threat-feed.conf
    </RequireAll>
</Directory>

# Reload
apachectl -k graceful

Ready-made file

We also serve this list already in the right shape for this product:

https://cybersecurity.acidripp.com/feed/block/strict.apache

Require not ip lines, ready to save as a file and Include inside a RequireAll block.

Block with it

  1. Convert the feed to 'Require not ip <address>' lines with a scheduled job.
  2. Include the file inside a <RequireAll> block that also has 'Require all granted'.
  3. Run apachectl -k graceful after every refresh.

Good to know

  • httpd does not fetch a URL; the addresses are parsed at startup.
  • A negated Require can never authorise a request on its own; it must sit in <RequireAll> next to a positive requirement. Official example: <RequireAll> Require all granted / Require not ip 10.252.46.165 </RequireAll>.
  • Negated directives are not permitted inside <RequireAny> or <RequireNone>.
  • Include fails with an error if a wildcard matches no file; IncludeOptional ignores that.
  • A restart runs a syntax check first; with errors the server refuses to restart.
  • Require ip matches the connection address; behind a proxy or CDN use mod_remoteip to restore the client address first.
  • We can serve the feed already as 'Require not ip x' lines to remove the sed step.

What we could not confirm

  • Placing Include inside <RequireAll> follows from the documented contexts (Include is allowed in directory context) but no official example shows exactly this combination; test with apachectl configtest.
  • mod_remoteip and RewriteMap pages were not read in this research.
  • Performance with tens of thousands of Require lines is not documented.

Sources

The steps were checked against the vendor's documentation on 30 November 2026. They were not tested on a device: menus move between versions, so check against your own. Found a mistake? Write to audit@acidripp.com. The feed comes with no guarantee; test before you block production traffic.