wafcstrip

command module
v0.0.0-...-cf22ff9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

wafcstrip

Strip CDN and WAF IPs from a list of IP addresses or CIDR ranges.

Built on top of the projectdiscovery/cdncheck library.

Install

go install github.com/thetowsif/wafcstrip@latest

Usage

# filter out CDN/WAF IPs from a list
cat ips.txt | wafcstrip

# with concurrency
cat ips.txt | wafcstrip -c 50

# verbose output (shows vendor, type, and IP)
cat ips.txt | wafcstrip -v

# supports CIDR ranges
echo "104.16.0.0/24" | wafcstrip -v

# mixed input (IPs and CIDRs together)
cat mixed.txt | wafcstrip -v

# write CDN and non-CDN IPs to separate files
cat ips.txt | wafcstrip -cdn cdn.txt -n non-cdn.txt

Detection Coverage

The modified version checks providers from two sources:

  • projectdiscovery/cdncheck bundled provider data
  • live-fetched CIDR ranges at runtime for Cloudflare, CloudFront, and Akamai

WAF providers detected

  • cloudflare
  • akamai
  • incapsula
  • imperva
  • sucuri

CDN providers detected

  • cloudfront
  • fastly
  • google
  • leaseweb
  • amazon

Cloud providers detected by cdncheck

  • aws
  • google
  • oracle

Live range sources used by this version

  • Cloudflare IPv4: https://www.cloudflare.com/ips-v4
  • Cloudflare IPv6: https://www.cloudflare.com/ips-v6
  • CloudFront IPv4 and IPv6: https://ip-ranges.amazonaws.com/ip-ranges.json
  • Akamai IPv4: https://raw.githubusercontent.com/thetowsif/wafcstrip/refs/heads/master/WAF-List/akamai-ipv4.txt
  • Akamai IPv6: https://raw.githubusercontent.com/thetowsif/wafcstrip/refs/heads/master/WAF-List/akamai-ipv6.txt

Flags

Flag Default Description
-c 20 Concurrency level
-v false Verbose output (vendor,type,ip)
-cdn Write CDN/WAF IPs to file
-n Write non-CDN IPs to file

Credits

Originally forked from j3ssie/cdnstrip.
Modified by Towsif Ibny Hassan with CIDR support and improvements.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址