# Web Shield

> Hardens compiled static websites (Vite, Next.js static export, Astro, plain HTML/JS/WebGL) against automated scraping, source-map leaks, unauthorized domain rehosting, and raw asset theft (.glb, .json, shaders) using zero-dependency Node.js scripts and AES-256-GCM asset vaulting.

Web Shield is a free AI agent skill on Agensi by v kiet, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [v kiet](https://www.agensi.io/creators/v-kiet)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/web-shield
- Tags: web-design, security, javascript, webgl, obfuscation

## About this skill

Hardens compiled static websites (Vite, Next.js static export, Astro, plain HTML/JS/WebGL) against automated scraping, source-map leaks, unauthorized domain rehosting, and raw asset theft (.glb, .json, shaders) using zero-dependency Node.js scripts and AES-256-GCM asset vaulting.

Frontend code is exposed by design, making it trivial for competitors to clone landing pages or scrape proprietary 3D assets. This skill hardens compiled static builds against unauthorized rehosting and asset theft.

### What it does
- **Source Map Purging** identifies and removes `.map` files and `sourceMappingURL` references to prevent original source code reconstruction.
- **Domain Locking** injects polymorphic XOR guards that prevent the site from functioning if hosted on unauthorized domains.
- **Asset Vaulting** encrypts sensitive static files like `.glb`, `.gltf`, and `.json` using AES-256-GCM, unlocking them only at runtime on allowed hosts.
- **Anti-Bot Protection** blocks headless automation and `navigator.webdriver` signatures while maintaining compatibility with major search engine crawlers.
- **Scraper Honeypots** implements WCAG-safe invisible elements to trigger detection for automated scraping tools.

### How it works
1. **Reconnaissance** runs a discovery script against the build directory to detect the framework (Vite, Next.js, Astro) and locate leaked maps or vaultable assets.
2. **Mode Selection** determines the protection level—Light, Balanced, or Strict—based on the threat model and asset sensitivity.
3. **Shielding** applies the selected transformations to the compiled artifacts, specifying allowed deployment domains and unauthorized access behaviors like redirects or overlays.
4. **Verification** executes the build in a sandboxed VM to ensure integrity watermarks are present and domain locks function as expected.

### Frameworks & tools
This tool works with any static build output including Vite, Next.js static exports, Astro, and plain HTML/JS/WebGL. It integrates with `javascript-obfuscator` for AST-level hardening.

### Why this beats prompting it yourself
Manual obfuscation often breaks framework hydration or destroys SEO. This skill follows framework-specific rules to ensure protection doesn't interfere with React/Next.js runtime chunks or accessibility standards.

### Use cases
- **Client Previews** prevent clients from hosting a project before the final invoice is paid.
- **3D WebGL Showcases** protect expensive proprietary `.glb` models and custom shaders from being downloaded and reused.
- **Commercial Templates** stop unauthorized mirrors and clones of high-value landing page designs.

### Known limitations
Does not mutate `src/` files directly. Requires a compiled build directory as input. Advanced obfuscation requires `javascript-obfuscator` to be installed in the project.

## Requires

- serve
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Web Shield skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Web Shield protect my site from being cloned or scraped?

Web Shield protects your intellectual property by preventing competitors from cloning your landing pages, stealing proprietary 3D assets (like .glb files), or reconstructing your source code via leaked map files. It ensures your static builds only function on authorized domains.

### Which AI agents and web frameworks are compatible with this skill?

This skill is compatible with any AI agent that has file-system access to your project's build directory and can execute terminal commands. It works seamlessly across major frameworks like Next.js, Vite, and Astro without breaking site hydration.

### Will applying these security measures negatively impact my site's SEO or search rankings?

Web Shield is designed to be SEO-friendly; while it hardens your code against bots and scrapers, it includes specific bypass rules for major search engine crawlers to ensure your indexing and rankings remain unaffected.

### Does this skill modify my original source code during the hardening process?

No, Web Shield operates on your compiled artifacts (e.g., the /dist or /out folders) rather than your raw source code. This ensures your development workflow remains clean while the final, deployed product is fully protected.

### What exactly is included with my purchase of the Web Shield skill?

You will receive the Web Shield logic package, integration guides for popular CI/CD pipelines, and a set of predefined protection profiles (Light, Balanced, and Strict) to match your specific security needs.

### How does the domain-locking feature prevent my site from being rehosted on another server?

Domain locking uses polymorphic XOR guards injected into your build that check the current hosting environment at runtime. If the site is moved to an unauthorized domain, the skill triggers a customizable response, such as a redirect or a UI overlay, rendering the clone useless.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
