IP to "Require not IP" Converter for Apache .htaccess: Blocking Rules Generator
☀️
🌙
📥 Input (one IP per line)
⚙️ Import & Convert
🗑️ Clear Input
✅ Generated rules
📋 Copy
💾 Export .htaccess
🗑️ Clear
⚠️ Lines not imported
📋 Copy
💾 Export errors
🗑️ Clear
⚙️ Conversion options
Prefix
Suffix
Mask for individual IPs
None (IP only)
/32 (IPv4) or /128 (IPv6)
/24
/16
/8
Also affect IPs with existing CIDR
Comment
No comment
# (hash)
Indentation
None
Spaces
Tabulation
Remove CIDR (remove mask)
Group every N IPs (1 = no grouping)
The prefix and suffix are applied once per line