cybersecurity Request an audit

Threat feed / Web application firewalls and web servers / Live feed

Block attackers on ModSecurity v2 and v3 with the ACIDRIPP feed

The product fetches the list by itself on a schedule. The feature is called @ipMatchFromFile operator (alias @ipMatchF); SecRemoteRules directive.

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

ProductModSecurity v2 and v3 (libmodsecurity), with OWASP CRS
What it acceptsip, cidr, ipv6, ipv6-cidr
File formatPlain text, one entry per line: full IPv4 address, IPv4 CIDR block, full IPv6 address or IPv6 CIDR block. Documented sample file: 192.168.0.1 / 172.16.0.0/16 / 10.0.0.0/8 on separate lines.
Limitsnot documented
Needs@ipMatchFromFile: ModSecurity 2.7 or later. Loading the file from an HTTPS server: 2.9.0-RC1 or later, and stated for v3. SecRemoteRules: 2.9.0-RC1 or later, marked supported on libModSecurity.

Add the feed

# Local file kept fresh by cron (curl -o /etc/modsecurity/threat-feed.txt https://cybersecurity.acidripp.com/feed/block/strict.plain, then reload the web server)
SecRule REMOTE_ADDR "@ipMatchFromFile /etc/modsecurity/threat-feed.txt" "id:1000001,phase:1,deny,status:403,log,msg:'Client IP on threat feed'"

# Direct HTTPS load (the manual states the operator can load content served by an HTTPS server)
SecRemoteRulesFailAction Warn
SecRule REMOTE_ADDR "@ipMatchFromFile https://cybersecurity.acidripp.com/feed/block/strict.plain" "id:1000002,phase:1,deny,status:403,log,msg:'Client IP on threat feed'"

# Remote rules file (official syntax and example)
# SecRemoteRules key https://url
SecRemoteRules some-key https://www.yourserver.com/plain-text-rules.txt

Block with it

  1. Save the feed as a text file, one address or CIDR per line.
  2. Add a SecRule on REMOTE_ADDR with @ipMatchFromFile and the action deny.
  3. Give the rule a unique id.
  4. Reload the web server so the file is read again.

Good to know

  • The manual's own example is: SecRule REMOTE_ADDR "@ipMatchFromFile ips.txt" "id:163". The deny/status/msg actions in our lines are standard actions added by us.
  • SecRemoteRules is only allowed over TLS and expects a valid, trusted certificate on the server. ModSecurity sends the headers ModSec-status, ModSec-unique-id and ModSec-key.
  • SecRemoteRulesFailAction Abort|Warn: default is Abort, so a feed outage can stop the web server from starting. It also governs @ipMatchFromFile with an HTTPS URI.
  • REMOTE_ADDR is the connecting address; behind a proxy or CDN that is the proxy.
  • OWASP CRS 3.3: file REQUEST-910-IP-REPUTATION.conf holds a commented-out rule 910110 using @ipMatchFromFile ip_blacklist.data, plus Project Honeypot @rbl checks (SecHttpBlKey, tx.block_search_ip, tx.block_spammer_ip) and tx.high_risk_country_codes. None of these takes a custom feed URL.
  • OWASP CRS 4: 'IP reputation rules have been moved from CRS to plugins'; the REQUEST-910 file no longer exists in the main branch. Use your own SecRule as above.

What we could not confirm

  • The manual states HTTPS loading for @ipMatchFromFile but shows no example; putting the URL in place of the file name is our reading.
  • When the file or URL is re-read is not stated; we assume only at start or reload, so a few-minute refresh needs a scheduled reload.
  • Whether a given libmodsecurity build has remote loading compiled in (it depends on build options) was not checked.
  • The wiki reference manuals are marked as deprecated in favour of modsecurity.org/docs; the newer site was not read.
  • Which CRS 4 plugin, if any, accepts a custom IP file was not checked.

Sources

Most steps were checked against the vendor's documentation; the points above were not 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.