utilvoedgeshield

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 2 Imported by: ? 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

utilvo-edge-shield

Utilvo EdgeShield (v1.1.0) is a zero-dependency, multi-language server firewall rule generator, CIDR/ASN threat intelligence library, Safe-Harbor bot classifier, and Google Analytics 4 (gtag.js) headless browser detector developed by Utilvo.


Overview

Modern headless Chromium scrapers hosted on Tencent Cloud (AS132203), Alibaba Cloud (AS45102), and Huawei Cloud (AS136907) rotate outbound IPv4 addresses across /10 and /16 CIDR blocks (43.128.0.0/10, 47.74.0.0/16, 101.32.0.0/15) on every HTTP request, spoof legacy mobile User-Agents (CPU iPhone OS 13_2_3), hammer Next.js ? _rsc= payloads, and pollute Google Analytics 4 with synthetic sessions.

utilvo-edge-shield provides programmatic request inspection, CIDR/ASN matching, and WAF rule generation while strictly whitelisting verified search engine crawlers (Googlebot, Bingbot, Applebot, DuckDuckBot, YandexBot).


Installation

Python (PyPI)
pip install utilvo-edge-shield
Deno / TypeScript (JSR)
deno add jsr:@utilvo/edge-shield
Rust (Crates.io)
cargo add utilvo-edge-shield
Ruby (RubyGems)
gem install utilvo-edge-shield
Elixir (Hex.pm)
{:utilvo_edge_shield, "~> 1.1.0"}
Dart / Flutter (Pub.dev)
dart pub add utilvo_edge_shield
Lua / OpenResty / Nginx (LuaRocks)
luarocks install utilvo-edge-shield
Go
go get github.com/utilvo/utilvo-edge-shield@v1.1.0
1-Line Linux / Nginx Automated Deployment
curl -sSL https://utilvo.com/edge-shield/install.sh | sudo bash

Quick Start

Python
from utilvo_edge_shield import inspect_request, generate_cloudflare_waf_expression, EDGE_SHIELD_FEEDS

verdict = inspect_request(
    ip="43.173.182.197",
    user_agent="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X)"
)
print(verdict)
# {'is_bot': True, 'is_seo_crawler': False, 'reasons': ['CLOUD_SCRAPER_SUBNET', 'ROGUE_SCRAPER_USER_AGENT']}
TypeScript / JavaScript
import { inspectServerRequest, generateCloudflareWafExpression, EDGE_SHIELD_FEEDS } from "jsr:@utilvo/edge-shield";

const res = inspectServerRequest("43.173.182.197", "HeadlessChrome/120.0");
console.log(res.isBot, res.reasons);

License

MIT © Utilvo

Documentation

Overview

Package utilvoedgeshield provides server firewall rule generators, CIDR/ASN threat intelligence matching (AS132203, AS45102, AS136907), and Safe-Harbor search crawler verification.

Official documentation & Live Threat DB: https://utilvo.com/edge-shield

Index

Constants

View Source
const (
	DocsURL      = "https://utilvo.com/edge-shield"
	ThreatAPIURL = "https://utilvo.com/api/edge-shield/threats"
	CIDRFeedURL  = "https://utilvo.com/edge-shield/ai-scrapers-cidr.txt"
	InstallerURL = "https://utilvo.com/edge-shield/install.sh"
)

Variables

This section is empty.

Functions

func GenerateCloudflareWAFExpression

func GenerateCloudflareWAFExpression() string

GenerateCloudflareWAFExpression returns a Cloudflare WAF rule expression.

Types

type InspectionResult

type InspectionResult struct {
	IsBot        bool
	IsSEOCrawler bool
	Reasons      []string
}

InspectionResult represents the classification of an incoming HTTP request.

func InspectRequest

func InspectRequest(ip string, userAgent string) InspectionResult

InspectRequest evaluates an IPv4 address and User-Agent string against Utilvo EdgeShield rules.

Jump to

Keyboard shortcuts

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